@extends('layouts.customer') @section('content')
{{-- Welcome Message --}}

Welcome back, {{ $user->name }}

Here's an overview of your accounts.

{{-- Account Summary Cards --}}

Total Balance

{{ site_money($totalBalance ?? 0) }}

Accounts

{{ $accounts->count() ?? 0 }}

Recent Activity

{{ $recentActivityCount ?? 0 }}

Notifications

{{ $notificationsCount ?? 0 }}

{{-- Account Cards --}} @if(isset($accounts) && $accounts->count())

My Accounts

View All
@foreach($accounts as $account)
{{ ucfirst($account->type) }} ****{{ substr($account->account_number, -4) }}

{{ site_money($account->balance) }}

View Details
@endforeach
@endif {{-- Quick Actions --}}

Quick Actions

{{-- Recent Transactions --}} {{-- Notifications Preview --}}

Notifications

View All
@forelse($notifications->take(3) as $notification)

{{ $notification->title ?? 'Notification' }}

{{ $notification->message ?? '' }}

{{ $notification->created_at->diffForHumans() }}

@empty

No notifications

@endforelse
{{-- Charts Section --}}

Spending Overview

Income Overview

@endsection @push('scripts') @endpush