{{ $tenant->name }}

{{-- ── Top KPI Cards ─────────────────────────────────────────────── --}}
{{-- Bookings This Month --}}

Bookings

{{ $bookingsThisMonth }}

{{ $now->format('F Y') }}

@if($bookingsLastMonth > 0) @php $diff = $bookingsThisMonth - $bookingsLastMonth; $pct = round(abs($diff) / $bookingsLastMonth * 100); @endphp

{{ $diff >= 0 ? '▲' : '▼' }} {{ $pct }}% vs last month

@else

{{ $bookingsLastMonth }} last month

@endif
{{-- Attended This Month --}}

Attended

{{ $attendedThisMonth }}

Past appointments, {{ $now->format('F Y') }}

@if($attendedLastMonth > 0 || $bookingsLastMonth > 0)

{{ $attendedLastMonth }} last month

@endif
{{-- Show Rate --}}

Show Rate

@if($showRateThisMonth !== null)

{{ $showRateThisMonth }}%

Of past appts this month

@else

No past appointments yet

@endif
{{-- Recent Failures --}}

Sync Failures

{{ $recentFailures }}

Last 7 days

@if($recentFailures > 0) View logs → @endif
{{-- ── Monthly Trend Bar Chart ───────────────────────────────────── --}}

Successful Bookings — Last 6 Months

@php $maxTrend = max(array_values($trendFilled) ?: [1]); @endphp
@foreach($trendFilled as $month => $count) @php $height = $maxTrend > 0 ? round(($count / $maxTrend) * 100) : 0; $label = \Carbon\Carbon::createFromFormat('Y-m', $month)->format('M'); $isCurrent = $month === now()->format('Y-m'); @endphp
{{ $count > 0 ? $count : '' }}
{{ $label }}
@endforeach
{{-- ── Direction Breakdown ───────────────────────────────────────── --}} @if($breakdown->isNotEmpty())
@foreach($breakdown as $direction => $rows)

{{ \App\Models\WebhookLog::formatDirection($direction) }}

@foreach(['create', 'reschedule', 'cancel'] as $action) @php $actionRows = $rows->where('action', $action); $success = $actionRows->where('status', 'success')->sum('total'); $failed = $actionRows->where('status', 'failed')->sum('total'); $skipped = $actionRows->where('status', 'skipped')->sum('total'); $total = $success + $failed + $skipped; @endphp @if($total > 0) @endif @endforeach
Action Success Failed Skipped
{{ $action }} {{ $success ?: '—' }} {{ $failed ?: '—' }} {{ $skipped ?: '—' }}
@endforeach
@endif {{-- ── Account & Navigation ─────────────────────────────────────── --}}

Account

{{ $user->name }}

{{ $user->email }}

{{ $tenant->name }} · {{ $tenant->id }}

Calendars

{{ $tenant->calendars()->count() }} configured

Manage Calendars

Webhook Logs

View all sync activity, resend failed events

View Logs
{{-- Switch Workspace --}} @if(auth()->user()->tenants()->count() > 1)

Switch Workspace

@foreach(auth()->user()->tenants()->where('slug', '!=', $tenant->slug)->get() as $otherTenant) {{ $otherTenant->name }} @endforeach
@endif