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

Company Expenses

Track and manage all company-wide expenses.

@forelse($expenses as $expense) @empty @endforelse
Date Title Category Amount Status Actions
{{ $expense->expense_date->format('M d, Y') }} {{ $expense->title }} {{ ucwords(str_replace('_', ' ', $expense->expense_category)) }} {{ number_format($expense->amount, 2) }} @php $statusColor = match($expense->status) { 'approved' => ['bg' => 'bg-green-100', 'text' => 'text-green-800'], 'paid' => ['bg' => 'bg-blue-100', 'text' => 'text-blue-800'], 'rejected' => ['bg' => 'bg-red-100', 'text' => 'text-red-800'], default => ['bg' => 'bg-yellow-100', 'text' => 'text-yellow-800'] }; @endphp {{ ucfirst($expense->status) }} Edit
@csrf @method('DELETE')
No expenses found.
{{ $expenses->links() }}
@endsection @push('styles') @endpush @push('scripts') @endpush