@extends('layouts.app') @section('title','My Promotions') @section('content')
Create New Promotion @forelse($promotions as $promo) @php $info = $promo->platform_info; @endphp
{{-- Header --}}
{{ $info['icon'] }}
{{ $promo->title }}
{{ $info['label'] }} • Created {{ $promo->created_at->diffForHumans() }}
{{ ucfirst($promo->status) }}
{{-- Stats --}}
@foreach(['Views'=>number_format($promo->total_views),'Clicks'=>number_format($promo->total_clicks),'CTR'=>$promo->ctr.'%','Pts Left'=>number_format($promo->points_remaining)] as $label => $val)
{{ $val }}
{{ $label }}
@endforeach
{{-- Progress Bar --}}
Budget Used {{ $promo->progress_percent }}%
{{ number_format($promo->points_spent) }} spent {{ number_format($promo->points_budget) }} total
{{-- Actions --}}
@if($promo->status === 'active')
@csrf
@elseif($promo->status === 'paused')
@csrf
@endif {{-- Top Up --}} @if(in_array($promo->status, ['active','paused','depleted'])) @endif {{-- View URL --}} View Content @if($promo->status === 'rejected')
Rejected: {{ $promo->rejection_reason }}
@endif
@empty
📣
No promotions yet
Promote your YouTube, TikTok, Facebook, website & more!
Create Promotion
@endforelse {{ $promotions->links() }}
{{-- Top Up Modal --}} @endsection @push('scripts') @endpush