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

OPERATIONS MANAGEMENT SYSTEM

TRUCK REPORT ({{App\Model\consignee::find($_SESSION['consignee'])->name}})

@foreach ($evac_trucks as $evac_truck) @foreach ($evac_truck->shed_waybills as $shed_waybill) @endforeach @endforeach
No. Truck No. Transaction Code First Weight Second Weight Net Weight No. of Bags MK. MK.Tonnage Contract No. Contract Tonnage Tonnage Delivered Tonnage Left Factory First Weight Factory Second Weight Factory Net Weight Factory Bags Net Weight Status Bags Status
{{$loop->index + 1}}. {{$evac_truck->truck->truck_no}} {{$evac_truck->transaction_code}} {{$evac_truck->first_weight}} {{$evac_truck->second_weight}} {{$evac_truck->net_weight}} {{$evac_truck->shed_waybills()->sum('quantity')}} {{$evac_truck->wpo_evacuation->mk_number}} {{$evac_truck->wpo_evacuation->sales_advice->tonnage}} {{$evac_truck->wpo_evacuation->contract_number}}{{$shed_waybill->contract->tonnage}} {{$shed_waybill->contract->shed_waybills()->sum('net_weight')}} {{$shed_waybill->sales_advice->tonnage - $shed_waybill->contract->shed_waybills()->sum('net_weight')}}{{$evac_truck->factory_first_weight}} {{$evac_truck->factory_second_weight}} {{$evac_truck->factory_net_weight}} {{$evac_truck->factory_bags}} @php $cmc_net_weight = $evac_truck->net_weight; $fac_net_weight = $evac_truck->factory_net_weight; $diff_net_weight = $cmc_net_weight - $fac_net_weight; @endphp @if ($diff_net_weight > 100) FLAGGED @else ACCEPTED @endif @if($evac_truck->factory_bags != null) Confirmed @else Unconfirmed @endif
{!! $evac_trucks->render() !!}
@endsection @section('more-scripts') @endsection