@extends('layouts.app') @section('title', 'My Dashboard') @section('page-title', 'Influencer Dashboard') @section('page-subtitle', 'Your channel performance') @section('topbar-actions') Sync Now @endsection @push('styles') @endpush @section('content') {{-- ── Welcome Banner ── --}}
👋 Welcome back
{{ auth()->user()->name }}
@if(isset($myChannels) && $myChannels->count()) Tracking {{ $myChannels->count() }} {{ Str::plural('channel', $myChannels->count()) }} across {{ $myCampaigns->count() ?? 0 }} {{ Str::plural('campaign', $myCampaigns->count() ?? 0) }} @else Your content dashboard is ready @endif
{{ number_format($stats['total_views']) }}
Total Views
{{ number_format($stats['total_likes']) }}
Total Likes
{{ $stats['avg_engagement'] }}%
Avg Engagement
{{-- ── Stat Cards ── --}}
{{ number_format($stats['total_views']) }}
Total Views
Across all videos
{{ number_format($stats['total_likes']) }}
Total Likes
Engagement metric
{{ number_format($stats['total_posts']) }}
Tracked Videos
In active campaigns
{{ $stats['avg_engagement'] }}%
Avg Engagement
Likes / Views

My Videos

{{ method_exists($myPosts,'total') ? $myPosts->total() : count($myPosts) }} total
@if(isset($myPosts) && count($myPosts))
@foreach($myPosts as $post)
@if($post->thumbnail) {{ $post->title }} @else
@endif
{{ $post->last_synced_at ? $post->last_synced_at->diffForHumans() : 'Never synced' }}
Open
@endforeach
@if(method_exists($myPosts, 'links'))
{{ $myPosts->links() }}
@endif @else

No videos tracked yet

Your videos will appear here once a campaign manager adds your channel and syncs content.

@endif
@if(isset($myChannels) && $myChannels->count()) @foreach($myChannels->take(2) as $channel)
{{ strtoupper(substr($channel->influencer_name ?? 'C', 0, 1)) }}
{{ $channel->influencer_name ?? 'My Channel' }}
{{ $channel->channel_handle ?? ($channel->channel_url ?? '—') }}
{{ number_format($channel->posts_sum_views ?? 0) }}
Total Views
{{ number_format($channel->posts_sum_likes ?? 0) }}
Total Likes
{{ $channel->posts_count ?? 0 }}
Videos Tracked
@php $chEng = ($channel->posts_sum_views ?? 0) > 0 ? round((($channel->posts_sum_likes ?? 0) / $channel->posts_sum_views) * 100, 1) : 0; @endphp
{{ $chEng }}%
Engagement Rate
@endforeach @endif

My Campaigns

@if(isset($myCampaigns) && $myCampaigns->count())
@foreach($myCampaigns as $campaign)
{{ $campaign->name }} @php $sc = ['active'=>'green','draft'=>'gray','paused'=>'yellow','completed'=>'blue'][$campaign->status] ?? 'gray'; @endphp {{ ucfirst($campaign->status) }}
{{ number_format($campaign->my_views ?? 0) }} views {{ $campaign->my_posts_count ?? 0 }} videos
@endforeach
@else

No campaigns yet

You'll be added to campaigns by a manager.

@endif
@endsection