SHED BALANCE SHEET
SHED BALANCE SHEET between {{ date('d-M-Y', strtotime($dfrom)) }} and {{ date('d-M-Y', strtotime($dto)) }}
SEASON
: {{ $season->name }}
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 }} | @if (!empty($shed->records)){{ $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) | @else@endif @if (!empty($records)) | {{ $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) | @else{{-- $ba - ($bel + $bef) --}} | {{-- $ba - ($bel + $bef) --}} @endif @if (!empty($shed->records)) | {{ $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) | @else@endif |