Recent Videos
View all →Campaigns
+ New
@php $maxViews = $campaigns->max(fn($c) => $c->posts_sum_views) ?: 1; @endphp
@foreach($campaigns as $campaign)
@endif
{{ $campaign->name }}
@php $sc = ['active'=>'green','draft'=>'gray','paused'=>'yellow','completed'=>'blue'][$campaign->status] ?? 'gray'; @endphp
{{ ucfirst($campaign->status) }}
{{ $campaign->channels_count ?? 0 }} channels
{{ $campaign->posts_count }} videos
{{ number_format($campaign->posts_sum_views ?? 0) }} views
{{-- Actions row: view channels link + add channel button --}}
@if(($campaign->channels_count ?? 0) > 0)
View channels →
@else
No channels yet
@endif
{{-- Always-visible "+ Channel" button --}}
@endforeach