{{-- Select2 CSS --}} @php // ✅ Safe defaults (undefined variable error ঠেকায়) $customer = $customer ?? null; $ledger = $ledger ?? collect(); $totalDebit = $totalDebit ?? 0; $totalCredit = $totalCredit ?? 0; $due = $due ?? 0; @endphp {{-- Company meta (nullable-safe) --}} {{-- accessor --}}
💳

Credit Section

Record customer payment & link to invoice

💰 Total Due ৳{{ number_format($due ?? 0, 2) }}
{{-- ... --}}

Customer & Invoice

👤

Search by name / phone / email

#

Payment Details

{{-- Payments Table --}}
Date Invoice Amount Method Note Actions
Select a customer to view payments
{{-- Edit Modal --}}