@extends('workspace.layouts.workspace') @section('title', 'Dashboard ยท ' . auth()->user()->name) @section('page-title', 'My Dashboard') @section('ws-content') {{-- Greeting --}}

Good {{ now()->hour < 12 ? 'morning' : (now()->hour < 17 ? 'afternoon' : 'evening') }}, {{ explode(' ', $user->name)[0] }} ๐Ÿ‘‹

{{ $member->role }} ยท {{ ucfirst($member->department) }} ยท {{ now()->format('l, d F Y') }}

{{-- Announcements --}} @if($announcements->count())
@foreach($announcements as $ann)

๐Ÿ“ข {{ $ann->title }}

{{ $ann->body }}

@csrf
@endforeach
@endif {{-- Stats row --}}
@foreach([ ['Pending', $pendingTasks, '#f59e0b', 'M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z'], ['In Progress', $inProgressTasks, '#2d3aff', 'M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z'], ['Done', $doneTasks, '#10b981', 'M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z'], ['Overdue', $overdueTasks, '#dc2626', 'M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z'], ] as [$label, $count, $color, $path])
{{ $label }}
{{ $count }}
@endforeach
{{-- Recent tasks --}}

Recent Tasks

View all
@forelse($recentTasks as $task)
@csrf @method('PATCH')

{{ $task->title }}

{{ ucfirst($task->priority) }} @if($task->due_date) {{ $task->due_date->format('d M') }} @endif
@empty

No tasks yet. Add your first โ†’

@endforelse
{{-- Pinned notes + quick add --}}
{{-- Quick task add --}}

Quick Add Task

@csrf
{{-- Pinned notes --}} @if($pinnedNotes->count())

๐Ÿ“Œ Pinned Notes

All notes
@foreach($pinnedNotes as $note)

{{ $note->title }}

@if($note->body)

{{ strip_tags($note->body) }}

@endif
@endforeach
@else

No pinned notes. Create one โ†’

@endif
@endsection