@extends('layout.master', ['headerTitle' => 'Order Details']) @section('style') @endsection @section('body')

Order Details

ID {{$order->id}}
Title {{$order->title ?? ''}}
Company {{isset($order->company) ? $order->company->name : 'N/A'}}
Warehouse {{isset($order->warehouse) ? ucfirst($order->warehouse->name) : 'N/A'}}
Descriptions {{$order->description ?? ''}}
Contact {{$order->contact ?? ''}}
Work Type {{$order->workType->name ?? ''}}
Order From - to {{$order->orderFrom ?? ''}} - {{$order->orderTo ?? ''}}
Total Quantity {{$order->total_quantity ?? ''}}
Total Size (in KG) {{$order->total_size ?? ''}}
Rate {{$order->rate ?? ''}}
Distance (in meter) {{$order->distance ?? ''}}
Height (in feet) {{$order->height ?? ''}}
Start to End Time {{$order->start_time ?? ''}} To {{$order->end_time ?? ''}}
Documents {{$order->documents ?? ''}}
@foreach ($order->orderContainer as $key => $oc)

Container {{$key + 1}}

Cargo {{isset($oc->cargo)? $oc->cargo->name : ''}}
Quantity {{$oc->quantity ?? 'N/A'}}
Size (in KG) {{$oc->size ?? 'N/A'}}
Per Kg Price {{$oc->per_kg_price ?? ''}}
Amount {{$oc->amount ?? ''}}
@endforeach
@endsection