{{-- resources/views/admin/support/index.blade.php --}} @extends('admin.layouts.app') @section('title', 'Support Tickets') @section('page_title', 'Support Tickets') @section('breadcrumb', 'Property support requests') @section('content') {{-- Filter Bar --}}
All clear
No tickets in this view
| Ticket | Property | Raised By | Type | Priority | Assigned To | Status | Opened | |
|---|---|---|---|---|---|---|---|---|
|
{{ $ticket->subject }}
{{ $ticket->ticket_number }}
|
@if($ticket->property) {{ $ticket->property->name }} @else — @endif |
{{ $ticket->user?->name ?? '—' }}
{{ $ticket->user?->email }}
|
{{ ucfirst(str_replace('_', ' ', $ticket->type)) }} | @php $priorityStyle = match($ticket->priority) { 'urgent' => 'background:#fee2e2;color:#991b1b;', 'high' => 'background:#fef3c7;color:#92400e;', 'medium' => 'background:#dbeafe;color:#1e40af;', default => 'background:var(--bg);color:var(--muted);', }; @endphp {{ ucfirst($ticket->priority) }} | {{ $ticket->admin?->name ?? '—' }} | @php $statusClass = match($ticket->status) { 'open' => 'bs-pending', 'in_progress' => 'bs-trialing', 'awaiting_property' => 'bs-info_requested', 'resolved' => 'bs-approved', 'closed' => 'bs-draft', default => 'bs-draft', }; @endphp {{ str_replace('_', ' ', $ticket->status) }} | {{ $ticket->created_at->diffForHumans() }} | Open → |