@extends('layouts.admin.app') @section('title',translate('messages.delivery_man_incentives')) @push('css_or_js') @endpush @section('content')

{{ translate('messages.delivery_man_incentives')}} {{$incentives->total()}}

@csrf
@if($is_history = !Request::is('admin/delivery-man/incentive-history')) @endif @if ($is_history) @endif @foreach($incentives as $k=>$incentive) @if ($is_history ) @endif @if ($is_history) @endif @endforeach
{{translate('sl')}} {{ translate('messages.DeliveryMan') }} {{ translate('messages.zone') }} {{ translate('messages.Total_Earning') }} {{ translate('messages.incentive') }} {{ translate('messages.date') }} {{translate('messages.status')}}{{translate('messages.action')}}
@if(now()->startOfDay()->gt(\Carbon\Carbon::parse($incentive->date)) && $incentive->status=='pending' && isset($incentive?->deliveryman)) @endif {{$k+$incentives->firstItem()}} @if (isset($incentive?->deliveryman ) ) {{ $incentive?->deliveryman?->f_name.' '.$incentive?->deliveryman?->l_name }} @else {{translate('not_found') }} @endif {{$incentive->zone->name}} {{\App\CentralLogics\Helpers::format_currency($incentive->today_earning)}} {{\App\CentralLogics\Helpers::format_currency($incentive->incentive)}} {{ $incentive->date }} @if($incentive->status=='pending') @elseif($incentive->status=='approved') @else @endif @if(now()->startOfDay()->gt(\Carbon\Carbon::parse($incentive->date)))
@endif
@if (count($incentives) > 0 && $is_history) @endif
@if(count($incentives) !== 0)
@endif
{!! $incentives->links() !!}
@if(count($incentives) === 0)
public
{{translate('no_data_found')}}
@endif
@endsection @push('script_2') @endpush