{{ __('Support') }} · #{{ $ticket->ticket_number }}

{{ $ticket->subject }}

@php $stCls = [ 'open' => 'bg-accent-amber/15 text-accent-amber', 'in_progress' => 'bg-wa-bubble text-wa-deep', 'pending' => 'bg-accent-coral/10 text-accent-coral', 'resolved' => 'bg-wa-mint text-wa-deep', 'closed' => 'bg-paper-100 text-ink-600', ][$ticket->status] ?? ''; @endphp {{ str_replace('_', ' ', $ticket->status) }} Opened {{ optional($ticket->created_at)->diffForHumans() }} @if ($ticket->resolved_at) Resolved {{ \Carbon\Carbon::parse($ticket->resolved_at)->diffForHumans() }} @endif
@if (session('success'))
{{ session('success') }}
@endif {{-- Conversation thread --}}
{{ __('You · initial') }}
{{ $ticket->message }}
@foreach ($messages as $m) @php $isAdmin = $m->author_role === 'admin'; $tone = $isAdmin ? 'bg-wa-bubble border-wa-green/30' : 'bg-paper-0 border-paper-200'; @endphp
{{ $isAdmin ? 'Support team' : 'You' }} {{ $m->created_at?->format('M j, Y · H:i') }}
{{ $m->body }}
@endforeach
{{-- Reply form --}} @if (!in_array($ticket->status, ['closed'], true))

{{ __('Reply') }}

@csrf
@if (in_array($ticket->status, ['resolved'], true)) {{ __('Replying will reopen this ticket.') }} @else @endif
@else
This ticket is closed. {{ __('Open a new ticket') }} if you need help.
@endif
← Back to all tickets