@extends('layouts.app') @section('title', 'Expenses') @section('content')

Expenses

Electricity, salaries, supplies and more — routed through manager approval.

@can('expenses.create') @endcan
@foreach (['' => 'All', 'pending' => 'Pending', 'approved' => 'Approved', 'rejected' => 'Rejected'] as $val => $lbl) {{ $lbl }} @endforeach
@forelse ($expenses as $expense) @empty @endforelse
DateCategoryPayeeAmountMethodStatusLogged by
{{ $expense->expense_date->format('d M Y') }} {{ $expense->category->name }} {{ $expense->payee ?? '—' }} {{ number_format($expense->amount, 2) }} {{ $expense->paymentMethod->name ?? ucfirst($expense->payment_method) }} {{ ucfirst($expense->status->value) }} {{ $expense->user->name }} @if ($expense->status->value === 'pending' && auth()->user()->can('expenses.approve'))
@csrf
@csrf
@endif
No expenses recorded.
{{ $expenses->links() }}
@csrf
@endsection