@php
// Tailwind's build-time scanner reads this file as PLAIN TEXT — it does
// not run PHP — so a class built by interpolating the color name into
// the middle of a Tailwind class never appears in the file as a
// literal, complete utility, and Tailwind never compiles it. Two of
// these eight badges (violet, orange) had NO color at all in
// production for exactly this reason; the others only happened to
// work because the same shade combination was ALSO used literally
// elsewhere on this page. Every class below is written out in full so
// Tailwind can always find it, regardless of what else the page
// happens to contain.
$kpiBadgeClasses = [
'blue' => 'bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300',
'emerald' => 'bg-emerald-50 dark:bg-emerald-900/20 text-emerald-700 dark:text-emerald-300',
'rose' => 'bg-rose-50 dark:bg-rose-900/20 text-rose-700 dark:text-rose-300',
'amber' => 'bg-amber-50 dark:bg-amber-900/20 text-amber-700 dark:text-amber-300',
'orange' => 'bg-orange-50 dark:bg-orange-900/20 text-orange-700 dark:text-orange-300',
'indigo' => 'bg-indigo-50 dark:bg-indigo-900/20 text-indigo-700 dark:text-indigo-300',
'cyan' => 'bg-cyan-50 dark:bg-cyan-900/20 text-cyan-700 dark:text-cyan-300',
'violet' => 'bg-violet-50 dark:bg-violet-900/20 text-violet-700 dark:text-violet-300',
];
$kpiCards = [
['key' => 'total_conversations', 'label' => 'إجمالي المحادثات', 'icon' => '💬', 'color' => 'blue'],
['key' => 'open_conversations', 'label' => 'المحادثات المفتوحة', 'icon' => '🟢', 'color' => 'emerald'],
['key' => 'closed_conversations', 'label' => 'المحادثات المغلقة', 'icon' => '🔴', 'color' => 'rose'],
['key' => 'pending_conversations', 'label' => 'في الانتظار', 'icon' => '⏳', 'color' => 'amber'],
['key' => 'unread_conversations', 'label' => 'غير مقروءة', 'icon' => '🔔', 'color' => 'orange'],
['key' => 'incoming_messages', 'label' => 'الرسائل الواردة', 'icon' => '📥', 'color' => 'indigo'],
['key' => 'outgoing_messages', 'label' => 'الردود المرسلة', 'icon' => '📤', 'color' => 'cyan'],
['key' => 'active_employees', 'label' => 'الموظفين النشطين', 'icon' => '👤', 'color' => 'violet'],
];
@endphp
@foreach($kpiCards as $card)