EVACUATIONS AT {{ strtoupper($wpo_evacuation->port->name) }} TOC
No. | @if ($wpo_evacuation->type == 'shipment')SD No. | @endifMK Number | Category | Crop Year | Cocoa Type | Specialty | Consignee | Tonnaged to be Evacuated |
Shipment Period | {{--Port | --}}Shipping Mode | Contract Number | Type | 1. | @if ($wpo_evacuation->type == 'shipment')(SD/{{ substr($wpo_evacuation->fac->allocation_letter->ref_number, -3) }}) | @endif{{ strtoupper($wpo_evacuation->mk_number) }} | {{ strtoupper($wpo_evacuation->sales_advice->crop->name) }} | {{ strtoupper($wpo_evacuation->sales_advice->production_year->year) }} | {{ strtoupper(optional($wpo_evacuation->contract->shipping_instruction->cocoa_type)->type_name) }} | {{ $wpo_evacuation->contract->shipping_instruction->specialty_type ? strtoupper($wpo_evacuation->contract->shipping_instruction->specialty_type) : 'N/A' }} | {{ strtoupper($wpo_evacuation->consignee->name) }} | {{ $wpo_evacuation->tonnage_to_be_evacuated }} | {{ strtoupper($wpo_evacuation->shipping_period) }} | {{--{{ strtoupper($wpo_evacuation->port->name) }} | --}}{{ strtoupper($wpo_evacuation->contract->shipping_instruction->shippingmode->name) }} | {{ strtoupper($wpo_evacuation->contract_number) }} | {{ strtoupper($wpo_evacuation->type) }} |
---|
No. | Tonnage Assigned | Tonnage Evacuated | Shed | Warehouse | Category | Date Assigned | Re-Assign |
---|---|---|---|---|---|---|---|
{{ $loop->index + 1 }}. | {{ $shed_evac->tonnage_assigned }} | {{ $shed_evac->shed_waybills()->sum('quantity') / 16 }} | {{ strtoupper($shed_evac->shed->name) }} | {{ strtoupper($shed_evac->warehouse->name) }} | {{ optional($shed_evac->category)->name }} ({{ optional(optional($shed_evac->category)->season)->name }}) | {{ $shed_evac->date_assigned }} | @php $valid_date = \Carbon\Carbon::now() ->subDays(1) ->format('Y-m-d'); $valid_date2 = \Carbon\Carbon::parse($shed_evac->date_assigned) ->addDays(1) ->format('Y-m-d'); @endphpdate_assigned <= $valid_date) disabled="disabled" onclick="return false;" oncontextmenu="return false" @endif>Re-Assign |
MK Number | {{ strtoupper($wpo_evacuation->mk_number) }} |
---|---|
Category | {{ strtoupper($wpo_evacuation->sales_advice->crop->name) }} |
Consignee | {{ strtoupper($wpo_evacuation->consignee->name) }} |
Total Tonnage To be Evacuated | {{ $tte = $wpo_evacuation->tonnage_to_be_evacuated }} |
Total Tonnage Available From Assignment | {{$tta = $wpo_evacuation->tonnage_to_be_evacuated - $wpo_evacuation->shed_evacs()->sum('tonnage_assigned')}} |
Total Tonnage Fulfilled | {{ $ttf = $wpo_evacuation->shed_waybills()->sum('quantity') / 16 }} |
Total Tonnage Yet To be Fulfilled | {{ $tty = $tte - $ttf }} |