@extends('layouts.app') @section('title', 'Transactions') @section('page-title', 'Transaction Ledger') @section('content') {{-- ── Filter Bar ──────────────────────────────────────────────────────────── --}}
{{-- ── Totals Row ──────────────────────────────────────────────────────────── --}}
TOTAL INCOME
${{ number_format($filteredIncome, 2) }}
TOTAL EXPENSE
${{ number_format($filteredExpense, 2) }}
NET
${{ number_format($filteredIncome - $filteredExpense, 2) }}
{{-- ── Transaction Table ───────────────────────────────────────────────────── --}}
Transactions {{ $transactions->total() }}
@forelse($transactions as $tx) @empty @endforelse
Date Account Type Category Description Reference Amount Rec.
{{ $tx->transaction_date->format('d M Y') }} {{ $tx->account->type === 'administrative' ? 'Admin' : 'Activity' }} {{ $tx->type_badge }} {{ $tx->category }} {{ $tx->description ?? '—' }} {{ $tx->reference_no ?? '—' }} {{ $tx->type === 'income' ? '+' : '−' }}${{ number_format($tx->amount, 2) }}
@csrf @method('DELETE')
No transactions found.
Record First Transaction
@if($transactions->hasPages()) @endif
@endsection @push('scripts') @endpush