@extends('garage.layouts.app') @section('title', 'Ledger statement') @section('content') @php $bal = 0.0; // Dr positive, Cr negative (net) $totalDr = 0.0; $totalCr = 0.0; $print = request()->boolean('print'); @endphp
| Date | Voucher | Type | Ref | Dr | Cr | Balance | Narration |
|---|---|---|---|---|---|---|---|
| {{ $r->voucher_date }} | {{ $r->voucher_no }} | {{ $r->voucher_type }} | @include('garage.reports.partials.statement-reference-cell', ['row' => $r]) | {{ $dr ? number_format($dr, 2) : '—' }} | {{ $cr ? number_format($cr, 2) : '—' }} | {{ number_format(abs($runBal), 2) }} {{ $runBal >= 0 ? 'Dr' : 'Cr' }} |
{{ $r->narration ?: '—' }}
@if($sub !== '')
Sub-ledger: {{ $sub }}
@endif
@if(!empty($r->against_text))
Against: {{ $r->against_text }}
@endif
|
| No transactions. | |||||||
| Totals | {{ number_format($totalDr, 2) }} | {{ number_format($totalCr, 2) }} | {{ number_format(abs($bal), 2) }} {{ $closingSide }} | Closing balance | |||