@extends('admin.layouts.main') @section('title', 'Support Tickets') @section('menu', 'Support') @section('content')
| Ticket # | Subject | Client | Department | Priority | Status | Last Reply | Actions |
|---|---|---|---|---|---|---|---|
| {{ $ticket->ticket_number }} | {{ Str::limit($ticket->subject, 50) }} | @if($ticket->user) {{ $ticket->user->first_name }} {{ $ticket->user->last_name }} @else N/A @endif | {{ $ticket->department ?? '-' }} | @php $priorityClass = match($ticket->priority) { 'low' => 'default', 'medium' => 'info', 'high' => 'warning', 'urgent' => 'danger', default => 'default', }; @endphp {{ ucfirst($ticket->priority) }} | @php $statusClass = match($ticket->status) { 'open' => 'warning', 'in_progress' => 'info', 'answered' => 'success', 'customer_reply' => 'warning', 'on_hold' => 'default', 'closed' => 'default', default => 'default', }; @endphp {{ ucwords(str_replace('_', ' ', $ticket->status)) }} | @if($ticket->last_reply_at) {{ $ticket->last_reply_at->diffForHumans() }} @else {{ $ticket->created_at->format('M d, Y') }} @endif | |
| No tickets found | |||||||