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

OPERATIONS MANAGEMENT SYSTEM

INTRA-WAREHOUSE WAYBILLS

@if (Auth::user()->shed_id != 48) @endif @foreach ($shed_waybills as $shed_waybill) @if (Auth::user()->shed_id != 48) @endif @endforeach @if (Auth::user()->shed_id != 48) @endif
No. TYPE TRANS. CODE WAYBILL NO. WAYBILL DATE QUANTITY ORIGINATING SHED DESTINATION SHED COCOA TYPE SPECIALTY CLIENT CATEGORY SEASON STACK STACK RECORDSGang Activities
{{ $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)->warehouse->name) }} ({{ strtoupper(App\Model\shed::find($shed_waybill->originating_shed_id)->name) }}) {{ strtoupper(App\Model\shed::find($shed_waybill->destination_shed_id)->warehouse->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 @if ($shed_waybill->waybill_stacks->count() > 0) @foreach ($shed_waybill->waybill_stacks()->where('shed_id', $destination_shed_id)->get() as $waybill_stack) @endforeach @else @foreach ($shed_waybill->stack_records()->where('shed_id', $destination_shed_id)->withTrashed()->get() as $stack_record) @endforeach @endif
STACK QTY RE-STACK
{{ optional($waybill_stack->stack)->stack_name }} {{ $waybill_stack->bags_quantity_added }} waybill_stacks->count() > 0) onclick="event.preventDefault();" disabled='disabled' oncontextmenu="return false;"s @endif>Re-Stack
{{ $stack_record->mini_shed_stack()->withTrashed()->value('mini_name') }} CAT: {{ $stack_record->category?->name }} {{ $stack_record->quantity_added }} Re-Stack
Gang Activities
No. TYPE TRANS. CODE WAYBILL NO. WAYBILL DATE QUANTITY ORIGINATING SHED DESTINATION SHED COCOA TYPE SPECIALTY CLIENT CATEGORY SEASON STACK STACK RECORDSGang Activities
@endsection @section('more-scripts') @endsection