@extends('layouts.app') @section('style') @endsection @section('wrapper')

{{__('YouTube Watch Tasks Analytics')}}

{{__('Comprehensive overview of all watch tasks performance and statistics')}}

{{ number_format($stats['total_tasks']) }}
{{__('Total Tasks')}}
{{__('All time')}}
{{ number_format($stats['active_tasks']) }}
{{__('Active Tasks')}}
{{__('Currently running')}}
{{ number_format($stats['inactive_tasks']) }}
{{__('Inactive Tasks')}}
{{__('Paused or ended')}}
{{ number_format($stats['total_completions']) }}
{{__('Total Completions')}}
{{__('Videos watched')}}
{{ number_format($stats['total_rewards_paid'], 2) }}{{ $settings['currency'] ?? 'TL' }}
{{__('Total Rewards Paid')}}
{{__('Earnings distributed')}}
{{ number_format($stats['pending_completions']) }}
{{__('Pending Completions')}}
{{__('In progress')}}
{{ number_format($stats['total_users']) }}
{{__('Active Users')}}
{{__('Participants')}}
{{ $stats['avg_completion_rate'] }}%
{{__('Avg Completion Rate')}}
{{__('Success rate')}}
{{__('All Watch Tasks')}}
{{__('Today')}}: {{ $stats['today_completions'] }} {{__('This Week')}}: {{ $stats['this_week_completions'] }}
{{__('Title')}} {{__('Creator')}} {{__('Reward')}} {{__('Duration')}} {{__('Completions')}} {{__('Status')}} {{__('Created')}} {{__('Actions')}}
{{__('Top Creators')}}
@if($stats['top_creators']->count() > 0) @foreach($stats['top_creators'] as $index => $creator)
{{ $index + 1 }}
{{ $creator->creator->account_holder ?? __('Unknown') }}
{{ $creator->completions_count }} {{__('completions')}}
@endforeach @else

{{__('No creators yet')}}

@endif
{{__('Recent Activities')}}
@if($stats['recent_activities']->count() > 0) @foreach($stats['recent_activities'] as $activity)
{{ substr($activity->user->account_holder ?? 'U', 0, 1) }}
{{ Str::limit($activity->watchTask->title, 30) }}
{{__('Completed by')}} {{ $activity->user->account_holder ?? __('Unknown') }}
{{ $activity->completed_at->diffForHumans() }}
+{{ number_format($activity->earned_amount, 2) }}{{ $settings['currency'] ?? 'TL' }}
@endforeach @else

{{__('No recent activities')}}

@endif
@endsection @section('script') @endsection