@php $theme = config('ui-theme.tickets'); @endphp
@foreach ($this->tickets as $ticket) @php $status = $ticket->status?->value ?? 'active'; // active | solved | archived $preview = $ticket->latestMessage ? \Illuminate\Support\Str::limit(strip_tags($ticket->latestMessage->body), 80) : '—'; $priority = $ticket->priority ?? 'Normal'; @endphp
{{ strtoupper(Str::substr($ticket->subject,0,2)) }}
{{ $ticket->subject }}
@if($ticket->unread_for_me_count > 0) {{ $ticket->unread_for_me_count }} @endif
#{{ $ticket->public_id }}
{{ $ticket->latestMessage ? Str::limit(strip_tags($ticket->latestMessage->body), 80) : 'No messages yet' }}
{{ $ticket->priority ?? 'Normal' }} {{ $ticket->status?->getLabel() }}
📌 Last update: {{ $ticket->updated_at->diffForHumans() }}
@if($ticket->created_at)
Started at: {{ \Carbon\Carbon::parse($ticket->created_at)->format('d M Y h:i A') }}
@endif
@endforeach
{{ $this->tickets->links() }}