@extends('layouts.finance.finance') @section('content')
Track overhead, utilities, and petty cash
₹{{ number_format($stats['this_month_total'], 2) }}
₹{{ number_format($stats['unpaid_amount'], 2) }}
{{ $stats['pending_approval_count'] }} bills
| Date | Category | Description | Amount | Status | Receipt |
|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($expense->expense_date)->format('M d, Y') }} | {{-- Category Pills with dynamic colors --}} @php $catColor = match (strtolower($expense->category)) { 'travel' => 'bg-purple-100 text-purple-800', 'utilities' => 'bg-yellow-100 text-yellow-800', 'office supplies' => 'bg-teal-100 text-teal-800', default => 'bg-gray-100 text-gray-800', }; @endphp {{ $expense->category }} | {{ $expense->description }} | ₹{{ number_format($expense->amount, 2) }} | @php $statusColor = match (strtolower($expense->status)) { 'paid' => 'bg-green-100 text-green-800', 'approved' => 'bg-blue-100 text-blue-800', 'pending' => 'bg-amber-100 text-amber-800', default => 'bg-gray-100 text-gray-800', }; @endphp {{ ucfirst($expense->status) }} | @if($expense->receipt_path) View @else No File @endif |
| No expenses logged yet. | |||||