{{-- Status Badge Component --}} @php $statusConfig = [ 'invited' => [ 'label' => 'مدعو', 'gradient' => 'from-blue-500 to-blue-600', 'bg' => 'bg-blue-100 dark:bg-blue-900/30', 'text' => 'text-blue-800 dark:text-blue-200', 'icon' => '' ], 'confirmed' => [ 'label' => 'مؤكد', 'gradient' => 'from-green-500 to-green-600', 'bg' => 'bg-green-100 dark:bg-green-900/30', 'text' => 'text-green-800 dark:text-green-200', 'icon' => '' ], 'scheduled' => [ 'label' => 'مجدول', 'gradient' => 'from-purple-500 to-purple-600', 'bg' => 'bg-purple-100 dark:bg-purple-900/30', 'text' => 'text-purple-800 dark:text-purple-200', 'icon' => '' ], 'pending' => [ 'label' => 'قيد المراجعة', 'gradient' => 'from-yellow-500 to-yellow-600', 'bg' => 'bg-yellow-100 dark:bg-yellow-900/30', 'text' => 'text-yellow-800 dark:text-yellow-200', 'icon' => '' ], 'absent_no_excuse' => [ 'label' => 'غياب بدون عذر', 'gradient' => 'from-red-500 to-red-600', 'bg' => 'bg-red-100 dark:bg-red-900/30', 'text' => 'text-red-800 dark:text-red-200', 'icon' => '' ], 'absent_with_excuse' => [ 'label' => 'غياب بعذر', 'gradient' => 'from-orange-500 to-orange-600', 'bg' => 'bg-orange-100 dark:bg-orange-900/30', 'text' => 'text-orange-800 dark:text-orange-200', 'icon' => '' ], 'proof_rejected' => [ 'label' => 'إثبات مرفوض', 'gradient' => 'from-red-600 to-red-700', 'bg' => 'bg-red-100 dark:bg-red-900/30', 'text' => 'text-red-800 dark:text-red-200', 'icon' => '' ], 'excuse_rejected' => [ 'label' => 'عذر مرفوض', 'gradient' => 'from-red-600 to-red-700', 'bg' => 'bg-red-100 dark:bg-red-900/30', 'text' => 'text-red-800 dark:text-red-200', 'icon' => '' ], 'cancelled' => [ 'label' => 'ملغي', 'gradient' => 'from-gray-500 to-gray-600', 'bg' => 'bg-gray-100 dark:bg-gray-900/30', 'text' => 'text-gray-800 dark:text-gray-200', 'icon' => '' ], 'approved' => [ 'label' => 'موافق عليه', 'gradient' => 'from-green-500 to-green-600', 'bg' => 'bg-green-100 dark:bg-green-900/30', 'text' => 'text-green-800 dark:text-green-200', 'icon' => '' ], 'rejected' => [ 'label' => 'مرفوض', 'gradient' => 'from-red-500 to-red-600', 'bg' => 'bg-red-100 dark:bg-red-900/30', 'text' => 'text-red-800 dark:text-red-200', 'icon' => '' ] , // حالات القيست الجديدة 'guest_pending' => [ 'label' => 'قيد المراجعة', 'gradient' => 'from-yellow-500 to-yellow-600', 'bg' => 'bg-yellow-100 dark:bg-yellow-900/30', 'text' => 'text-yellow-800 dark:text-yellow-200', 'icon' => '' ], 'guest_approved' => [ 'label' => 'مقبول', 'gradient' => 'from-green-500 to-green-600', 'bg' => 'bg-green-100 dark:bg-green-900/30', 'text' => 'text-green-800 dark:text-green-200', 'icon' => '' ], 'guest_rejected' => [ 'label' => 'مرفوض', 'gradient' => 'from-red-500 to-red-600', 'bg' => 'bg-red-100 dark:bg-red-900/30', 'text' => 'text-red-800 dark:text-red-200', 'icon' => '' ] ]; $config = $statusConfig[$status] ?? [ 'label' => $status, 'gradient' => 'from-gray-500 to-gray-600', 'bg' => 'bg-gray-100 dark:bg-gray-900/30', 'text' => 'text-gray-800 dark:text-gray-200', 'icon' => '' ]; $small = $small ?? false; $sizeClasses = $small ? 'text-xs px-2 py-1' : 'text-sm px-3 py-1.5'; $iconSize = $small ? 'w-3 h-3' : 'w-4 h-4'; @endphp {!! $config['icon'] !!} {{ $config['label'] }}