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

OPERATIONS MANAGEMENT SYSTEM

OFFLOADINGS SUMMARY

@foreach ($districts as $district) @endforeach
DISTRICT TOTAL TONNAGE TOTAL NO. OF BAGS TOTAL PRODUCER PRICE TOTAL EVACUATION COST TOTAL BUYERS MARGIN TOTAL CLAIM
{{$district->district_name}} {{$district->internal_waybills->sum('audited_actual_tonnage')}} {{$district->internal_waybills->sum('audited_no_bags')}} {{$pp = $district->internal_waybills()->whereNotNull('claim_id')->sum('audited_producer_price')}} {{$ec = $district->internal_waybills()->whereNotNull('claim_id')->sum('audited_evacuation_cost')}} {{$bm = $district->internal_waybills()->whereNotNull('claim_id')->sum('audited_buyers_margin')}} {{ $pp + $ec + $bm}}


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