@if($tasks->isNotEmpty())
@foreach ($tasks as $task)
{{__('Platform')}}: {{ $task->PlatformName }}
{{__('Added by')}}: {{ $task->UserName }}
@php
$completedCount = $task->proofs->isNotEmpty() ? $task->proofs->first()->total : 0;
$completionPercentage = $task->limit > 0 ? ($completedCount / $task->limit * 100) : 0;
@endphp
@endforeach
@else
@endif
{{ $task->name }}
{{__('Your Earnings')}}: ({{ number_format($task->reward, 2, ',', '.') }}{{ $settings['currency'] }})
{{__('Limits')}}: {{ $task->daily_limit }}/{{ $task->limit }}
{{__('Location')}}: @if($task->CountryName == 0 || $task->CityName == 0)
{{__('All')}}
@else
{{ $task->CountryName }}/{{ $task->CityName }}
@endif
{{__('Completed')}}
{{__('No data found.')}}