@extends('layouts.app') @section('title', 'Expenses') @section('content')
@if(session('success')) @endif @if($errors->any()) @endif

Expenses & Petty Cash

Track and manage your business expenditures and petty cash flow.

This Month
TOTAL EXPENSES

${{ number_format($totalThisMonth, 2) }}

Petty Cash
TOTAL PETTY CASH

${{ number_format($pettyCashThisMonth, 2) }}

TOTAL RECORDS

{{ $expenseCount }}

to
Recent Expenditure
@forelse($expenses as $expense) @empty @endforelse
Date Entry Details Type Status Branch Account Amount Actions
{{ $expense->expense_date->format('M d, Y') }} {{ $expense->expense_date->diffForHumans() }}
{{ $expense->name_ar ?? $expense->name_en }}
{{ $expense->description ?? 'No description' }}
@if($expense->type == 'petty_cash') Petty Cash @else Expense @endif @if($expense->status == 'approved') Approved @elseif($expense->status == 'cancelled') Cancelled @else Pending @endif @if($expense->branch) {{ $expense->branch->name }} @else Global / No Branch @endif {{ optional($expense->account)->name_ar ?? optional($expense->account)->name_en ?? 'N/A' }}
-${{ number_format($expense->amount, 2) }}

No expense records found. Try adding your first one!

@endsection @section('extra_css') @endsection @section('scripts') @if(request('open_id')) @endif @if($errors->any()) @endif @endsection