@extends('layouts.app') @section('title', 'Expenses') @section('breadcrumb')
Track and manage business expenses
| Date | Title | Category | Payment | Amount | Added By | Actions |
|---|---|---|---|---|---|---|
|
{{ $expense->expense_date?->format('M d, Y') ?? '-' }}
|
{{ $expense->title }}
@if($expense->notes)
{{ Str::limit($expense->notes, 40) }}
@endif
|
@if($expense->category) {{ $expense->category->name }} @else Uncategorized @endif | @php $paymentIcon = match($expense->payment_method) { 'cash' => 'bi-cash', 'card' => 'bi-credit-card', 'bank_transfer' => 'bi-bank', default => 'bi-wallet2' }; @endphp {{ ucfirst(str_replace('_', ' ', $expense->payment_method ?? 'cash')) }} | Rs. {{ number_format($expense->amount, 2) }} | {{ $expense->user?->name ?? '-' }} | |
|
No expenses recorded Add First Expense |
||||||