@extends('layouts.admin') @section('title', 'Agent Ledger') @section('content')
| Date | Type | Ref | Credit | Debit | Balance |
|---|---|---|---|---|---|
| - | Opening | OPEN | {{ number_format($open, 2) }} | 0.00 | {{ number_format($open, 2) }} |
| {{ optional($row['tx']->transaction_date)->format('d M Y') }} | {{ ucfirst($row['tx']->type) }} | {{ $row['tx']->reference_no }} | {{ $row['tx']->type === 'credit' ? number_format($row['tx']->amount, 2) : '0.00' }} | {{ $row['tx']->type === 'debit' ? number_format($row['tx']->amount, 2) : '0.00' }} | {{ number_format($row['balance'], 2) }} |