@extends('admin.layouts.app') @section('extra-css') @endsection @section('content')
| {{__('admin.id')}} | {{__('admin.type')}} | {{__('admin.weight')}} | {{__('admin.insurance_type')}} | {{__('admin.status')}} | {{__('admin.description')}} | {{__('admin.driver')}} | {{__('admin.sender')}} | {{__('admin.user_price')}} | {{__('admin.driver_price')}} | {{__('admin.final_price')}} | {{__('admin.packing_date')}} | {{__('admin.packing_time')}} | {{__('admin.from_address')}} | {{__('admin.from_address_detail')}} | {{__('admin.to_address')}} | {{__('admin.to_address_detail')}} | {{__('admin.receiver')}} | {{__('admin.truck')}} | {{__('admin.number_of_trucks')}} | {{__('admin.shipment_invoice_picture')}} | {{__('admin.packing_list_picture')}} | {{__('admin.created_at')}} | {{__('admin.more')}} |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$shipment->id}} | {{$shipment->type}} | {{$shipment->weight}} | {{$shipment->insurance_type?__($shipment->insurance_type->type):'-'}} | @if($shipment->status==0) {{__('admin.pending')}} @elseif($shipment->status==1) {{__('admin.packing')}} @elseif($shipment->status==2) {{__('admin.packed')}} @elseif($shipment->status==3) {{__('admin.delivering')}} @else {{__('admin.delivered')}} @endif | {{$shipment->description}} | {{$shipment->drivers()->where('shipment_drivers.status',1)->first()?->name}} | {{$shipment->sender->name}} | {{$shipment->user_price}} | {{$shipment->driver_price}} | {{$shipment->drivers()->where('shipment_drivers.status',1)->first()?->pivot->price}} | {{$shipment->packing_date}} | {{$shipment->packing_time}} | {{__('admin.location')}} | {{$shipment->from_address_details?->address_name}} | {{__('admin.location')}} | {{$shipment->to_address_details?->address_name}} | {{$shipment->receiver?->name}} | {{$shipment->truck?$shipment->truck->type?->type_ar:'-'}} | {{$shipment->number_of_trucks}} |
|
|
{{Carbon\Carbon::parse($shipment->created_at)->locale('ar')->translatedFormat('l dS F G:i - Y')}} |