@extends('layouts.admin') @section('title', 'Expenses') @section('page-title', 'Expenses') @section('page-subtitle', 'Track church expenses') @section('content')
Add Expense

Total Expenses

GH₵{{ number_format($stats['total'] ?? 0, 2) }}

This Month

GH₵{{ number_format($stats['this_month'] ?? 0, 2) }}

Pending Approval

{{ $stats['pending'] ?? 0 }}

Pending Amount

GH₵{{ number_format($stats['pending_amount'] ?? 0, 2) }}

@forelse($expenses as $expense) @empty @endforelse
Description Category Amount Date Status Approved By Actions

{{ $expense->description }}

{{ $expense->vendor ?? '' }}

{{ $expense->category?->name ?? '-' }} GH₵{{ number_format($expense->amount, 2) }} {{ $expense->expense_date?->format('M d, Y') }} {{ ucfirst($expense->status) }} {{ $expense->approver?->name ?? '-' }}
@if($expense->status === 'pending')
@csrf
@endif
@csrf @method('DELETE')

No expenses found

@if($expenses->hasPages())
{{ $expenses->withQueryString()->links() }}
@endif
@endsection