@php
$statCards = [
['label' => 'Total Articles', 'value' => $stats['total_articles'] ?? 0, 'icon' => 'fa-file-alt', 'color' => 'primary', 'bg' => 'rgba(var(--bs-primary-rgb),0.1)'],
['label' => 'Total Categories', 'value' => $stats['total_categories'] ?? 0, 'icon' => 'fa-folder', 'color' => 'info', 'bg' => 'rgba(var(--bs-info-rgb),0.1)'],
['label' => 'Categories with Articles', 'value' => $stats['categories_with_articles'] ?? 0, 'icon' => 'fa-folder-open', 'color' => 'success', 'bg' => 'rgba(var(--bs-success-rgb),0.1)'],
['label' => 'Empty Categories', 'value' => $stats['empty_categories'] ?? 0, 'icon' => 'fa-folder-minus', 'color' => 'warning', 'bg' => 'rgba(var(--bs-warning-rgb),0.1)'],
['label' => 'Today\'s Articles', 'value' => $stats['today_articles'] ?? 0, 'icon' => 'fa-calendar-day', 'color' => 'secondary', 'bg' => 'rgba(var(--bs-secondary-rgb),0.1)'],
['label' => 'This Week', 'value' => $stats['week_articles'] ?? 0, 'icon' => 'fa-calendar-week', 'color' => 'primary', 'bg' => 'rgba(var(--bs-primary-rgb),0.05)'],
];
@endphp
@foreach($statCards as $stat)
{{ $stat['label'] }}
{{ number_format($stat['value']) }}
@endforeach
@if(isset($stats['most_used_category']) && $stats['most_used_category'])