@extends('layouts.app') @section('title', 'Transaction Ledger') @section('content')
Complete financial transaction history
Total Credits
R {{ number_format($totals['credits'], 2) }}
Total Debits
R {{ number_format($totals['debits'], 2) }}
Net Balance
R {{ number_format($totals['credits'] - $totals['debits'], 2) }}
| Reference | Date | Type | Category | Description | Debit | Credit |
|---|---|---|---|---|---|---|
| {{ $entry->reference_number }} | {{ $entry->created_at->format('d M Y H:i') }} | {{ $entry->type }} | {{ str_replace('_', ' ', $entry->category) }} | {{ $entry->description }} | {{ $entry->direction === 'debit' ? 'R ' . number_format($entry->amount, 2) : '-' }} | {{ $entry->direction === 'credit' ? 'R ' . number_format($entry->amount, 2) : '-' }} |
| No transactions found | ||||||