@extends('admin.layouts.app') @section('title', 'Dashboard') @section('page_title', 'Dashboard') @section('content') @php $user = auth()->user(); $hour = (int) now()->format('G'); $greeting = $hour < 12 ? 'Good morning' : ($hour < 17 ? 'Good afternoon' : 'Good evening'); $leadMax = max(1, (int) collect($leadTrend)->max('count')); $eventMax = max(1, (int) collect($eventTrend)->max('count')); $seoClass = $kpis['avg_seo_score'] >= 80 ? 'is-good' : ($kpis['avg_seo_score'] >= 60 ? 'is-mid' : 'is-low'); @endphp

Control center

{{ $greeting }}, {{ explode(' ', $user->name)[0] }}

{{ now()->format('l, j F Y') }} · Live snapshot of leads, bookings, SEO health, and site activity.

Leads today

{{ $kpis['leads_today'] }}

{{ $kpis['leads_7d'] }} in last 7 days

Upcoming bookings

{{ $kpis['bookings_upcoming'] }}

{{ $kpis['bookings_today'] }} scheduled today

Form submissions

{{ $kpis['submissions_7d'] }}

Last 7 days

New applications

{{ $kpis['applications_new'] }}

Awaiting review

Avg SEO score

{{ $kpis['avg_seo_score'] }}

{{ $kpis['low_seo'] }} pages below 80 · {{ $kpis['not_found'] }} active 404s

Events today

{{ $kpis['events_today'] }}

{{ $kpis['published_services'] }} services · {{ $kpis['blog_published'] }} posts live

Bookings Calendar & pipeline Applications Candidate inbox SEO Audits & sitemap Media Library & uploads Home page Edit homepage Settings Site configuration

Lead momentum

New leads over the last 7 days

{{ $kpis['leads_7d'] }} total

Site activity

Analytics events over the last 7 days

@can('viewAny', \Apex\Modules\Analytics\Models\AnalyticsEvent::class) Open analytics @endcan

Upcoming bookings

Next confirmed and pending sessions

Calendar

Recent leads

Latest enquiries entering the pipeline

    @forelse ($recentLeads as $lead)
  • {{ strtoupper(substr($lead->name ?: $lead->email ?: 'L', 0, 1)) }} {{ $lead->name ?: $lead->email }} {{ $lead->source ?: 'Direct' }} · {{ $lead->created_at->diffForHumans() }} {{ ucfirst($lead->status ?: 'new') }}
  • @empty
  • No leads yet.
  • @endforelse

SEO attention

Lowest scoring audited URLs

{{ $kpis['avg_seo_score'] }}/100
    @forelse ($lowScores as $audit)
  • {{ \Illuminate\Support\Str::limit($audit->url, 42) }} {{ $audit->checked_at?->diffForHumans() ?? 'Not checked' }} {{ $audit->score }}
  • @empty
  • No low SEO scores — looking strong.
  • @endforelse

Career applications

Newest candidates in the inbox

Open inbox

Live event stream

Latest tracked analytics events

@can('viewAny', \Apex\Modules\Analytics\Models\AnalyticsEvent::class) View all @endcan
    @forelse ($recentEvents as $event)
  • {{ $event->event_name ?: $event->event_type }} {{ \Illuminate\Support\Str::limit($event->url ?: '—', 48) }} · {{ $event->occurred_at?->diffForHumans() }}
  • @empty
  • No analytics events yet.
  • @endforelse
@endsection