{{--*/ $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() /*--}} Delivery Note
{{$view_trip_performance->document_number}}
CLIENT/ AGENT {{$client->name}}
  {{$client->address}}
  {{$client->country}}
  REF 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_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 : {{$driver->driver}} License /Passport : {{$driver->licence_number}}/@if($driver->passport_number) {{$driver->passport_number}} ({{$driver->driver}}) @endif
  Cargo Type: CONTAINERIZED; Cont. NO: {{$view_trip_performance->container}} ({{$view_trip_performance->size}})
  MT: {{$view_trip_performance->loading_tonnage}} Quantity: {{$view_trip_performance->loading_quantity}} @if($view_trip_performance->unit_of_measurement){{$view_trip_performance->unit_of_measurement}} @endif
  Cargo Desc: {{$view_trip_performance->cargo_description}}
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 {{$driver->driver}} ({{$driver->phone_number}})
Signature
Signature
Received the above mentioned goods in good order and condition
Signature & Stamp
Name