@extends('layouts.main') @section('title', 'Expense Categories') @section('breadcrumb') @endsection @section('content')

Expense Categories

Manage expense categories and set target amounts for fundraising

Back to Expenses
@foreach($categories as $index => $category) @endforeach
# Category Name Description Target Amount (€) Total Spent (€) Expense Count Status Actions
{{ $index + 1 }} {{ $category->name }} {{ $category->description ?? '-' }} {{ number_format($category->target_amount, 2) }} {{ number_format($category->expenses_sum_amount ?? 0, 2) }} {{ $category->expenses_count ?? 0 }} @if($category->is_active) Active @else Inactive @endif @if(($category->expenses_count ?? 0) == 0) @endif
Totals: {{ number_format($categories->sum('target_amount'), 2) }} € {{ number_format($categories->sum('expenses_sum_amount'), 2) }} € {{ $categories->sum('expenses_count') }}
@endsection @push('scripts') @endpush