@extends('admin.layout.app') @section('more-head') @endsection @section('main-content')

WPO EVACUATION

@if ($type == 'shipment')

SHIPMENT

@else

FACTORY

@endif @can('operation.accra_mkt', Auth::user()) @endcan
@if ($type == 'shipment') @endcan {{-- --}} @can('operation.accra_wpo', Auth::user()) @endcan @can('operation.accra_wpo', Auth::user()) @if ($type == 'local') @else @endif @endcan {{-- @can('operation.accra_wpo', Auth::user()) @endcan --}} @can('operation.toc_wpo.arrival', Auth::user()) @if ($type == 'local') @endif @endcan @foreach ($wpo_evacuations as $wpo_evacuation) @if ($type == 'shipment') @if ($wpo_evacuation->fac->allocation_letter->revise_ref_id != null) @elseif ($wpo_evacuation->fac->allocation_letter->cancel_ref_id != null) @else @endif @endif @if ($wpo_evacuation->letter_date != null) @else @endif {{-- @if ($wpo_evacuation->type == 'shipment') @else @endif --}} @can('operation.accra_wpo', Auth::user()) @endcan @can('operation.accra_wpo', Auth::user()) @if ($type == 'local') @else @if ($wpo_evacuation->revise_wpo_allocation_letter_id == null) @elseif ($wpo_evacuation->wpo_allocation_letter_id == null) @else @endif @if ($wpo_evacuation->cancel_wpo_allocation_letter_id == null) @elseif ($wpo_evacuation->revise_wpo_allocation_letter_id != null) @else @endif @endif @endcan {{-- @can('operation.accra_wpo', Auth::user()) @endcan --}} @can('operation.toc_wpo.arrival', Auth::user()) @if ($type == 'local') @endif @endcan @endforeach @if ($type == 'shipment') @endcan {{-- --}} @can('operation.accra_wpo', Auth::user()) @endcan @can('operation.accra_wpo', Auth::user()) @if ($type == 'local') @else @endif @endcan {{-- @can('operation.accra_wpo', Auth::user()) @endcan --}} @can('operation.toc_wpo.arrival', Auth::user()) @if ($type == 'local') @endif @endcan
No. MK Number Contract Number SD No.Consigne Marketing Reference Tonnaged to be Evacuated Expected Tonnage Evacuated Actual Tonnage Evacuated Letter Date Shipment Period PortType SENDEDITOriginal Letter Revision Letter Cancellation LetterDELETEAssign To Shed
{{ $loop->index + 1 }} {{ $wpo_evacuation->mk_number }} {{ $wpo_evacuation->contract_number }} (SD/{{ substr(optional(App\Model\allocation_letter::find($wpo_evacuation->fac->allocation_letter->revise_ref_id))->ref_number, 21) }}) (SD/{{ substr(optional(App\Model\allocation_letter::find($wpo_evacuation->fac->allocation_letter->cancel_ref_id))->ref_number, 21) }}) (SD/{{ substr(optional(optional($wpo_evacuation->fac)->allocation_letter)->ref_number, 21) }}){{ $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) }} {{ $wpo_evacuation->letter_date }}{{ optional($wpo_evacuation->wpo_allocation_letters->last())->date }}{{ $wpo_evacuation->shipping_period }} {{ $wpo_evacuation->port->name }}{{ strtoupper($wpo_evacuation->type) }}FACTORY status != 'sent' && $wpo_evacuation->type == 'shipment' && $wpo_evacuation->trucklist_id != null) disabled @endif>EDIT VIEW LETTER ADD DATE ADD DATE VIEW REVISED LETTER ADD DATE ADD DATE VIEW CANCELLED LETTER Assign to SHED
No. MK Number Contract Number SD No.Consigne Marketing Reference Tonnaged to be Evacuated Expected Tonnage Evacuated Actual Tonnage Evacuated Letter Date Shipment Period PortType SENDEDITOriginal Letter Revision Letter Cancellation LetterDELETEAssign To Shed
@endsection @section('more-scripts') @endsection