Trial balance @php $amount = fn (float $value): string => abs($value) < 0.004 ? '—' : money(abs($value), false); $side = fn (float $value): string => abs($value) < 0.004 ? '' : ($value > 0 ? 'Dr' : 'Cr'); @endphp
Opening balance
{{ $amount($openingBalance) }} {{ $side($openingBalance) }}
Debits
{{ money($totals['debits'], false) }}
Credits
{{ money($totals['credits'], false) }}
Closing balance
{{ $amount($closingBalance) }} {{ $side($closingBalance) }}
@if (request()->hasAny(['account', 'from', 'to'])) Clear @endif
@if (! $account) @else
{{ $account->name }}
{{ $account->code }}
@if ($lines->isEmpty()) @else
@foreach ($lines as $line) @endforeach
Date Entry Type Description Cost centre Debit Credit Balance
{{ \Illuminate\Support\Carbon::parse($line->entry_date)->format('d M Y') }} {{ $line->entry_no }}
{{ $line->description ?? $line->entry_description ?? '—' }}
{{ $line->cost_center ?? '—' }} {{ $amount((float) $line->debit) }} {{ $amount((float) $line->credit) }} {{ $amount((float) $line->running) }} {{ $side((float) $line->running) }}
Period totals {{ money($totals['debits'], false) }} {{ money($totals['credits'], false) }} {{ money($closingBalance, false) }}
@if ($lines->hasPages())
{{ $lines->links() }}
@endif @endif @endif