@extends('shipper.layouts.app') @section('extra-css') @endsection @section('content')

{{__('admin.shipments')}}

{{-- @can('create_categories')--}} {{-- @endcan--}}
@foreach($shipments as $shipment) @endforeach
{{__('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?__('admin.'.$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->final_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')}}
{{$shipments->withQueryString()->links('shipper.pagination.bootstrap-4')}}
@endsection @section('extra-js') @endsection @section('modal') @component('admin.layouts.includes.modal') @slot('modalID') deleteModal @endslot @slot('modalTitle') {{__('admin.delete-data')}} @endslot @slot('modalMethodPutOrDelete') @method('delete') @endslot @slot('modalContent')
{{__('admin.delete-message-confirm')}}
@endslot @endcomponent @endsection