{{ strtoupper($shed->name) }} SHED
{{ strtoupper($mini_shed_stack->mini_name) }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
No. | Internal Waybill No. | Offloading Transaction Code |
@if (Auth::user()->shed_id == 48)
Tonnage Added | @elseBags Added | @endifDate Added | Cocoa Type | Specialty | Client | Category | Grade | Season | Type | CMC Waybill No. | Evacuation Transaction Code |
@if (Auth::user()->shed_id == 48)
Tonnage Evacuated | @elseBags Evacuated | @endifDate Evacuated | Type of evacuation | @foreach ($mini_shed_stack->stack_records as $record)
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $loop->index + 1 }}. | {{ $record->internal_waybill?->internal_waybill_no }} | {{ $record->internal_waybill?->bush_delivery?->transaction_code }} | @if (Auth::user()->shed_id == 48){{ $record->tonnage_added }} | @else{{ $record->quantity_added }} | @endif{{ $record->date_offloaded }} | {{ $record->cocoa_type->type_name }} | {{ $record->specialty_type?->specialty_name }} | {{ $record->client_type?->name }} | {{ $record->category?->name }} | {{ $record->grade }} | {{ $record->season->name }} | transaction_type == 'offloading') style="color: red; font-weight: bold;" @elseif($record->transaction_type == 'both') style="color: brown; font-weight: bold;" @else style="color: green; font-weight: bold;" @endif> {{ strtoupper($record->transaction_type) }} | {{ strtoupper($record->shed_waybill?->waybill_no) }} | {{ strtoupper($record->shed_waybill?->evac_truck?->transaction_code) }} | @if (Auth::user()->shed_id == 48){{ $record->tonnage_evacuated }} | @else{{ $record->quantity_evacuated }} | @endif{{ $record->date_evacuated }} | {{ strtoupper($record->shed_waybill?->type) }} |
TOTAL SUM OF OFFLOADED COCOA (IN BAGS): | @if (Auth::user()->shed_id == 48) {{ $mini_shed_stack->stack_records->whereIn('transaction_type', ['offloading', 'both'])->sum('tonnage_added') }} @else {{ $mini_shed_stack->stack_records->whereIn('transaction_type', ['offloading', 'both'])->sum('quantity_added') }} @endif | @if (Auth::user()->shed_id == 48) | TOTAL SUM OF TONNAGE EVACUATED: | {{ $mini_shed_stack->stack_records->whereIn('transaction_type', ['evacuation', 'both'])->sum('tonnage_evacuated') }} | BALANCE: | {{ $mini_shed_stack->stack_records->whereIn('transaction_type', ['offloading', 'both'])->sum('tonnage_added') - $mini_shed_stack->stack_records->whereIn('transaction_type', ['evacuation', 'both'])->sum('tonnage_evacuated') }} | @elseTOTAL SUM OF BAGS EVACUATED: | {{ $mini_shed_stack->stack_records->whereIn('transaction_type', ['evacuation', 'both'])->sum('quantity_evacuated') }} | BALANCE: | {{ $mini_shed_stack->stack_records->whereIn('transaction_type', ['offloading', 'both'])->sum('quantity_added') - $mini_shed_stack->stack_records->whereIn('transaction_type', ['evacuation', 'both'])->sum('quantity_evacuated') }} | @endif
---|