@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 ($internal_waybills as $internal_waybill) @if ($internal_waybill->left_over_status == 'reprogrammed' || $internal_waybill->left_over_status == 'leftover') @else @endif @if ($internal_waybill->specialty_type_id == null) @else @endif @if (empty(Auth::user()->shed_id)) @endif @if ($irs = $internal_waybill->rejection_details->count() > 0) @else @endif @endforeach
No. LEFTOVER STATUS LBC TRANS.
CODE
SEASON TRUCK STATION BUSH
WAYBILL
INTERNAL
WAYBILL
CAT BUSH QTY PORT QTY REGION COCOA TYPE SPECIALTY CLIENT SHED ASSIGNEDPURITY CAT. STACK REMARKS GANG CLERK WEIGHT REMARKS EXCESS/SHORT CAT. CHG. REMARKS
{{ $loop->index + 1 }}. YES {{ $internal_waybill->bush_waybill->lbc->name }} {{ $internal_waybill->bush_delivery->transaction_code }} {{ strtoupper($internal_waybill->bush_delivery->season->name) }} {{ strtoupper($internal_waybill->bush_delivery->truck_no) }} {{ strtoupper($internal_waybill->bush_waybill->station->station_name) }} {{ $internal_waybill->bush_waybill->bush_waybill_no }} {{ $internal_waybill->internal_waybill_no }} {{ $internal_waybill->category->name }} {{ $internal_waybill->internal_no_of_bags }} {{ $internal_waybill->purity_no_of_bags_ok }} {{ $internal_waybill->bush_waybill->station->district->region->region_code }} {{ optional($internal_waybill->cocoa_type)->type_name }}{{ $internal_waybill->specialty }} {{ $internal_waybill->client_name }}{{ App\Model\specialty_type::find($internal_waybill->specialty_type_id)->specialty_name }} {{ App\Model\client_type::find($internal_waybill->client_type_id)?->name }}{{ $internal_waybill->shed->name }} @foreach ($categorys as $category) @if ($category->id == $internal_waybill->purity_category_id) {{ $category->name }} @endif @endforeach @foreach ($internal_waybill->stack_records as $stack_record) {{-- @if ($internal_waybill->id == $waybill_stack->internal_waybill_id) --}} {{ strtoupper($stack_record->mini_shed_stack()->withTrashed()->value('mini_name')) }}: {{ $stack_record->quantity_added }}
{{-- @endif --}} @endforeach
@foreach ($internal_waybill->rejection_details as $rj) {{ $rj->rejected_no_of_bags }}: {{ $rj->type_of_rejection }}
@endforeach
N/A @if ($internal_waybill->gang_name != null) {{ strtoupper($internal_waybill->gang_name) }} @else @foreach ($shed_gang_allocations as $shed_gang_allocation) @if ($internal_waybill->id == $shed_gang_allocation->internal_waybill_id) {{ strtoupper($shed_gang_allocation->gang->gang_name) }}
@endif @endforeach @endif
{{ strtoupper($internal_waybill->clerk_name) }} @if ($internal_waybill->bag_average == null) N/A @elseif($internal_waybill->bag_average < 63.0) Short weight @else Normal Weight @endif @if ($internal_waybill->excess < 0) Short: {{ abs($internal_waybill->excess) }} @elseif ($internal_waybill->excess > 0) Excess: {{ abs($internal_waybill->excess) }} @else N/A @endif {{ $internal_waybill->cat_change_remarks }}
TOTAL {{ $sbw = $internal_waybills->sum('internal_no_of_bags') }} {{ $siw = $internal_waybills->sum('purity_no_of_bags_ok') }}
NO. OF POINTS {{ $p = $sbw / 1600 }} COCOA SWEEPINGS REALISED (KG)
EXPECTED SAMPLE RESIDUE(KG) {{ 0.2 * $sbw }} COCOA CUTTINGS REALISED (KG)
ACTUAL SAMPLE RESIDUE REALISED (KG) OTHER DISCREPANT COCOA (KG)
DEPOT KEEPER SUPERVISOR
NAME NAME
SIGN SIGN
@endsection @section('more-scripts') @endsection