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

@csrf
@endforeach @else

{{__('No data found.')}}

@endif
@section("script") @if (session('success')) @endif @endsection @endsection