@extends("layouts.app") @section("style") @endsection @section("wrapper")
@if($tasks->isNotEmpty()) @foreach ($tasks as $task)
{{ $task->name }}
{{ $task->name }}
{{ $task->PlatformDescription }}{{__('Platform')}}: {{ $task->PlatformName }}
{{__('Profit')}} {{ number_format($task->reward, 2, ',', '.') }}{{ $settings['currency'] }}
@if($task->watch_time)
{{__('Watch Time')}}: {{ $task->watch_time }} {{__('seconds')}}
@endif @if($task->status == 0)
{{__('Task Status')}}: {{ __('Disable') }}
@elseif($task->status == 1)
{{__('Task Status')}}: {{ __('Activate') }}
@elseif($task->status == 2)
{{__('Task Status')}}: {{ __('Awaiting Approval') }}
@elseif($task->status == 3)
{{__('Task Status')}}: {{ __('Deleted') }}
@endif
{{__('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) }}%
@if($task->watch_time) {{ __('Watch & Earn') }} @else
@csrf
@endif
@endforeach @else

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

@endif
@endsection @section("script") @if (session('success')) @endif @if ($errors->any()) @endif @endsection