@foreach($delivery_men as $key=>$dm) {{$key+1}} {{$dm['f_name']}} {{$dm['l_name']}}
{{$dm['f_name'].' '.$dm['l_name']}}
{{count($dm->rating)>0?number_format($dm->rating[0]->average, 1, '.', ' '):0}}
{{$dm['phone']}} @if($dm->zone) {{$dm->zone->name}} @else {{translate('messages.zone').' '.translate('messages.deleted')}} @endif {{--{{$banner['image']}}--}}
{{ $dm->orders ? count($dm->orders):0 }}
{{ translate('Currenty Assigned Orders') }} : {{$dm->current_orders}}
@if($dm->application_status == 'approved') @if($dm->active)
{{ translate('Active Status') }} : {{translate('messages.online')}}
@else
{{ translate('Active Status') }} : {{translate('messages.offline')}}
@endif @elseif ($dm->application_status == 'denied')
{{ translate('Active Status') }} : {{translate('messages.denied')}}
@else
{{ translate('Active Status') }} : {{translate('messages.pending')}}
@endif
@csrf @method('delete')
@endforeach