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

Wpo Evacuation

SHED BALANCE SHEET

SHED BALANCE SHEET between {{ date('d-M-Y', strtotime($dfrom)) }} and {{ date('d-M-Y', strtotime($dto)) }}
SEASON : {{ $season->name }}

@foreach ($categorys as $category) @if (!empty($shed->records)) @else @endif @if (!empty($records)) @else {{-- $ba - ($bel + $bef) --}} {{-- $ba - ($bel + $bef) --}} @endif @if (!empty($shed->records)) @else @endif @endforeach
OPENING BALANCE RECEIPTS EVACUATIONS CLOSING BALANCE
No. Cat Opening Balance as at
{{ date('d-M-Y', strtotime($dfrom)) }}
Total offloadings Total Evacuations Closing Balance as at
{{ date('d-M-Y', strtotime($dto)) }}
{{ $loop->index + 1 }} {{ $category->name }} {{ $shed->records->where('category_id', $category->id)->where('created_at', '<=', date($dfrom))?->where('transaction_type', 'offloading')->sum('quantity_added') -$shed->records->where('category_id', $category->id)->where('created_at', '<=', date($dfrom))->sum('quantity_added') }} ({{ $shed->records->where('category_id', $category->id)->where('created_at', '<=', date($dfrom))->where('transaction_type', 'evacuation')->sum('quantity_evacuated') -$shed->records->where('category_id', $category->id)->where('created_at', '<=', date($dfrom))->sum('quantity_evacuated') /16 }} tonnes) {{ $ba = $records->where('category_id', $category->id)->where('transaction_type', 'offloading')->sum('quantity_added') }} ({{ $records->where('category_id', $category->id)->where('transaction_type', 'offloading')->sum('quantity_added') / 16 }}tonnes) {{ $bel = $records->where('category_id', $category->id)->where('transaction_type', 'evacuation')->sum('quantity_evacuated') }} ({{ $records->where('category_id', $category->id)->where('transaction_type', 'evacuation')->sum('quantity_evacuated') / 16 }} tonnes) {{ $shed->records->where('category_id', $category->id)->where('created_at', '<=', date($dto))->where('transaction_type', 'offloading')->sum('quantity_added') -$shed->records->where('category_id', $category->id)->where('created_at', '<=', date($dto))->where('transaction_type', 'evacuation')->sum('quantity_evacuated') }} ({{ ($shed->records->where('category_id', $category->id)->where('created_at', '<=', date($dto))->where('transaction_type', 'offloading')->sum('quantity_added') -$shed->records->where('category_id', $category->id)->where('created_at', '<=', date($dto))->where('transaction_type', 'evacuation')->sum('quantity_evacuated')) /16 }} tonnes)
@endsection @section('more-scripts') @endsection