@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 @if ($type == 'local') @endif {{-- --}} @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 ($type == 'local') @endif @if ($wpo_evacuation->letter_date != null) @else @endif {{-- @if ($wpo_evacuation->type == 'shipment') @else @endif --}} @endforeach @if ($type == 'shipment') @endcan @if ($type == 'local') @endif
No. MK Number Contract Number SD No.Consignee Marketing Reference Tonnaged to be Evacuated Tonnage EvacuatedActual Tonnage EvacuatedLetter Date Shipment Period PortTypeShed Allocations
{{ $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()->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 @foreach ($wpo_evacuation->shed_evacs->unique('date_assigned') as $shed_evac) @if ($type == 'local') @endif @endforeach
{{ $loop->index + 1 }}. Shed:
{{ $shed_evac->shed->name }}
Date of allocation:
{{ $shed_evac->date_assigned }}
Allocated Tonnage:
{{ $shed_evac->tonnage_assigned }}
Tonnage Fulfilled:
{{ number_format($shed_evac->shed_waybills->sum('quantity') / 16, 4) }}
Actual Tonnage Fulfilled:
{{ number_format($shed_evac->shed_waybills->sum('net_weight'), 4) }}
No. MK NumberSD No.Consignee Marketing Reference Tonnaged to be Evacuated Tonnage EvacuatedActual Tonnage EvacuatedLetter Date Shipment Period Port Contract Number Type Shed Allocations
@endsection @section('more-scripts') @endsection