{{-- Profile Card --}}
{{ substr($user->name, 0, 1) }}

{{ $user->name }}

{{ $user->email }}

{{ $user->roles->first()?->name ?? 'No Role' }} @if($user->team) {{ $user->team->name }} @endif
{{-- Workload --}}

📊 عبء العمل

@foreach(['total' => ['الإجمالي', 'blue'], 'open' => ['مفتوح', 'emerald'], 'pending' => ['في الانتظار', 'amber'], 'closed' => ['مغلق', 'rose'], 'unread' => ['غير مقروء', 'orange']] as $key => $info)
{{ number_format($workload[$key]) }}
{{ $info[0] }}
@endforeach
{{-- Recent Conversations --}}

💬 آخر المحادثات

@forelse($conversations as $conv) @empty @endforelse
العميل الحالة غير مقروء آخر نشاط
{{ $conv['customer'] }} {{ $conv['status'] }} @if($conv['unread'] > 0) {{ $conv['unread'] }} @else - @endif {{ $conv['last_message'] ?? '-' }}
لا توجد محادثات
{{-- Recent Assignments --}}

📋 آخر التكليفات

@forelse($assignments as $a) @empty @endforelse
العميل تم بواسطة السبب التاريخ
{{ $a['customer'] }} {{ $a['assigned_by'] }} {{ $a['reason'] }} {{ $a['assigned_at'] }}
لا توجد تكليفات