@section('page-title', 'My Support Tickets')

🎫 Support Ticket Desk

View history and track status updates on your support request threads

Open Support Ticket
@if(session('success')) @endif
@if($tickets->isEmpty())

You have no active support tickets.

Open First Ticket
@else
@foreach($tickets as $t) @endforeach
Ticket # Subject Department Priority Status Last Reply Action
{{ $t->ticket_number }} {{ $t->subject }} {{ ucfirst($t->department) }} {{ ucfirst($t->priority) }} @php $statusBadge = match($t->status) { 'open' => 'bg-danger-subtle text-danger', 'pending' => 'bg-warning-subtle text-warning', 'waiting_for_client' => 'bg-indigo-subtle text-indigo', 'in_progress' => 'bg-info-subtle text-info', 'resolved' => 'bg-success-subtle text-success', 'closed' => 'bg-secondary-subtle text-muted', default => 'bg-secondary-subtle text-muted' }; @endphp {{ str_replace('_', ' ', ucfirst($t->status)) }} {{ $t->last_reply_at ? $t->last_reply_at->diffForHumans() : 'No replies' }} View Thread
{{ $tickets->links() }}
@endif