@extends('admin.layouts.app') @section('title', 'Payment Ledger') @section('content')

Customer Payment Ledger

@csrf
@if ($searched)
X
@endif
@foreach ($rows as $index => $row) @endforeach
Sr No Date Type Invoice / Code Payment Mode Narration Debit (₹) Credit (₹) Balance (₹)
{{ $index + 1 }} {{ $row->PaymentDate ? date('d/m/Y', strtotime($row->PaymentDate)) : '' }} {{ $row->Type }} {{ $row->Code }} {{ $row->PayMode }} {{ $row->Narration }} {{ $row->debit > 0 ? number_format($row->debit, 2) : '-' }} {{ $row->credit > 0 ? number_format($row->credit, 2) : '-' }} {{ number_format($row->balance, 2) }}
Total : ₹ {{ number_format($totalDebit, 2) }} ₹ {{ number_format($totalCredit, 2) }} ₹ {{ number_format($balance, 2) }}
@endsection @push('scripts') @endpush