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

OPERATIONS MANAGEMENT SYSTEM

FIELD REPORTS

@csrf @method('POST') GENERATE FIELD REPORT
@if (empty(Auth::user()->shed_id))
@else
@endif
User Image
@if (empty(Auth::user()->shed_id))

{{ strtoupper(Auth::user()->port->name) }} TOC ARRIVAL DESK

@else

{{ strtoupper(Auth::user()->shed->name) }} SHED

@endif

Field Report For {{ \Carbon\Carbon::now()->parse()->format('jS F Y') }}


@if (empty(Auth::user()->shed_id)) @endif @foreach ($shed_waybills as $shed_waybill) @if ($shed_waybill->type == 'factory') @else @endif @if ($shed_waybill->type == 'factory') @else @endif @if (empty(Auth::user()->shed_id)) @endif @endforeach
No. FACTORY/BUYER MK NO. CONTRACT NO. WAYBILL NO. HAULIER/VESSEL TRANSACTION CODE TRUCK NO COCOA TYPE SPECIALTY CLIENT QUANTITY LOADED(BAGS) QUANTITY LOADED(TONNES) SEASON UTILIZED STACK NO SHED ASSIGNEDCLERK GANG REMARKS
{{ $loop->index + 1 }}. {{ strtoupper($shed_waybill->consignee->name) }} {{ $shed_waybill->wpo_evacuation->sales_advice->mk_number }} {{ strtoupper($shed_waybill->contract->number) }} {{ $shed_waybill->waybill_no }}{{ strtoupper($shed_waybill->evac_truck->truck->transporter) }}{{ strtoupper($shed_waybill->wpo_evacuation->fac->vessel->name) }}{{ strtoupper($shed_waybill->evac_truck->transaction_code) }} {{ strtoupper($shed_waybill->evac_truck->truck->truck_no) }}N/A N/A {{ strtoupper(App\Model\cocoa_type::find($shed_waybill->cocoa_type_id)?->type_name) ?? (strtoupper(optional($shed_waybill->wpo_evacuation->contract->shipping_instruction->cocoa_type)->type_name) ?? 'N/A') }} {{ strtoupper(App\Model\specialty_type::find($shed_waybill->specialty_type_id)?->specialty_name) ?? (strtoupper(optional($shed_waybill->wpo_evacuation->contract->shipping_instruction)->specialty_type) ?? 'N/A') }} {{ strtoupper(App\Model\client_type::find($shed_waybill->client_type_id)?->name) ?? 'N/A' }} {{ $shed_waybill->quantity }} {{ $shed_waybill->quantity / 16 }} CAT {{ $shed_waybill->category->name }}({{ $shed_waybill->season->name }}) @foreach ($shed_waybill->stack_records as $stack_record) {{ strtoupper($stack_record->mini_shed_stack()->withTrashed()->value('mini_name')) }}: {{ $stack_record->quantity_evacuated }}
@endforeach
{{ $shed_waybill->shed->name }}{{ strtoupper($shed_waybill->clerk) }} @if ($shed_waybill->gang_name != null) {{ strtoupper($shed_waybill->gang_name) }} @else @foreach ($shed_gang_allocations as $shed_gang_allocation) @if ($shed_waybill->id == $shed_gang_allocation->shed_waybill_id) {{ strtoupper($shed_gang_allocation->gang->gang_name) }}
@endif @endforeach @endif
TOTAL {{ $sbw = $shed_waybills->sum('quantity') }} {{ $sbw / 16 }}
TOTAL QUANTITY ASSIGNED(BAGS) {{ $shed_evacs->sum('tonnage_assigned') * 16 }}
TOTAL QUANTITY LOADED(BAGS) {{ $sbw }}
TOTAL NUMBER OF TRUCKS LOADED {{ $shed_waybills->whereNotNull('evac_truck_id')->count() }}
EXPECTED SAMPLE RESIDUE(KG) {{ 0.1 * $sbw }}
ACTUAL SAMPLE RESIDUE REALISED (KG) OTHER DISCREPANT COCOA (KG)
DEPOT KEEPER SUPERVISOR
NAME NAME
SIGN SIGN
@endsection @section('more-scripts') @endsection