@extends('layouts.app') @section('title', 'Expenses') @section('content')
{{ $expenses->total() }} expense(s) matching your filters. Approved expenses post to the ledger and appear on the P&L.
| Date | Description | Vendor | Category | Account | Paid by | Amount | Status | By | |
|---|---|---|---|---|---|---|---|---|---|
| {{ $expense->expense_date?->format('d M Y') }} | {{ \Illuminate\Support\Str::limit($expense->description, 44) }}
@if ($expense->reference) {{ $expense->reference }} @endif |
{{ $expense->vendor ?: '—' }} | {{ title_case_words($expense->category) }} | {{ $expense->account?->code ?: '—' }}
{{ \Illuminate\Support\Str::limit($expense->account?->name ?? '', 20) }} |
{{ title_case_words($expense->payment_method ?? 'cash') }} | {{ money($expense->amount) }} | {{ title_case_words($expense->status) }} | {{ $expense->recordedBy?->name ?: '—' }} | Open |
| Category | Total | Share |
|---|---|---|
| {{ title_case_words($category) }} | {{ money($total) }} | {{ $totals['all'] > 0 ? round($total / $totals['all'] * 100, 1) : 0 }}% |