@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') }}
No. |
MK Number |
Contract Number |
Buyer |
Trans. Code |
Truck Number |
Transporter |
Bags |
First Weight |
Second Weight |
Print Code |
{{-- @if ($user_port == 3)
Check-Out |
@endif --}}
@foreach ($evac_trucks as $evac)
{{ $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 CODE |
{{-- second_weight == 0) disabled="disabled" @elseif ($evac->check_out_user_id != null) disabled="disabled" @endif oncontextmenu="return false;">Check Out | --}}
{{-- @if ($user_port == 3)
|
@endif --}}
@endforeach
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') }}