@extends('admin.layouts.app') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('content')
@if(($panelUnreadNotificationCount ?? 0) > 0)

You have {{ $panelUnreadNotificationCount }} unread notification{{ $panelUnreadNotificationCount > 1 ? 's' : '' }}

New lead, blog review, and workflow updates are waiting for your attention.

View All Notifications
@endif

Welcome back, {{ $user->name }}

Centralized control for content, leads, team, and operations.

@php $stats = [ ['label' => 'Total Leads', 'value' => $total_leads, 'icon' => 'L'], ['label' => 'Countries', 'value' => $total_countries, 'icon' => 'C'], ['label' => 'Leads Today', 'value' => $new_leads_today, 'icon' => 'T'], ['label' => 'Team Members', 'value' => $team_members, 'icon' => 'M'], ]; @endphp @foreach($stats as $stat)
{{ $stat['label'] }} {{ $stat['icon'] }}

{{ $stat['value'] }}

@endforeach

Quick Actions

Notifications

Unread: {{ $unread_notifications }}
@if($notifications->isEmpty())

No notifications yet.

@else
@foreach($notifications as $notification)

{{ $notification->title }}

{{ $notification->message }}

{{ $notification->created_at->diffForHumans() }}

@endforeach
@endif

Activity Logs

@if($activity_logs->isEmpty())

No logs yet.

@else
@foreach($activity_logs as $log) @php $badge = match($log->email_status) { 'sent' => 'bg-green-100 text-green-700', 'simulated' => 'bg-cyan-100 text-cyan-700', 'partial' => 'bg-yellow-100 text-yellow-700', 'failed' => 'bg-red-100 text-red-700', default => 'bg-gray-100 text-gray-600', }; @endphp

{{ $log->message }}

{{ $log->created_at->format('d M Y, h:i A') }}

Email: {{ ucfirst($log->email_status) }}
@endforeach
@endif
@endsection