@extends('layouts.app') @section('content')

{{ $reportTitle }}

@if($reportSubtitle)
{{ $reportSubtitle }}
@endif
@csrf @foreach(request()->all() as $key => $value) @if($key !== '_token' && $key !== 'format') @endif @endforeach
Back to Reports
Expense Details
Generated: {{ $generatedAt }}
@forelse($expenses as $expense) @empty @endforelse
Date Title Project Category Vendor Payment Method Amount
{{ $expense->expense_date->format('M d, Y') }} {{ $expense->title }} @if($expense->description)
{{ $expense->description }}
@endif
{{ $expense->project->name }} {{ $expense->category->name }} {{ $expense->vendor ?? 'N/A' }} {{ $expense->payment_method ?? 'N/A' }} {{ $expense->formatted_amount }}
No expenses found for this report criteria.
Total: LKR {{ number_format($totalAmount, 2) }}
Summary
Total Expenses:
{{ count($expenses) }}
Total Amount:
LKR {{ number_format($totalAmount, 2) }}
@if($expenses->count() > 0)
Average Amount:
LKR {{ number_format($totalAmount / $expenses->count(), 2) }}
Highest Expense:
LKR {{ number_format($expenses->max('amount'), 2) }}
Lowest Expense:
LKR {{ number_format($expenses->min('amount'), 2) }}
@endif
@if($expenses->count() > 0)
Expense Distribution
@endif
@endsection @section('scripts') @if($expenses->count() > 0) @endif @endsection