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

Dashboard

Welcome to your Construction Expense Tracker

Add Expense

Total Expenses

LKR {{ number_format($totalExpenses, 2) }}

Projects

{{ $projects->count() }}

Categories

{{ $categories->count() }}

This Month

LKR {{ number_format($currentMonthTotal, 2) }}

Expense Distribution by Category

Total: LKR {{ number_format($totalExpenses, 2) }}

Monthly Expenses

Last 6 months

Projects Overview

View All
@foreach($projects as $project) @endforeach
Project Progress
{{ $project->name }}
{{ $project->formatted_budget }} / {{ $project->formatted_total_expenses }}
{{ round($project->budget_percentage_used) }}%

Recent Expenses

View All
@foreach($recentExpenses as $expense) @endforeach
Title Category Amount
{{ $expense->title }}
{{ $expense->expense_date->format('M d') }}
{{ $expense->category->name }} {{ $expense->formatted_amount }}
@endsection @section('scripts') @endsection