@extends('layouts.app') @section('title', 'Expenses') @section('content')
Electricity, salaries, supplies and more — routed through manager approval.
{{ $message }}
@enderror @error('category_delete'){{ $message }}
@enderrorCategories belonging to this branch. Shared categories are shown in the expense form but managed centrally.
| Category | Expenses recorded | Actions |
|---|---|---|
| {{ $category->name }} | {{ $category->expenses_count }} |
Edit |
| No branch-specific categories added yet. | ||
Approved and pending expenses grouped by category.
| Expense category | Entries | Total amount |
|---|---|---|
| {{ $categoryName }} | {{ $summary['count'] }} | {{ number_format($summary['total'], 2) }} |
| No expenses recorded this month. | ||
| Date | Category | Payee | Amount | Method | Status | Logged by | |
|---|---|---|---|---|---|---|---|
| {{ $expense->expense_date->format('d M Y') }} | {{ $expense->category?->name ?? 'Uncategorised' }} | {{ $expense->payee ?? '—' }} | {{ number_format($expense->amount, 2) }} | {{ $expense->paymentMethod->name ?? ucfirst($expense->payment_method) }} | {{ $expense->user?->name ?? 'Unknown user' }} |
@if ($expense->status->value === 'pending' && auth()->user()->can('expenses.approve'))
|
|
| No expenses recorded. | |||||||