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

OPERATIONS MANAGEMENT SYSTEM

CTOR SUMMARY

@foreach ($ports as $port) @foreach ($categorys as $category) @endforeach
{{strtoupper($port->name)}} TOC
RECEIPTS EVACUATIONS BALANCE
No. Cat Total offloadings (Bags) Total Evacs (Factories) Total Evacs (Foreign)
{{$loop->index + 1}} {{$category->name}} ({{$category->season->name}}) {{$ba = $port->waybill_stacks->where('category_id',$category->id)->sum('bags_quantity_added')}} ({{$port->waybill_stacks->where('category_id',$category->id)->sum('bags_quantity_added')/16}} tonnes) {{$bel = $port->waybill_stacks->where('category_id',$category->id)->where('location','local')->sum('bags_quantity_evacuated')}} ({{$port->waybill_stacks->where('category_id',$category->id)->where('location','local')->sum('bags_quantity_evacuated')/16}} tonnes) {{$bef = $port->waybill_stacks->where('category_id',$category->id)->where('location','foreign')->sum('bags_quantity_evacuated')}} ({{$port->waybill_stacks->where('category_id',$category->id)->where('location','foreign')->sum('bags_quantity_evacuated')/16}} tonnes) {{$ba - ($bel + $bef)}} ({{($ba - ($bel + $bef))/16}} tonnes)



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