{{--*/ $client = \App\Model\Client::find($view_trip_performance->client_id) /*--}} {{--*/ $consignee = \App\Model\ConsignmentPossessor::find($view_trip_performance->consignee_id) /*--}} {{--*/ $consignor = \App\Model\ConsignmentPossessor::find($view_trip_performance->consignor_id) /*--}} {{--*/ $driver = \App\Model\Driver::whereEmployeeId($view_trip_performance->driver_id)->first() /*--}}
{{$view_trip_performance->document_number}}
{{----}}
CLIENT/ AGENT {{$client->name}} Client Code: {{$client->id}}
  {{$client->address}}
  {{$client->country}}
  Reference NO: {{$view_trip_performance->d_o_number}}
CONSIGNEE: @if($consignee) {{$consignee->name}} @endif CONSIGNOR: @if($consignor) {{$consignor->name}} @endif
@if($consignee) {{$consignee->address}} @endif @if($consignor) {{$consignor->address}} @endif
@if($consignee) {{$consignee->country}} @endif @if($consignor) {{$consignor->country}} @endif
LOADING DETAILS Loading Date: {{\Carbon\Carbon::parse($view_trip_performance->loading_order_date)->toFormattedDateString()}} Port .: @if(count($view_trip_performance->loading_point)){{$view_trip_performance->loading_point}} , @endif {{$view_trip_performance->loading_city}}
T1 Date: {{\Carbon\Carbon::parse($view_trip_performance->t1_date)->toFormattedDateString()}} Vehicles: {{$view_trip_performance->truck}} / {{$view_trip_performance->trailer}}
  Driver : {{$view_trip_performance->driver}} License /Passport : {{$driver->licence_number}}/@if($driver->passport_number) {{$driver->passport_number}} @endif
  Cargo Type: {{str_replace('_',' ',$view_trip_performance->cargo_type)}};
  Quantity: {{$view_trip_performance->loading_quantity}} @if($view_trip_performance->unit_of_measurements){{$view_trip_performance->unit_of_measurements}} @endif Tonnage: {{$view_trip_performance->loading_tonnage}}
  Cargo Desc: {{$view_trip_performance->descriptions}}
OFFLOADING DETAILS Discharge Port.: {{$view_trip_performance->destination}} Discharge City: {{$view_trip_performance->destination}}
  Discharge Country: {{$view_trip_performance->destination_country}}  
{{----}} {{----}}
Prepared by Driver
Name {{$view_trip_performance->creator}} Name {{$view_trip_performance->driver}} ({{$driver->phone_number}})
 
Signature
Signature
Received the above mentioned goods in good order and condition
Signature & Stamp
Name