@include('includes.messages')
|
RECEIPTS |
EVACUATIONS |
BALANCE |
No. |
Cat |
Total offloadings |
Total Evacuations |
|
@foreach ($categorys as $category)
{{ $loop->index + 1 }} |
{{ $category->name }} |
{{ $ba = $records->where('category_id', $category->id)->whereIn('transaction_type', ['offloading', 'both'])->sum('quantity_added') }}
({{ $records->where('category_id', $category->id)->whereIn('transaction_type', ['offloading', 'both'])->sum('quantity_added') / 16 }}
tonnes)
|
{{ $bel = $records->where('category_id', $category->id)->whereIn('transaction_type', ['evacuation', 'both'])->sum('quantity_evacuated') }}
({{ $records->where('category_id', $category->id)->whereIn('transaction_type', ['evacuation', 'both'])->sum('quantity_evacuated') / 16 }}
tonnes) |
{{ $ba - $bel }} ({{ ($ba - $bel) / 16 }} tonnes)
|
@endforeach
@endsection
@section('more-scripts')
@endsection