{{ $loop->index + 1 }} |
{{ strtoupper($shed_waybill->type) }} |
{{ strtoupper(optional($shed_waybill->bush_delivery)->transaction_code) }} |
{{ strtoupper($shed_waybill->waybill_no) }} |
{{ strtoupper($shed_waybill->waybill_date) }} |
{{ strtoupper($shed_waybill->quantity) }} |
{{ strtoupper(App\Model\shed::find($shed_waybill->originating_shed_id)->port->name) }}
({{ strtoupper(App\Model\shed::find($shed_waybill->originating_shed_id)->name) }})
|
{{ strtoupper(App\Model\shed::find($shed_waybill->destination_shed_id)->port->name) }}
({{ strtoupper(App\Model\shed::find($shed_waybill->destination_shed_id)->name) }}) |
{{ strtoupper(App\Model\cocoa_type::find($shed_waybill->cocoa_type_id)?->type_name) }} |
{{ 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) }} |
{{ strtoupper($shed_waybill->category?->name) }} |
{{ strtoupper($shed_waybill->season?->name) }} |
stack_records->sum('quantity_added') == $shed_waybill->quantity) onclick="event.preventDefault();" disabled='disabled' oncontextmenu="return false;" @elseif ($shed_waybill->waybill_stacks->sum('bags_quantity_added') == $shed_waybill->quantity) onclick="event.preventDefault();" disabled='disabled' oncontextmenu="return false;" @endif>STACK
|
STACK |
QTY |
RE-STACK |
@if ($shed_waybill->waybill_stacks->count() > 0)
@foreach ($shed_waybill->waybill_stacks()->where('shed_id', $destination_shed_id)->get() as $waybill_stack)
{{ optional($waybill_stack->stack)->stack_name }} |
{{ $waybill_stack->bags_quantity_added }} |
Re-Stack |
@endforeach
@else
@foreach ($shed_waybill->stack_records()->where('shed_id', $destination_shed_id)->withTrashed()->get() as $stack_record)
{{ $stack_record->mini_shed_stack()->withTrashed()->value('mini_name') }} CAT:
{{ $stack_record->category?->name }} |
{{ $stack_record->quantity_added }} |
Re-Stack |
@endforeach
@endif
|
@if (Auth::user()->shed_id != 48)
Gang Activities
|
@endif
@endforeach