{{-- Header --}}

{{ __('Support') }}

{{ __('Open a ticket and our team will get back to you shortly.') }}

{{ __('New Ticket') }}
{{-- Flash --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error')) @endif {{-- Ticket list --}}
@if($tickets->isEmpty())

{{ __('No tickets yet') }}

{{ __("Need help? Open a ticket and we'll reply within one business day.") }}

{{ __('Open a Ticket') }}
@else {{-- Table header --}} @foreach($tickets as $ticket) @php $statusMap = [ 'open' => ['bg-info/10 text-info', 'Open'], 'in_progress' => ['bg-warning/10 text-warning', 'In Progress'], 'waiting' => ['bg-warning/10 text-warning', 'Waiting'], 'resolved' => ['bg-success/10 text-success', 'Resolved'], 'closed' => ['bg-muted/10 text-muted', 'Closed'], ]; [$sCls, $sLabel] = $statusMap[$ticket->status] ?? ['bg-muted/10 text-muted', ucfirst($ticket->status)]; $priorityMap = [ 'low' => ['bg-muted/10 text-muted', 'Low'], 'normal' => ['bg-surface text-ink/60', 'Normal'], 'high' => ['bg-danger/10 text-danger', 'High'], 'urgent' => ['bg-danger/15 text-danger', 'Urgent'], ]; [$pCls, $pLabel] = $priorityMap[$ticket->priority ?? 'normal'] ?? ['bg-surface text-ink/60', ucfirst($ticket->priority ?? 'Normal')]; @endphp {{-- Mobile layout --}}
#{{ $ticket->id }} {{ __($sLabel) }}

{{ $ticket->subject }}

{{ \Illuminate\Support\Str::limit(strip_tags($ticket->body), 80) }}

{{ $ticket->updated_at?->diffForHumans() }}
@endforeach @endif
{{-- Pagination --}} @if($tickets->hasPages())
{{ $tickets->links() }}
@endif