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

OPERATIONS MANAGEMENT SYSTEM

EVACUATE FROM WAREHOUSE

@include('includes.messages')
@php $user_warehouse = Auth::user()->warehouse_id; $user_port = Auth::user()->port_id; $esheds = App\Model\shed_evac::where('wpo_evacuation_id', $wpo_evacuation->id) //->where('warehouse_id', $user_warehouse) ->get(); @endphp

MK NUMBER: {{ strtoupper($wpo_evacuation->sales_advice->mk_number) }}

BUYER: {{ strtoupper($wpo_evacuation->consignee->name) }}

TONNAGE ASSIGNED TO WAREHOUSE: {{ $tta = $shed_evac->wpo_evacuation->shed_evacs->where('warehouse_id', $user_warehouse)->sum('tonnage_assigned') }}

@foreach ($esheds as $eshed)

ASSIGNED SHED: {{ $eshed->shed->name }} : tonnage: {{ number_format($eshed->tonnage_assigned, 2) }}

@endforeach

BAGS EQUIVALENT: {{ $tb = $tta * 16 }}

BAGS REMAINING: {{ $br = $tb - $shed_evac->wpo_evacuation->shed_waybills()->sum('quantity') }}

{{-- @if ($user_port == 3) @endif --}} @foreach ($evac_trucks as $evac) {{-- --}} {{-- @if ($user_port == 3) @endif --}} @endforeach
No. MK Number Contract Number Buyer Trans. Code Truck Number Transporter Bags First Weight Second Weight Print CodeCheck-Out
{{ $loop->index + 1 }} {{ strtoupper($evac->shed_evac->wpo_evacuation->sales_advice->mk_number) }} {{ strtoupper($evac->shed_evac->wpo_evacuation->contract->number) }} {{ strtoupper($evac->shed_evac->wpo_evacuation->consignee->name) }} {{ $evac->transaction_code }} {{ strtoupper(optional($evac->truck)->truck_no) }} {{ strtoupper(optional($evac->truck)->transporter) }} {{ $evac->shed_waybills()->sum('quantity') }} {{ $evac->first_weight }} {{ $evac->second_weight }} PRINT CODEsecond_weight == 0) disabled="disabled" @elseif ($evac->check_out_user_id != null) disabled="disabled" @endif oncontextmenu="return false;">Check Out

MK NUMBER: {{ strtoupper($wpo_evacuation->sales_advice->mk_number) }}

BUYER: {{ strtoupper($wpo_evacuation->consignee->name) }}

TONNAGE ASSIGNED TO WAREHOUSE: {{ $tta = $shed_evac->wpo_evacuation->shed_evacs()->where('warehouse_id', $user_warehouse)->sum('tonnage_assigned') }}

@foreach ($esheds as $eshed)

ASSIGNED SHED: {{ $eshed->shed->name }} : tonnage: {{ number_format($eshed->tonnage_assigned, 2) }}

@endforeach

BAGS EQUIVALENT: {{ $tb = $tta * 16 }}

BAGS REMAINING: {{ $br = $tb - $shed_evac->wpo_evacuation->shed_waybills()->sum('quantity') }}

{{ csrf_field() }} {{ method_field('POST') }}


{{--


--}}



@endsection @section('more-scripts') @endsection