{{-- The 5 stat tiles from the Able Pro mockup. Data comes from a single `$this->dashboardMetrics()` call (see Dashboard.php) instead of one method per tile — this partial just loops over it. Only "À faire" carries a real value right now; the rest are `0` placeholders. Color classes are hardcoded per key (not string-interpolated) on purpose — Tailwind only generates classes it finds as literal text in source files, so `bg-{{ $color }}-50` would silently fail to compile. Each tile ends with a chevron link (`$metric['url']`) for navigating to the filtered list behind that count — every tile points to `#` for now since that list view doesn't exist yet (see the `url` docblock on `dashboardMetrics()`). --}} @php $colorClasses = [ 'gray' => 'bg-gray-100 text-gray-600 dark:bg-white/5 dark:text-gray-400', 'primary' => 'bg-primary-50 text-primary-600 dark:bg-primary-500/10 dark:text-primary-400', 'danger' => 'bg-danger-50 text-danger-600 dark:bg-danger-500/10 dark:text-danger-400', 'warning' => 'bg-warning-50 text-warning-600 dark:bg-warning-500/10 dark:text-warning-400', 'success' => 'bg-success-50 text-success-600 dark:bg-success-500/10 dark:text-success-400', ]; @endphp
@foreach ($this->dashboardMetrics() as $metric)
{{ $metric['value'] }}
{{ $metric['label'] }}
@endforeach