@extends('layouts.app') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('page-subtitle', 'Campaign performance overview') @section('topbar-actions') All Campaigns New Campaign @endsection @push('styles') @endpush @section('content') {{-- ─── Stats Row ─── --}}
{{-- Total Views --}}
{{ number_format($stats['total_views']) }}
Total Views
Across all campaigns
{{-- Total Likes --}}
{{ number_format($stats['total_likes']) }}
Total Likes
Engagement metric
{{-- Tracked Videos --}}
{{ number_format($stats['total_posts']) }}
Tracked Videos
Across {{ $stats['active_campaigns'] }} active campaigns
{{-- Tracked Channels --}}
{{ number_format($stats['total_channels']) }}
Tracked Channels
Across all campaigns
{{-- Avg Engagement --}}
{{ $stats['avg_engagement'] }}%
Avg Engagement Rate
Likes / Views
{{-- ─── Main Grid ─── --}}
{{-- Left: Recent Videos --}}

Recent Videos

View all →
@if($recentPosts->isEmpty())

No videos tracked yet

Open a campaign and paste a YouTube link to start tracking.

Go to Campaigns
@else
@foreach($recentPosts as $post)
@if($post->thumbnail) {{ $post->title }} @else
@endif
{{ $post->campaign->name ?? '—' }}
@endforeach
@endif
{{-- Right: Campaign Summary --}}

Campaigns

+ New
@if($campaigns->isEmpty())

No campaigns

Create your first campaign to start tracking influencer content.

Create Campaign
@else @endif
{{-- ════════════════════════════════ QUICK ADD CHANNEL MODAL ════════════════════════════════ --}} @endsection @push('scripts') @endpush