@extends('layouts.admin')
@section('title', 'Dashboard')
@section('eyebrow', 'Overview')
@section('heading', 'Dashboard')
@section('content')
@foreach ([
['Services', $stats['services'], 'fa-truck', 'admin.services.edit', ['slug' => 'air-freight']],
['Blog posts', $stats['posts'], 'fa-newspaper', 'admin.blog.index', []],
['Client logos', $stats['clients'], 'fa-handshake', 'admin.cms.clientele', []],
['Locations', $stats['locations'], 'fa-location-dot', 'admin.cms.locations', []],
] as [$label, $value, $icon, $route, $params])
{{ $label }}
@endforeach
@foreach ([
['New contact leads', $stats['contact_leads'], 'fa-envelope', 'admin.leads.contact'],
['New quote leads', $stats['quote_leads'], 'fa-file-invoice', 'admin.leads.quotes'],
['New pickup leads', $stats['pickup_leads'], 'fa-calendar-check', 'admin.leads.pickups'],
['New job requests', $stats['job_leads'], 'fa-briefcase', 'admin.leads.jobs'],
['New franchise', $stats['franchise_leads'], 'fa-store', 'admin.leads.franchise'],
['New fleet join', $stats['fleet_leads'] ?? 0, 'fa-truck', 'admin.leads.fleet'],
] as [$label, $value, $icon, $route])
{{ $label }}
@endforeach
@endsection