{{ strtoupper($shed->name) }} SHED
No. | MK Number | Contract Number | Trans. Code/Vessel | Waybill No. | Waybill Date | Quantity | COCOA TYPE | SPECIALTY | CLIENT | Category | Issued By | Quantities | Evacuate From Stack |
EDIT | Undo Waybill | @if (Auth::user()->shed_id != 48)Gang Activities | @endif|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $loop->index + 1 }}. | {{ strtoupper(optional($shed_waybill->sales_advice)->mk_number) }} | {{ strtoupper(optional($shed_waybill->contract)->number) }} | @if ($shed_waybill->type == 'factory'){{ strtoupper(optional($shed_waybill->evac_truck)->transaction_code) }} | @elseif($shed_waybill->type == 'shipment'){{ $shed_waybill->shed_evac->wpo_evacuation->fac->vessel->name }} | @endif{{ $shed_waybill->waybill_no }} | {{ $shed_waybill->waybill_date }} | {{ $shed_waybill->quantity }} | {{ $shed_waybill->cocoa_type ? $shed_waybill->cocoa_type : strtoupper(App\Model\cocoa_type::find($shed_waybill->cocoa_type_id)?->type_name) }} | {{ $shed_waybill->specialty ? $shed_waybill->specialty : strtoupper(App\Model\specialty_type::find($shed_waybill->specialty_type_id)?->specialty_name) }} | {{ strtoupper(App\Model\client_type::find($shed_waybill->client_type_id)?->name) }} | {{ App\Model\category::find($shed_waybill->category_id)?->name }} | {{ $shed_waybill->issued_by }} | quantity == $shed_waybill->waybill_stacks->sum('bags_quantity_evacuated')) onclick="event.preventDefault();" disabled='disabled' oncontextmenu="return false;" @elseif($shed_waybill->quantity == $shed_waybill->stack_records->sum('quantity_evacuated')) onclick="event.preventDefault();" disabled='disabled' oncontextmenu="return false;" @endif> STACK | waybill_stacks->sum('bags_quantity_evacuated') == $shed_waybill->quantity) onclick="event.preventDefault();" disabled='disabled' oncontextmenu="return false;" @elseif($shed_waybill->quantity == $shed_waybill->stack_records->sum('quantity_evacuated')) onclick="event.preventDefault();" disabled='disabled' oncontextmenu="return false;" @endif>EDIT | evac_truck->second_weight > 0) onclick="event.preventDefault();" disabled='disabled' oncontextmenu="return false;" @elseif ($shed_waybill->stack_records->sum('quantity_evacuated') > 0) @elseif ($shed_waybill->quantity == $shed_waybill->waybill_stacks->sum('bags_quantity_evacuated')) onclick="event.preventDefault();" disabled='disabled' oncontextmenu="return false;" @else onclick="return confirm('Are you sure you want to reverse this waybill?')" @endif>Undo Waybill | @if (Auth::user()->shed_id != 48)Gang Activities | @endif