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

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

{{__('Track performance and ROI of your watch tasks')}}

{{ number_format($stats['my_total_tasks']) }}
{{__('My Total Tasks')}}
{{__('Created by you')}}
{{ number_format($stats['my_active_tasks']) }}
{{__('Active Tasks')}}
{{__('Currently running')}}
{{ number_format($stats['my_inactive_tasks']) }}
{{__('Inactive Tasks')}}
{{__('Paused or ended')}}
{{ number_format($stats['my_total_completions']) }}
{{__('Total Completions')}}
{{__('Videos watched')}}
{{ number_format($stats['my_total_investment'], 2) }}{{ $settings['currency'] ?? 'TL' }}
{{__('Total Investment')}}
{{__('Money spent')}}
{{ number_format($stats['my_total_rewards_paid'], 2) }}{{ $settings['currency'] ?? 'TL' }}
{{__('Rewards Distributed')}}
{{__('Earnings given')}}
{{ $stats['my_avg_completion_rate'] }}%
{{__('Avg Completion Rate')}}
{{__('Success rate')}}
{{ $stats['my_roi'] }}%
{{__('Return on Investment')}}
@if($stats['my_roi'] > 0) {{__('Profitable')}} @elseif($stats['my_roi'] < 0) {{__('Loss')}} @else {{__('Break Even')}} @endif
{{__('My Watch Tasks')}}
{{__('Today')}}: {{ $stats['my_today_completions'] }} {{__('This Week')}}: {{ $stats['my_this_week_completions'] }}
{{__('Title')}} {{__('Reward')}} {{__('Duration')}} {{__('Progress')}} {{__('Budget')}} {{__('Status')}} {{__('Created')}} {{__('Actions')}}
{{__('Recent Activities')}}
@if($stats['my_recent_activities']->count() > 0) @foreach($stats['my_recent_activities'] as $activity)
{{ substr($activity->user->account_holder ?? 'U', 0, 1) }}
{{ Str::limit($activity->watchTask->title, 25) }}
{{__('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
{{__('Quick Stats')}}
{{ $stats['my_pending_completions'] }}
{{__('Pending')}}
{{ number_format($stats['my_total_investment'] - $stats['my_total_rewards_paid'], 2) }}{{ $settings['currency'] ?? 'TL' }}
{{__('Remaining Budget')}}
@endsection @section('script') @endsection