@extends('layouts.app') @section('title', 'Dashboard - GrowCash') @section('content')

Welcome back, {{ Auth::user()->name }}! 👋

Here's your financial overview for today

+Income
Rp {{ number_format($totalPemasukkan, 0, ',', '.') }}
Total Income
-Expense
Rp {{ number_format($totalPengeluaran, 0, ',', '.') }}
Total Expenses
Rate
{{ number_format($savingRate, 1) }}%
Saving Rate
Goals
{{ $totalGoals }}
Active Goals
@if(!empty($recommendations))

💡 Financial Literacy Tips

@foreach($recommendations as $rec)
{{ $rec['type'] === 'critical' ? '🚨' : '⚠️' }}
{{ $rec['budget'] }} - {{ $rec['percentage'] }}% Used
Spent: Rp {{ number_format($rec['usage'], 0, ',', '.') }} / Rp {{ number_format($rec['limit'], 0, ',', '.') }}
💡 Recommended Actions:
    @foreach(array_slice($rec['tips'], 0, 3) as $tip)
  • {{ $tip }}
  • @endforeach
@endforeach
@endif

Transaction Overview

View All →
@php $incomeWidth = $totalPemasukkan > 0 && ($totalPemasukkan + $totalPengeluaran) > 0 ? min(100, ($totalPemasukkan / ($totalPemasukkan + $totalPengeluaran)) * 100) : 0; $expenseWidth = $totalPengeluaran > 0 && ($totalPemasukkan + $totalPengeluaran) > 0 ? min(100, ($totalPengeluaran / ($totalPemasukkan + $totalPengeluaran)) * 100) : 0; @endphp
Income Rp {{ number_format($totalPemasukkan, 0, ',', '.') }}
Expenses Rp {{ number_format($totalPengeluaran, 0, ',', '.') }}

Budget Tracking

Manage →
@forelse($budgets->take(3) as $budget)
{{ $budget['nama_budget'] }}
{{ number_format($budget['progress'], 1) }}%
Rp {{ number_format($budget['spent'], 0, ',', '.') }} / Rp {{ number_format($budget['nominal_budget'], 0, ',', '.') }}
@empty
No budgets yet
Create Budget
@endforelse

Financial Goals

View All →
{{ $totalGoals }}
Active Goals
Rp {{ number_format($totalTarget, 0, ',', '.') }}
Total Target
@endsection