@php $logs = $subscription->logs()->with('delivery_man')->latest()->paginate(config('default_pagination'))->withQueryString(); @endphp
{{translate('messages.subscription_delivery_logs')}}{{$logs->total()}}
@foreach($logs as $key=>$log) @if (isset($log->{$log->order_status})) @else @endif @endforeach
{{translate('messages.#')}} {{translate('messages.time')}} {{translate('messages.status')}} {{translate('messages.Delivery Man')}}
{{$key+$logs->firstItem()}}{{date('Y-m-d '.config('timeformat'), strtotime($log->{$log->order_status}))}}{{date('Y-m-d '.config('timeformat'), strtotime($log->updated_at))}} {{$log->order_status}} @if ($log->delivery_man) {{ $log->delivery_man->f_name.' '.$log->delivery_man->l_name }} @else {{ translate('messages.Delivery Man Not Found') }} @endif