@extends('layouts.app') @section('title', 'Category Report') @section('content')

Category Report

Back to Reports
Total Categories
{{ $categories->count() }}
Total Amount
LKR {{ number_format($categories->sum('total_amount'), 2) }}
Total Transactions
{{ $categories->sum('transaction_count') }}
Category Distribution
Top Categories
@foreach($categories->take(5) as $category)
{{ $category->category }} LKR {{ number_format($category->total_amount, 2) }}
@endforeach
Category Breakdown
@forelse($categories as $category) @empty @endforelse
Category Transaction Count Total Amount Average Amount Percentage
{{ $category->category }} {{ $category->transaction_count }} LKR {{ number_format($category->total_amount, 2) }} LKR {{ number_format($category->total_amount / $category->transaction_count, 2) }}
{{ number_format(($category->total_amount / $categories->sum('total_amount')) * 100, 1) }}%
No categories found for the selected criteria.
@endsection