{{-- Onboarding Checklist — Getting-started widget --}} {{-- Floating collapsible widget in bottom-right corner --}} {{-- Auto-detects completion from actual workspace state so the user doesn't have to tick the boxes by hand. --}} @php $wsId = auth()->user()?->active_workspace_id; // Auto-detection queries. Each one maps 1:1 with a checklist item // below so the tick renders green the moment the underlying action // has been taken — no manual clicking. $autoDone = [ 'connect_email' => $wsId && \App\Models\EmailAccount::where('workspace_id', $wsId)->where('status', 'connected')->exists(), 'import_contacts' => $wsId && \App\Models\Contact::where('workspace_id', $wsId)->exists(), 'send_campaign' => $wsId && \App\Models\Campaign::where('workspace_id', $wsId)->whereIn('status', ['sent', 'sending', 'completed'])->exists(), 'create_workflow' => $wsId && \App\Models\Workflow::where('workspace_id', $wsId)->exists(), 'train_ai' => $wsId && ( \App\Models\KbDocument::where('workspace_id', $wsId)->exists() || \App\Models\AiConfig::where('workspace_id', $wsId)->exists() ), 'invite_team' => $wsId && \App\Models\Workspace::find($wsId)?->members()->count() > 1, ]; @endphp @if(!request()->routeIs('onboarding.*'))
{{-- Collapsed button (shows progress ring) --}} {{-- Expanded panel --}}
{{-- Header --}}

Getting Started

{{-- Progress bar --}}
{{-- Checklist items --}}
{{-- Footer --}}
@endif