@extends('admin.master') @section('title', 'Customer Ledger Statement') @section('content')
Name: {{ $customer->name }}
Mobile: {{ $customer->mobile }}
Address: {{ $customer->address ?? 'N/A' }}
| Date | Description | Bill Amount (Debit) | Paid Amount (Credit) | Balance |
|---|---|---|---|---|
| - | Opening Balance / Previous Due | {{ number_format($opening_balance, 2) }} | 0.00 | {{ number_format($opening_balance, 2) }} |
| {{ $item->date ? date('d-M-Y', strtotime($item->date)) : '-' }} | {{ $item->description }} | {{ $item->debit > 0 ? number_format($item->debit, 2) : '-' }} | {{ $item->credit > 0 ? number_format($item->credit, 2) : '-' }} | {{ number_format($running_balance, 2) }} |