{{ $ticket->subject }}
{{ $ticket->user->full_name ?? 'کاربر ناشناس' }}
@php
$statusColors = [
'open' => 'bg-red-100 text-red-800',
'pending' => 'bg-yellow-100 text-yellow-800',
'answered' => 'bg-blue-100 text-blue-800',
'closed' => 'bg-gray-100 text-gray-800',
];
$statusLabels = [
'open' => 'باز',
'pending' => 'در انتظار',
'answered' => 'پاسخ داده شده',
'closed' => 'بسته',
];
@endphp
{{ $statusLabels[$ticket->status] ?? $ticket->status }}
@php
$priorityColors = [
'low' => 'bg-green-100 text-green-800',
'normal' => 'bg-blue-100 text-blue-800',
'high' => 'bg-orange-100 text-orange-800',
'urgent' => 'bg-red-100 text-red-800',
];
$priorityLabels = [
'low' => 'کم',
'normal' => 'معمولی',
'high' => 'زیاد',
'urgent' => 'فوری',
];
@endphp
{{ $priorityLabels[$ticket->priority] ?? $ticket->priority }}
{{ $ticket->created_at->diffForHumans() }}