@extends('admin.layout') @section('title', 'Dashboard') @section('page_title', 'Dashboard') @section('content') {{-- Stats grid --}}
@foreach([ ['label' => 'Total Leads', 'value' => $stats['total'], 'color' => 'text-dh-text', 'bg' => 'bg-dh-card'], ['label' => 'New Leads', 'value' => $stats['new'], 'color' => 'text-blue-400', 'bg' => 'bg-blue-400/10'], ['label' => 'This Week', 'value' => $stats['this_week'], 'color' => 'text-yellow-400', 'bg' => 'bg-yellow-400/10'], ['label' => 'Converted', 'value' => $stats['converted'], 'color' => 'text-green-400', 'bg' => 'bg-green-400/10'], ] as $stat)

{{ $stat['label'] }}

{{ $stat['value'] }}

@endforeach
{{-- Today + Contacted row --}}

Today's Leads

{{ $stats['today'] }}

Contacted

{{ $stats['contacted'] }}

{{-- Recent leads --}}

Recent Leads

View All →
@if($recentLeads->isEmpty())
No leads yet.
@else @foreach($recentLeads as $lead) @endforeach
Name Email Status Date
{{ $lead->name }} {{ $lead->email }} {{ $lead->status }} {{ $lead->created_at->diffForHumans() }} View
@endif
@endsection