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

Category Details: {{ $category->name }}

Edit Back to Categories
Category Information
Name:
{{ $category->name }}
Color:
{{ $category->color }}
Description:
{{ $category->description ?? 'No description provided.' }}
Total Expenses:
{{ $category->expenses->count() }}
Total Amount:
₹{{ number_format($category->expenses->sum('amount'), 2) }}
Created At:
{{ $category->created_at->format('F d, Y h:i A') }}
Last Updated:
{{ $category->updated_at->format('F d, Y h:i A') }}
Actions
Edit Category
@csrf @method('DELETE')
Expenses in this Category
Add Expense
@forelse($category->expenses as $expense) @empty @endforelse
Date Title Project Amount Actions
{{ $expense->expense_date->format('M d, Y') }} {{ $expense->title }} {{ $expense->project->name }} ₹{{ number_format($expense->amount, 2) }}
No expenses found in this category.
@endsection