@extends('layouts.admin') @section('title', 'Dashboard') @section('breadcrumb') Dashboard @endsection @section('content') {{-- Header --}}

Good {{ now()->hour < 12 ? 'morning' : (now()->hour < 17 ? 'afternoon' : 'evening') }}, {{ auth()->user()->name }} 👋

Here's what's happening with {{ $tenant->name }} today.

@if($subscription && $subscription->isTrialing())
Trial: {{ $subscription->daysUntilExpiry() }} days left
Add payment method →
@endif
{{-- Stat Cards --}}
Pages
{{ number_format($stats['pages']) }}
Manage pages →
Blog Posts
{{ number_format($stats['posts']) }}
View blog →
Leads (this month)
{{ number_format($stats['leads']) }}
View CRM →
SEO Score
{{ $stats['seo_score'] }}/100
View SEO →
{{-- Main grid --}}
{{-- Recent Activity --}}

Recent Activity

View all →
@forelse($recentActivity as $log)
{{ strtoupper(substr($log->user_name ?? 'S', 0, 1)) }}
{{ $log->user_name ?? 'System' }} {{ str_replace('_', ' ', $log->event) }} @if($log->subject_label) "{{ Str::limit($log->subject_label, 40) }}" @endif
{{ $log->created_at->diffForHumans() }} @if($log->is_impersonation) Impersonation @endif
@empty

No activity yet. Start by creating your first page.

@endforelse
{{-- Pending Tasks + Lead Sources --}}
{{-- Pending Tasks --}}

Pending Tasks

@if(count($pendingTasks) > 0) {{ count($pendingTasks) }} @endif
@if(empty($pendingTasks))
✓ All clear! No pending tasks.
@else
@foreach($pendingTasks as $task) {{ $task['message'] }} @endforeach
@endif
{{-- Lead Sources --}}

Lead Sources

this month
@if($leadSources->isEmpty())
No leads captured yet this month.
@else
@php $maxLeads = $leadSources->max('count') @endphp @foreach($leadSources as $source)
{{ $source->source ?? 'Direct' }} {{ $source->count }}
@endforeach
@endif
{{-- Plan Usage Meters --}}

Plan Usage

View billing →
@foreach($usageMeters as $meter)
{{ $meter['label'] }} {{ $meter['is_unlimited'] ? '∞' : number_format($meter['used']) . '/' . number_format($meter['limit']) }}
@if(!$meter['is_unlimited'])
@if($meter['at_limit']) @endif @else
@endif
@endforeach
@endsection