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

OPERATIONS MANAGEMENT SYSTEM

OFFLOADINGS SUMMARY

@foreach ($ports as $port) @foreach ($summary_sheets as $lbc_id => $sheets) @php $ss = $sheets->where('port_id',$port->id)->first(); @endphp @foreach ($lbcs as $lbc) @if ($lbc->id == $lbc_id and $port->id == $ss['port_id'] ) @endif @endforeach @endforeach @endforeach
TOC LBC N0. OF SUMMARIES TOTAL TONNAGE OF SUMMARIES No. OF BAGS NO. OF AUDITED SUMMARIES TOTAL TONNAGE OF SUMMARIES AUDITED NO. OF BAGS
{{$ss->port['name']}} {{$lbc->name}} {{$sheets->where('lbc_id',$lbc->id)->count()}} {{App\Model\internal_waybill::where('lbc_id',$lbc->id)->where('port_id',$port->id)->where('summary_sheet_status',3)->sum('actual_tonnage')}} {{App\Model\internal_waybill::where('lbc_id',$lbc->id)->where('port_id',$port->id)->where('summary_sheet_status',3)->sum('purity_no_of_bags_ok')}} {{$sheets->whereNotNull('toc_audit_toc_certifier_id')->where('lbc_id',$lbc->id)->count()}} {{App\Model\internal_waybill::where('lbc_id',$lbc->id)->whereNotNull('audit_toc_authorizer_id')->where('port_id', $port->id)->where('summary_sheet_status',3)->sum('audited_actual_tonnage')}} {{App\Model\internal_waybill::where('lbc_id',$lbc->id)->whereNotNull('audit_toc_authorizer_id')->where('port_id', $port->id)->where('summary_sheet_status',3)->sum('audited_no_bags')}}


@endsection @section('more-scripts') @endsection