{{-- resources/views/reports/expenses.blade.php --}} @extends('layouts.app') @section('title', 'Expense Report') @section('page_title', 'Expense Report') @section('page_subtitle', $from->format('d M Y') . ' — ' . $to->format('d M Y')) @section('content') @include('reports.partials.nav') @include('reports.partials.filters', [ 'route' => 'reports.expenses', 'showExport' => true, 'reportName' => 'expenses', ])
${{ number_format($total, 0) }}
Total Expenses
{{ $count }}
Transactions
{{ $by_category->count() }}
Categories
By Category
@foreach($by_category as $cat => $data)
{{ $cat }} ${{ number_format($data['total'], 0) }} ({{ $total > 0 ? round(($data['total'] / $total) * 100, 0) : 0 }}%)
@endforeach
Monthly Trend
@endsection @push('scripts') @endpush