@extends('user.layouts.app') @section('content')
{{-- ── Header ── --}}

📺 Watch & Earn

Watch YouTube videos to earn money quickly and easily

{{-- ── Stat Cards ── --}} @php $stats = [ ['label'=>'Total Video Earnings', 'value'=>format_currency($totalEarned), 'sub'=>"From {$watchedCount} videos", 'icon'=>'mgc_wallet_4_line', 'accent'=>'#10b981', 'tint'=>'rgba(16,185,129,.10)'], ['label'=>"Today's Earnings", 'value'=>format_currency($todayEarned), 'sub'=>'Resets at midnight', 'icon'=>'mgc_calendar_line', 'accent'=>'#3073F1', 'tint'=>'rgba(48,115,241,.10)'], ['label'=>'Average Reward', 'value'=>format_currency($averageReward), 'sub'=>'Per video watched', 'icon'=>'mgc_chart_bar_line', 'accent'=>'#f59e0b', 'tint'=>'rgba(245,158,11,.10)'], ['label'=>'Videos Watched', 'value'=>number_format($watchedCount), 'sub'=>'All-time', 'icon'=>'mgc_play_circle_line', 'accent'=>'#a855f7', 'tint'=>'rgba(168,85,247,.10)'], ]; @endphp
@foreach($stats as $stat)

{{ $stat['label'] }}

{{ $stat['value'] }}

{{ $stat['sub'] }}

@endforeach
{{-- ── Section Header ── --}}

Watch Videos & Earn

Watch YouTube videos to earn money quickly and easily

{{-- ── Videos Grid ── --}} @if($videos->isEmpty())

No videos available right now

Fresh content is added regularly — check back soon!

@else
@foreach($videos as $video) @php $watch = $watches[$video->id] ?? null; $rewarded = $watch && $watch->rewarded; $progress = $watch ? min(100, round($watch->watched_seconds / max(1, $video->required_seconds) * 100)) : 0; @endphp
{{-- Thumbnail --}}
{{ $video->title }} {{-- Play overlay --}}
{{-- Duration badge --}} {{ $video->duration_label }} {{-- YouTube tag --}} YouTube {{-- Reward badge --}} @if($rewarded) Earned @else +{{ format_currency($video->reward) }} @endif
{{-- Body --}}

{{ $video->title }}

{{ $video->description ?? 'Watch this video to earn your reward instantly.' }}

Watch {{ $video->required_label }} to earn
{{-- Progress bar (if partially watched) --}} @if($watch && !$rewarded && $watch->watched_seconds > 0)
In progress {{ $progress }}%
@endif
@endforeach
@endif {{-- ── How It Works ── --}}

How It Works

@foreach([ ['1','Watch Videos','Select a video and watch it for the required time to earn your reward','mgc_play_circle_line','#3073F1','rgba(48,115,241,.10)'], ['2','Earn Rewards','Get paid instantly for each video you watch for the required time','mgc_cash_line','#10b981','rgba(16,185,129,.10)'], ['3','Withdraw Money','Once you reach the minimum, withdraw your earnings via multiple methods','mgc_wallet_3_line','#a855f7','rgba(168,85,247,.10)'], ] as $step)

{{ $step[0] }}. {{ $step[1] }}

{{ $step[2] }}

@endforeach
{{-- ── Tips ── --}}

Tips to Maximize Earnings

@foreach([ ['Watch videos daily','No daily limits — watch as many videos as you want!'], ['Complete the required watch time','Watch each video for the full required time to earn rewards'], ['Stay on the page','Tab switches and minimizing pause the timer — keep the video visible'], ['Refer friends','Earn 10% of what your referrals earn from watching videos'], ] as $tip)

{{ $tip[0] }}

{{ $tip[1] }}

@endforeach
{{-- ── Watch Modal ── --}} {{-- ── Styles ── --}} {{-- ── YouTube IFrame API + watch tracker ── --}} @endsection