FROM
@if ( $detail->task_type_id === 1 || $detail->task_type_id === 2 )
Vendor's Address: {{ $detail->pickup_address }}
@elseif ( $detail->task_type_id === 3 )
@if ( $detail->warehouse_id == 2 )
{{ $detail->warehouse_name }}: {{ $detail->pickup_address }}
@elseif ( $detail->warehouse_id == 1 )
( {{ $detail->warehouse_name }} )
@else
{{ $detail->warehouse_name }}: {{ $detail->warehouse_address }}
@endif
@endif
VENDOR
{{ $detail->vendor_name }}
{{ $detail->pickup_address }}
TO
@if ( $detail->warehouse_id == 1 ) {{--unassigned--}}
( {{ $detail->warehouse_name }} )
@else
@if ( $detail->task_type_id === 1 ) {{--direct delivery task--}}
@elseif( $detail->task_type_id === 2 ) {{--pickup task--}}
@if ( $detail->warehouse_id == 2 ) {{--direct delivery--}}
@else
@endif
@elseif ( $detail->task_type_id === 3 ) {{--delivery task--}}
@if ( $detail->warehouse_id == 2 ) {{--direct delivery--}}
@else
@endif
@else
something wrong...
@endif
@endif
CUSTOMER
{{ $detail->receiver_first_name . " " . $detail->receiver_last_name }}
Reference:
@foreach ($packages as $package)
{{ $package->reference_id }}
@endforeach
{{ $detail->receiver_address }}
Drop off Access: {{ $detail->drop_off_access }}
Floor:
@if($detail->drop_off_access === "Ground")
0
@else
{{ $detail->floor }}
@endif
FREIGHT
| No. |
Product Type |
Description |
Installation |
Unwrap |
Fragile |
Qty |
m3 |
Kg |
@foreach ($packages as $package)
| {{ $package->reference_id }} |
{{ $package->product_type }} |
{{ $package->product_description }} |
@if ($package->installation === 1)
@else
@endif
|
@if ($package->unwrap === 1)
@else
@endif
|
@if ($package->fragile === 1)
@else
@endif
|
{{ $package->quantity }} |
{{ $package->cubic }} |
{{ $package->weight }} |
@endforeach
TOTAL: {{ $total_quantity[ $detail->task_id ] ?? '' }} items(s)
{{ $total_cubic[ $detail->task_id ] ?? '' }} m3
{{ $total_weight[ $detail->task_id ] ?? '' }} kg
NOTES & INSTRUCTIONS
{{ $detail->delivery_note }}