{{-- ── Company Header ── --}}
M.D.S
Trial Balance
{{-- ── Date & Urdu title row ── --}}
As From   {{ $fromDate ? \Carbon\Carbon::parse($fromDate)->format('d/m/Y') : '/ /' }}    To   {{ $toDate ? \Carbon\Carbon::parse($toDate)->format('d/m/Y') : '/ /' }}
کُل کھاتہ میزان
{{-- ── Account range ── --}}
Account Nos.:   {{ $fromCustomer ?? '—' }}   Till   {{ $toCustomer ?? '—' }}
{{-- ── No data message ── --}} @if(empty($trialData))

کوئی اندراج نہیں ملا۔

@else {{-- Group header --}} {{-- Sub header --}} @foreach($trialData as $row) @if($row['type'] === 'category') @elseif($row['type'] === 'subcategory') @elseif($row['type'] === 'account') {{-- Opening --}} {{-- Current --}} {{-- Balance --}} @elseif($row['type'] === 'subtotal') @endif @endforeach {{-- ── Grand Total ── --}}
A/C # Title Opening Current Balance
Debit Credit Debit Credit Debit Credit
{{ $row['ac'] }} {{ $row['title'] }}
{{ $row['ac'] }} {{ $row['title'] }}
{{ $row['ac'] }} {{ $row['title'] }}{{ $row['opening_debit'] ? number_format($row['opening_debit'], 0) : '' }} {{ $row['opening_credit'] ? number_format($row['opening_credit'], 0) : '' }}{{ $row['current_debit'] ? number_format($row['current_debit'], 0) : '' }} {{ $row['current_credit'] ? number_format($row['current_credit'], 0) : '' }}{{ $row['balance_debit'] ? number_format($row['balance_debit'], 0) : '' }} {{ $row['balance_credit'] ? number_format($row['balance_credit'], 0) : '' }}
{{ $row['title'] }} کُل {{ $row['opening_debit'] ? number_format($row['opening_debit'], 0) : '' }} {{ $row['opening_credit'] ? number_format($row['opening_credit'], 0) : '' }} {{ $row['current_debit'] ? number_format($row['current_debit'], 0) : '' }} {{ $row['current_credit'] ? number_format($row['current_credit'], 0) : '' }} {{ $row['balance_debit'] ? number_format($row['balance_debit'], 0) : '' }} {{ $row['balance_credit'] ? number_format($row['balance_credit'], 0) : '' }}
Grand Total    کُل مجموعہ {{ $grandOpeningDebit ? number_format($grandOpeningDebit, 0) : '' }} {{ $grandOpeningCredit ? number_format($grandOpeningCredit, 0) : '' }} {{ number_format($grandTotalDebit, 0) }} {{ number_format($grandTotalCredit, 0) }} {{ $grandBalanceDebit ? number_format($grandBalanceDebit, 0) : '' }} {{ $grandBalanceCredit ? number_format($grandBalanceCredit, 0) : '' }}
@endif