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

OPERATIONS MANAGEMENT SYSTEM

User Image
@if (empty(Auth::user()->shed_id) && $request->shed_id == 0)

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

@elseif (empty(Auth::user()->shed_id) && $request->shed_id > 0)

{{ strtoupper(App\Model\shed::find($request->shed_id)->name) }} SHED

@else

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

@endif

Field Report: {{ \Carbon\Carbon::parse($date_from)->format('jS F Y') }} - {{ \Carbon\Carbon::parse($date_to)->format('jS F Y') }}


@if ($request->shed_id == 0) @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 ($request->shed_id == 0) @endif @if ($irs = $internal_waybill->rejection_details->count() > 0) @else @endif @endforeach
No. LEFTOVER STATUS LBC TRANS.
CODE
TRUCK STATION BUSH
WAYBILL
INTERNAL
WAYBILL
CAT BUSH QTY PORT QTY REGION COCOA TYPE SPECIALTY CLIENT SHED ASSIGNEDPURITY CAT. STACK REMARKS GANG CLERK EXCESS OR SHORT REJEC. CAT. CHG. REMARKS WEIGHT REMARKS
{{ $loop->index + 1 }}. YES {{ $internal_waybill->bush_waybill->lbc->name }} {{ $internal_waybill->bush_delivery->transaction_code }} {{ 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 }} {{ $internal_waybill->cocoa_type->type_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->specialty_type }} {{ $internal_waybill->client_name }}{{ $internal_waybill->shed->name }} @foreach ($categorys as $category) @if ($internal_waybill->purity_category_id == $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) }} @elseif(!$shed_gang_allocations->isEmpty()) @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 {{-- expr --}} @else @php $ished_id = $internal_waybill->shed_id; $ished_gang_allocations = App\Model\shed_gang_allocation::where('shed_id', $ished_id)->get(); @endphp @foreach ($ished_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) }} {{ $internal_waybill->excess }} {{ $internal_waybill->rejections }} {{ strtoupper($internal_waybill->cat_change_remarks) }} @if ($internal_waybill->excess < 0) Short: {{ abs($internal_waybill->excess) }} @elseif ($internal_waybill->excess > 0) Excess: {{ abs($internal_waybill->excess) }} @else @endif
@if ($internal_waybill->bag_average == null) @elseif($internal_waybill->bag_average < 63.0) Short weight @else Normal Weight @endif
TOTAL {{-- $sbw = array_sum($bush_qtys) --}} {{ $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