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

OPERATIONS MANAGEMENT SYSTEM

OFFLOADINGS SUMMARY

@foreach ($bush_trucks_registed as $port_id => $trucks) @foreach ($ports as $port) @if ($port_id == $port->id) @foreach ($trucks_grouped = $trucks->groupBy('lbc_id') as $lbc_id => $trucksgrouped) @foreach ($lbcs as $lbc) @if ($lbc->id == $lbc_id) @endif @endforeach @endforeach @endif @endforeach @endforeach
TAKE OVER CENTER Bush Trucks registered Discrepant Trucks Registered
{{strtoupper($port->name)}} TOC {{$trucks->where('port_id', $port->id)->where('type', 'bush delivery')->count()}} @php $de = $trucks->where('port_id', $port->id)->where('type', 'discrepant')->count(); $di = $trucks->where('port_id', $port->id)->where('type', 'descrepant')->count(); @endphp {{$de + $di}}
{{strtoupper($lbc->name)}} {{$trucksgrouped->where('lbc_id',$lbc_id)->where('type', 'bush delivery')->count()}} @php $ltb = $trucksgrouped->where('lbc_id',$lbc_id)->where('type', 'discrepant')->count(); $ltd = $trucksgrouped->where('lbc_id',$lbc_id)->where('type', 'descrepant')->count(); @endphp {{$ltb + $ltd}}


@foreach ($internal_waybills as $lbc_id => $waybills) @foreach ($lbcs as $lbc) @if ($lbc_id == $lbc->id) @endif @endforeach @endforeach
LBC EXPECTED QTY EXPECTED QTY (Tonnes.) PORT QTY PORT QTY (Tonnes.) WPO SUMMMARY TONNAGES TOC AUDITED SUMMARY TONNAGES WAYBILLS WITH CLAIMS(Tonnes)
{{strtoupper($lbc->name)}} {{number_format($waybills->sum('internal_no_of_bags'))}} {{number_format(($waybills->sum('internal_no_of_bags')/16),2)}} {{number_format($waybills->sum('purity_no_of_bags_ok'),2)}} {{number_format(($waybills->sum('purity_no_of_bags_ok')/16),2)}} {{ number_format(($waybills->where('summary_sheet_status',3)->sum('actual_tonnage')),2) }} {{number_format(($waybills->where('summary_sheet_status',3)->sum('audited_actual_tonnage')),2)}} {{number_format(($waybills->whereNotNull('claim_id')->sum('audited_actual_tonnage')),2)}}


@foreach ($claims as $port_id => $acclaims) @foreach ($ports as $port) @if ($port_id == $port->id) @foreach ($lbcclaims = $acclaims->groupBy('lbc_id') as $lbc_id => $acclbcs) @foreach ($lbcs as $lbc) @if ($lbc->id == $lbc_id) @endif @endforeach @endforeach @endif @endforeach @endforeach
TOC N0. OF CLAIMS TOTAL TONNAGE TOTAL CLAIM AUDITED CLAIMS TOTAL AUDITED TONNAGE TOTAL AUDITED CLAIM
{{strtoupper($port->name)}} TOC
{{strtoupper($lbc->name)}} {{$acclbcs->where('lbc_id',$lbc_id)->count()}} {{$acclbcs->where('lbc_id',$lbc_id)->sum('total_tonnage')}} @php $tc = array(); $item = $acclbcs->where('lbc_id',$lbc_id)->pluck('total_claim'); foreach ($item as $val) { $val = str_replace(',', '', $val); array_push($tc,$val); } $sum = array_sum($tc); @endphp {{number_format($sum,2)}} {{$acclbcs->where('lbc_id',$lbc_id)->whereNotNull('certified_by')->count()}} {{$acclbcs->where('lbc_id',$lbc_id)->whereNotNull('certified_by')->sum('total_tonnage')}} @php $tc = array(); $item = $acclbcs->where('lbc_id',$lbc_id)->whereNotNull('certified_by')->pluck('total_claim'); foreach ($item as $val) { $val = str_replace(',', '', $val); array_push($tc,$val); } $sum = array_sum($tc); @endphp {{number_format($sum,2)}}


@foreach ($summary_sheets as $port_id => $sheets) @foreach ($ports as $port) @if ($port_id == $port->id) @foreach ($accsheets = $sheets->groupBy('lbc_id') as $lbc_id => $lbc_sheets) @foreach ($lbcs as $lbc) @if ($lbc->id == $lbc_id) @endif @endforeach @endforeach @endif @endforeach @endforeach
TOC NO. OF SUMMARIES NO. OF AUDITED SUMMARIES
{{strtoupper($port->name)}} TOC
{{strtoupper($lbc->name)}} {{$lbc_sheets->where('lbc_id',$lbc_id)->count()}} {{$lbc_sheets->where('lbc_id',$lbc_id)->where('audit_status','certified')->count()}}
@endsection @section('more-scripts') @endsection