{{ $loop->index + 1 }} |
{{ $wpo_evacuation->mk_number }} |
{{ $wpo_evacuation->contract_number }} |
@if ($type == 'shipment')
@if ($wpo_evacuation->fac->allocation_letter->revise_ref_id != null)
(SD/{{ substr(optional(App\Model\allocation_letter::find($wpo_evacuation->fac->allocation_letter->revise_ref_id))->ref_number, 21) }})
|
@elseif ($wpo_evacuation->fac->allocation_letter->cancel_ref_id != null)
(SD/{{ substr(optional(App\Model\allocation_letter::find($wpo_evacuation->fac->allocation_letter->cancel_ref_id))->ref_number, 21) }})
|
@else
(SD/{{ substr(optional(optional($wpo_evacuation->fac)->allocation_letter)->ref_number, 21) }}) |
@endif
@endif
{{ $wpo_evacuation->consignee->name }} |
{{ $wpo_evacuation->contract->shipping_instruction?->consignee_reference }} |
{{ $wpo_evacuation->tonnage_to_be_evacuated }} |
{{ number_format($wpo_evacuation->shed_waybills()->where('contract_id', $wpo_evacuation->contract_id)->get()->sum('quantity') / 16,4) }}
|
{{ number_format($wpo_evacuation->shed_waybills()->where('contract_id', $wpo_evacuation->contract_id)->get()->sum('net_weight'),4) }}
|
@if ($wpo_evacuation->letter_date != null)
{{ $wpo_evacuation->letter_date }} |
@else
{{ optional($wpo_evacuation->wpo_allocation_letters->last())->date }} |
@endif
{{ $wpo_evacuation->shipping_period }} |
{{ $wpo_evacuation->port->name }} |
{{-- @if ($wpo_evacuation->type == 'shipment')
{{ strtoupper($wpo_evacuation->type) }} |
@else
FACTORY |
@endif --}}
@can('operation.accra_wpo', Auth::user())
|
@endcan
@can('operation.accra_wpo', Auth::user())
@if ($type == 'local')
status != 'sent' && $wpo_evacuation->type == 'shipment' && $wpo_evacuation->trucklist_id != null) disabled @endif>EDIT |
@else
VIEW LETTER |
@if ($wpo_evacuation->revise_wpo_allocation_letter_id == null)
ADD DATE |
@elseif ($wpo_evacuation->wpo_allocation_letter_id == null)
ADD DATE |
@else
VIEW REVISED LETTER |
@endif
@if ($wpo_evacuation->cancel_wpo_allocation_letter_id == null)
ADD DATE |
@elseif ($wpo_evacuation->revise_wpo_allocation_letter_id != null)
ADD DATE |
@else
VIEW CANCELLED LETTER |
@endif
@endif
@endcan
{{-- @can('operation.accra_wpo', Auth::user())
|
@endcan --}}
@can('operation.toc_wpo.arrival', Auth::user())
@if ($type == 'local')
@endif
Assign to SHED
|
@endcan
@endforeach