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

OPERATIONS MANAGEMENT SYSTEM

OFFLOADINGS SUMMARY

@foreach ($summary_sheets as $lbc_id => $sheets) @foreach ($lbcs as $lbc) @foreach ($seasons as $season) @if ($lbc->id == $lbc_id ) @endif @endforeach @endforeach @endforeach @foreach ($seasons as $season) @endforeach
{{App\Model\port::find($uport_id)->name}} N0. OF SUMMARIES TOTAL TONNAGE OF SUMMARIES No. OF BAGS NO. OF AUDITED SUMMARIES TOTAL AUDITED TONNAGE OF SUMMARIES AUDITED NO. OF BAGS SEASON
{{$lbc->name}} {{$sheets->where('lbc_id',$lbc->id)->where('season_id',$season->id)->count()}} {{number_format(App\Model\internal_waybill::where('lbc_id',$lbc->id)->where('port_id',$uport_id)->where('season_id',$season->id)->whereNotNull('summary_sheet_id')->where('summary_sheet_status',3)->sum('actual_tonnage'),4)}} {{number_format(App\Model\internal_waybill::where('lbc_id',$lbc->id)->where('port_id',$uport_id)->where('season_id',$season->id)->whereNotNull('summary_sheet_id')->where('summary_sheet_status',3)->sum('purity_no_of_bags_ok'))}} {{$sheets->whereNotNull('toc_audit_toc_certifier_id')->where('lbc_id',$lbc->id)->where('season_id',$season->id)->count()}} {{number_format(App\Model\internal_waybill::where('lbc_id',$lbc->id)->whereNotNull('audit_toc_authorizer_id')->where('port_id', $uport_id)->where('season_id', $season->id)->whereNotNull('summary_sheet_id')->where('summary_sheet_status',3)->sum('audited_actual_tonnage'),4)}} {{number_format(App\Model\internal_waybill::where('lbc_id',$lbc->id)->whereNotNull('audit_toc_authorizer_id')->where('port_id', $uport_id)->where('season_id', $season->id)->whereNotNull('summary_sheet_id')->where('summary_sheet_status',3)->sum('audited_no_bags'))}} {{$season->name}}
TOTAL FOR ({{$season->name}}) {{number_format(App\Model\internal_waybill::where('port_id',$uport_id)->where('season_id',$season->id)->whereNotNull('summary_sheet_id')->where('summary_sheet_status',3)->sum('actual_tonnage'),4)}} {{number_format(App\Model\internal_waybill::where('port_id',$uport_id)->where('season_id',$season->id)->where('summary_sheet_status',3)->sum('purity_no_of_bags_ok'))}} {{number_format(App\Model\internal_waybill::whereNotNull('audit_toc_authorizer_id')->where('port_id', $uport_id)->where('season_id', $season->id)->whereNotNull('summary_sheet_id')->where('summary_sheet_status',3)->sum('audited_actual_tonnage'),4)}} {{number_format(App\Model\internal_waybill::whereNotNull('audit_toc_authorizer_id')->where('port_id', $uport_id)->where('season_id', $season->id)->whereNotNull('summary_sheet_id')->where('summary_sheet_status',3)->sum('audited_no_bags'))}}


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