@if(!$is_pdf)
Back
@endif
| Order No | Rec No | Customer Name | Total | Paid | Balance | Transaction Date | Payment Method | Receipt Type | Remark |
|---|---|---|---|---|---|---|---|---|---|
| {{ $txn->order_code ?? '-' }} | {{ $txn->rec_no ?? '-' }} | {{ $txn->customer_name ?? '-' }} | @endif {{-- TOTAL --}}{{ number_format($totalAmount, 2) }} | {{-- PAID --}}{{ number_format((float) ($txn->pay_amount ?? 0), 2) }} | {{-- BALANCE ONLY LAST ROW --}}@if($index == $rowCount - 1) @php $grandBalance += $totalAmount-$txn->pay_amount; @endphp {{ number_format($totalAmount-$txn->pay_amount, 2) }} @else {{number_format($totalAmount-$txn->pay_amount, 2)}} @endif | {{-- DATE --}}{{ !empty($txn->transaction_date) ? \Carbon\Carbon::parse($txn->transaction_date)->format('d-m-Y') : '-' }} | {{-- PAYMENT METHOD --}}
@php $mode = $txn->payment_mode ?? ''; @endphp
@if($mode === 'Bank Transfer')
Bank Transfer Bank: {{ $txn->bank_name ?? '-' }} Ac: {{ $txn->account_number ?? '-' }} IFSC: {{ $txn->ifsc_code ?? '-' }} @elseif($mode === 'Cheque') Cheque No: {{ $txn->cheque_number ?? '-' }} @elseif($mode === 'Online') Online Txn: {{ $txn->reference_id ?? '-' }} @else {{ $mode ?: '-' }} @endif |
{{-- RECEIPT --}}
{{ $txn->receipt_type ?? '-' }} | {{-- REMARK --}}{{ is_scalar($txn->remark ?? null) ? $txn->remark : '-' }} |
| No records found | |||||||||
| Total Balance | {{ number_format($grandBalance, 2) }} | ||||||||