OFFLOADINGS SUMMARY
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}} |
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)}} |
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)}} |
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()}} |