@extends('layouts.admin') @section('title', 'Dashboard') @section('content')

Welcome back, {{ Auth::user()->name }}

Here’s what’s happening with your consultancy dashboard today.

{{ $counts['inquiries'] ?? 0 }}
Inquiries
{{ $counts['bookings'] ?? 0 }}
Bookings @if(($counts['bookings_new'] ?? 0) > 0){{ $counts['bookings_new'] }} new@endif
{{ $counts['blog_posts'] ?? 0 }}
Blog posts
{{ $counts['faqs'] ?? 0 }}
FAQs

Quick links

Recent consultation bookings View all

@if($recentBookings->isEmpty())

No bookings yet. Submissions from the website Book consultation form will appear here.

@else
@foreach($recentBookings as $b) @php $statusColors = [ 'new' => 'primary', 'confirmed' => 'success', 'completed' => 'secondary', 'cancelled' => 'danger', ]; $bg = $statusColors[$b->status] ?? 'secondary'; @endphp @endforeach
Submitted Name Contact Preferred Status
{{ $b->created_at->format('d M Y, H:i') }} {{ $b->name }}
{{ $b->phone ?? '—' }}
{{ $b->email }}
{{ $b->preferred_date?->format('d M Y') ?? '—' }} @if($b->preferred_slot)
{{ $b->preferred_slot }}
@endif
{{ $b->status }} View
@endif

Recent inquiries View all

@if($recentInquiries->isEmpty())

No inquiries yet.

@else
@foreach($recentInquiries as $inq) @endforeach
Date Name Type
{{ $inq->created_at->format('d M H:i') }} {{ $inq->name }} {{ $inq->type ?? '—' }} View
@endif
@endsection