@extends('admin.layouts.app') @section('title', $voucher->voucher_no . ' - Voucher Summary') @section('content')
| # | Account Ledger | Debit | Credit | Description |
|---|---|---|---|---|
| {{ $index + 1 }} |
{{ $transaction->ledger->name }}
{{ $transaction->ledger->code ?? 'N/A' }}
|
@if($transaction->transaction_type == 'debit') Rs. {{ number_format($transaction->amount, 2) }} @php $totalDebit += $transaction->amount; @endphp @else - @endif | @if($transaction->transaction_type == 'credit') Rs. {{ number_format($transaction->amount, 2) }} @php $totalCredit += $transaction->amount; @endphp @else - @endif | {{ $transaction->narration ?? '-' }} |
| Total: | Rs. {{ number_format($totalDebit, 2) }} | Rs. {{ number_format($totalCredit, 2) }} | @if($totalDebit == $totalCredit && $totalDebit > 0) ✓ Balanced @else ⚠ Not Balanced @endif | |