@extends('layouts.app') @section('title', 'Expenses') @section('page-title', 'Expenses') @section('content')
Expenses
Track your business spending
Summary Add Expense
@if($expenses->isEmpty())
No expenses yet

Start tracking your business expenses to see profit/loss reports.

Add Expense
@else
@foreach($expenses as $expense) @endforeach
Date Category Description Amount
{{ $expense->date->format('d/m/Y') }} {{ $expense->category_label }} {{ $expense->description ?? '—' }} ₦{{ number_format($expense->amount, 2) }}
@csrf @method('DELETE')
Total ₦{{ number_format($expenses->sum('amount'), 2) }}
@if($expenses->hasPages())
{{ $expenses->links() }}
@endif @endif
@endsection