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

Good {{ now()->format('A') === 'AM' ? 'morning' : (now()->format('H') < 18 ? 'afternoon' : 'evening') }}, {{ Auth::user()->name }}! 👋

Here's what's happening with your tasks today.

{{ $tasksCount }}
Active Tasks
View all
{{ $projectsCount }}
Total Projects
Manage
{{ $routinesCount }}
Today's Routines
View routines
{{ $notesCount }}
Saved Notes
Browse notes
Productivity Overview
{{ $completedTasksThisWeek }}
Tasks Completed
+12% from last week
{{ $completionRate }}%
Completion Rate
+5% improvement
{{ $activeProjects }}
Active Projects
No change
{{ $overdueTasks }}
Overdue Tasks
Needs attention

{{ now()->format('F Y') }}

Task Distribution

{{ $tasksCount }} total tasks
To Do ({{ $taskStatusDistribution['to_do'] }})
In Progress ({{ $taskStatusDistribution['in_progress'] }})
Completed ({{ $taskStatusDistribution['completed'] }})

Priority Breakdown

High Priority {{ $priorityDistribution['high'] }}
Medium Priority {{ $priorityDistribution['medium'] }}
Low Priority {{ $priorityDistribution['low'] }}

Recent Activity

View all
@foreach($recentTasks->take(4) as $task)
{{ $task->title }}
{{ $task->project->name ?? 'No Project' }}
{{ $task->updated_at->diffForHumans() }}
@endforeach
Recent Tasks
View all
@forelse($recentTasks as $task)
{{ $task->title }}
{{ ucwords(str_replace('_', ' ', $task->status)) }} @if($task->due_date != null) {{ \Carbon\Carbon::parse($task->due_date)->format('M d') }} @endif
@empty

No recent tasks found

Create Project
@endforelse
Today's Routines
View all
@forelse($todayRoutines as $routine)
{{ $routine->title }}
{{ ucfirst($routine->frequency) }} @if($routine->time) {{ $routine->time->format('H:i') }} @endif
@empty

No routines for today

Create Routine
@endforelse
Recent Notes
View all
@forelse($recentNotes as $note)
{{ $note->title }}
{{ $note->created_at->format('M d, Y') }}
@empty

No notes yet

Create Note
@endforelse
Upcoming Reminders
View all
@forelse($upcomingReminders as $reminder)
{{ $reminder->title }}
{{ $reminder->date->isToday() ? 'Today' : ($reminder->date->isPast() ? 'Overdue' : $reminder->date->format('M d')) }} @if($reminder->time) {{ \Carbon\Carbon::parse($reminder->time)->format('H:i') }} @endif
@empty

No upcoming reminders

Create Reminder
@endforelse
@endsection @push('styles') @endpush @push('scripts') @endpush