@extends('layouts.admin') @section('title', 'Company Expenses') @section('content')
Track and manage all company-wide expenses.
| 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 |
| No expenses found. | |||||