|
#{{ $ticket->ticket_number }}
@if($isNewForUser)
New
@endif
|
{{ $ticket->subject }}
{{ Str::limit($ticket->description, 50) }}
|
@php
$cat = $ticket->category ?? '';
if ($cat === 'it') {
$categoryLabel = 'Technical Support';
} elseif ($cat === 'account') {
$categoryLabel = 'Account Manager';
} elseif ($cat === 'admin') {
$categoryLabel = 'Admin';
} else {
$categoryLabel = $cat ? ucfirst($cat) : '—';
}
@endphp
{{ $categoryLabel }} |
@if(Auth::user()->user_role == 1)
{{ $ticket->user->name. ' ' . $ticket->user->last_name }} |
@endif
{{ ucfirst(str_replace('_', ' ', $ticket->status)) }}
|
{{ ucfirst($ticket->priority) }}
|
@if($ticket->messages->count() > 0)
{{ $ticket->messages->count() }}
@else
0
@endif
|
@if($ticket->attachments->count() > 0)
{{ $ticket->attachments->count() }}
@else
0
@endif
|
{{ $ticket->created_at->format('Y-m-d H:i') }} |
{{ $ticket->updated_at->format('Y-m-d H:i') }} |
@if(Auth::user()->user_role == 1 && $ticket->assignedTo)
@endif
|
@endforeach