@extends('layouts.front.app') @section('title', 'Dashboard') @section('content') @php $user = auth()->guard('user')->user(); $greeting = match (true) { now()->hour < 12=> 'morning', now()->hour < 17=> 'afternoon', default => 'evening', }; $quickActions = [ ['label' => 'Edit profile', 'icon' => 'heroicon-o-user-circle', 'href' => route('user.profile')], ['label' => 'Update password', 'icon' => 'heroicon-o-key', 'click' => true], ['label' => 'Notifications', 'icon' => 'heroicon-o-bell', 'href' => 'javascript:void(0)'], ['label' => 'Help & support', 'icon' => 'heroicon-o-lifebuoy', 'href' => 'javascript:void(0)'], ]; $recentActivity = [ ['icon' => 'heroicon-o-check-circle', 'title' => 'Profile details updated', 'time' => '2 hours ago'], ['icon' => 'heroicon-o-shield-check', 'title' => 'Signed in from a new device', 'time' => 'Yesterday'], ['icon' => 'heroicon-o-document-text', 'title' => 'A new item was added to your list', 'time' => '3 days ago'], ['icon' => 'heroicon-o-bell', 'title' => 'Notification preferences changed', 'time' => '1 week ago'], ]; $upcoming = [ ['title' => 'Review pending submission', 'date' => 'Tomorrow', 'tone' => 'sky'], ['title' => 'Complete profile verification', 'date' => 'May 24, 2026', 'tone' => 'violet'], ['title' => 'Scheduled account check-in', 'date' => 'May 28, 2026', 'tone' => 'amber'], ]; @endphp

Overview

Good {{ $greeting }}, {{ $user->first_name }}

Your personal hub for account activity, progress, and what needs attention next.

{{-- Summary --}}

In progress

4

Items currently active on your account

Completed

18

Finished since you joined

Pending

2

Waiting on your action or review

{{-- Quick actions --}}

Quick actions

Shortcuts to common account tasks

    @foreach ($quickActions as $action)
  • @if (! empty($action['click'])) @else {{ $action['label'] }} @endif
  • @endforeach
{{-- Account snapshot --}}

Account snapshot

A quick look at your profile and setup

{{ $user->full_name }}

{{ $user->email }}

@if ($user->phone)

{{ format_phone($user->phone) }}

@endif

Member since {{ $user->created_at?->format('M Y') ?? '—' }}

View profile
Profile completeness 82%
  • Email verified
  • Password set
  • Add optional details

Updates

Welcome to your dashboard. This space adapts to your product—whether learning, payments, matching, or anything else you build on top of it.

{{-- Recent activity --}}

Recent activity

Latest events on your account

    @foreach ($recentActivity as $activity)
  1. {{ $activity['title'] }}

    {{ $activity['time'] }}

  2. @endforeach
{{-- Security + upcoming --}}

Security

Account protection at a glance

  • Two-factor authentication Not enabled
  • Last sign-in {{ $user->last_login_at?->diffForHumans() ?? 'Recently' }}
  • Session Active

Coming up

{{ count($upcoming) }} items

Reminders and items that need attention

    @foreach ($upcoming as $item) @php $toneRing = match ($item['tone']) { 'sky' => 'border-sky-200/80 dark:border-sky-800/60', 'violet' => 'border-violet-200/80 dark:border-violet-800/60', default => 'border-amber-200/80 dark:border-amber-800/60', }; @endphp
  • {{ $item['title'] }}

    {{ $item['date'] }}

  • @endforeach
@endsection