@extends('business.layouts.admin') @push('theme-script') @endpush @section('content')
{{-- Header & Filter Section --}}

{{ __('Dashboard Overview') }}

{{ __('Monitoring performance for') }} {{ ucfirst($period) }}

@foreach(['daily', 'weekly', 'monthly'] as $p) @endforeach
{{-- Stats Grid --}}
@php $cards = [ ['title' => 'Total Leads', 'key' => 'total_leads', 'icon' => 'ti-target', 'color' => 'primary', 'bg' => 'rgba(94, 114, 228, 0.1)'], ['title' => 'Active Leads', 'key' => 'active_leads', 'icon' => 'ti-bolt', 'color' => 'info', 'bg' => 'rgba(17, 205, 239, 0.1)'], ['title' => 'Won Leads', 'key' => 'won_leads', 'icon' => 'ti-trophy', 'color' => 'success', 'bg' => 'rgba(45, 206, 137, 0.1)'], ['title' => 'Lost Leads', 'key' => 'lost_leads', 'icon' => 'ti-circle-x', 'color' => 'danger', 'bg' => 'rgba(245, 54, 92, 0.1)'], ['title' => 'Follow-up Due', 'key' => 'followup_due', 'icon' => 'ti-calendar-event', 'color' => 'warning', 'bg' => 'rgba(251, 99, 64, 0.1)'], ['title' => 'Unassigned', 'key' => 'unassigned_leads', 'icon' => 'ti-user-exclamation', 'color' => 'dark', 'bg' => 'rgba(50, 50, 93, 0.1)'], ]; @endphp @foreach($cards as $card)
{{ __($card['title']) }}
{{ number_format($stats[$card['key']]['count'] ?? 0) }}
{{ abs($stats[$card['key']]['growth'] ?? 0) }}% vs prev
@endforeach
{{-- Main Revenue Chart --}}
{{ __('Financial Analytics') }}
{{ __('Total Revenue Trend') }}
@endsection @push('script-page') @endpush