@extends('layouts.admin') @section('title', 'Expenses') @section('page-title', 'Expenses') @section('header-actions') add Add Expense @endsection @section('content')
| Expense | Amount | Account | Payment Method | Date | Status | Actions |
|---|---|---|---|---|---|---|
|
receipt
{{ $expense->expense_number }}
@if($expense->description)
{{ Str::limit($expense->description, 40) }} @endif |
{{ \App\Models\Currency::formatAmount($expense->total, $expense->currency) }} | {{ $expense->account->name }} | {{ ucfirst(str_replace('_', ' ', $expense->payment_method)) }} | {{ $expense->expense_date->format('M d, Y') }} | @php $statusColors = [ 'draft' => 'bg-gray-100 text-gray-800', 'approved' => 'bg-green-100 text-green-800', 'paid' => 'bg-blue-100 text-blue-800', 'rejected' => 'bg-red-100 text-red-800', ]; $color = $statusColors[$expense->status] ?? 'bg-gray-100 text-gray-800'; @endphp {{ ucfirst($expense->status) }} |
visibility
@if($expense->status === 'draft')
@endif
|
|
receipt
No expenses found |
||||||