@if(!$is_pdf)
Back
@endif
| Order No | Rec No | Order Date | Customer | Phone | Transaction Date | Payment Details | Total | Paid | Balance |
|---|---|---|---|---|---|---|---|---|---|
| {{ $txn->order_code }} | {{ $txn->rec_no }} | {{ \Carbon\Carbon::parse($txn->order_date)->format('d-m-Y') }} | {{ $txn->customer_name }} | {{ $txn->mobile }} | @endif {{-- Transaction Date --}}{{ $txn->transaction_date ? \Carbon\Carbon::parse($txn->transaction_date)->format('d-m-Y') : '-' }} | {{-- Payment Details --}}
@if($txn->payment_mode === 'Bank Transfer')
Bank Transfer Bank Name: {{ $txn->bank_name ?? '-' }} Ac No: {{ $txn->account_number ?? '-' }} IFSC Code: {{ $txn->ifsc_code ?? '-' }} @elseif($txn->payment_mode === 'Cheque') Cheque Cheque No: {{ $txn->cheque_number ?? '-' }} @elseif($txn->payment_mode === 'Online') Online Txn ID: {{ $txn->reference_id ?? '-' }} @else {{ $txn->payment_mode ?? '-' }} @endif |
{{-- Total --}}
{{ number_format($dynamicTotal, 2) }} | {{-- Paid --}}{{ number_format($txn->pay_amount ?? 0, 2) }} | {{-- Balance --}}@if($txn === $last) {{ number_format($txn->remaining_amount ?? 0, 2) }} @php $grandBalance += $txn->remaining_amount ?? 0; @endphp @else - @endif | @php $dynamicTotal = $txn->remaining_amount; @endphp
| Total Balance: | {{ number_format($grandBalance, 2) }} | ||||||||