@extends('layouts.app') @section('title', "Ledger: {$mediaAgent->name}") @section('content')
{{-- Date Filter --}}Total Commission Generated
Total Paid
Outstanding Due
| Date | Type | Description | Debit (৳) | Credit (৳) | Balance (৳) |
|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($e['date'])->format('d M Y') }} | @if ($e['type'] === 'deal_link') Deal Link @else Payment @endif | {{ $e['description'] }} | {{ $e['debit'] > 0 ? number_format($e['debit'], 2) : '—' }} | {{ $e['credit'] > 0 ? number_format($e['credit'], 2) : '—' }} | {{ number_format($e['balance'], 2) }} |
| No ledger entries found. | |||||