{{ __('More / Support') }}
{{ __('Talk to') }} {{ __('support') }}
Live support inbox
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $err)
{{ $err }}
@endforeach
@endif
{{ __('Something is broken') }}

{{ __('How can we help?') }}

{{ __('Drop the details below and our team will get back within a few hours during business hours.') }}

@csrf {{-- The reason buttons in the left rail flip `border-wa-deep` on the active
{{-- Your recent tickets — driven by the `$tickets` collection that SupportTicketController::index() passes. Lives in the right column under the form so a freshly-submitted ticket pops up immediately. --}} @if (!empty($tickets) && count($tickets) > 0)
{{ __('Your history') }}

{{ __('Recent tickets') }}

{{ __('Full history →') }}
@foreach ($tickets as $t) @php $pill = match ($t->status) { 'awaiting_user' => [ 'bg' => 'bg-accent-amber/15', 'text' => 'text-[#7B5A14]', 'border' => 'border border-accent-amber/40', 'label' => 'your turn', ], 'awaiting_support' => [ 'bg' => 'bg-wa-mint', 'text' => 'text-wa-deep', 'border' => 'border border-wa-green/40', 'label' => 'awaiting reply', ], 'resolved' => [ 'bg' => 'bg-paper-50', 'text' => 'text-ink-700', 'border' => 'border border-paper-200', 'label' => 'resolved', ], default => [ 'bg' => 'bg-wa-mint', 'text' => 'text-wa-deep', 'border' => 'border border-wa-green/40', 'label' => 'open', ], }; $isNew = session('new_ticket_number') === $t->ticket_number; @endphp
#{{ $t->ticket_number }} {{ $pill['label'] }} @if ($isNew) {{ __('just submitted') }} @endif

{{ $t->subject }}

{{ Str::limit($t->message, 140) }}

{{ $t->created_at->format('M d') }}
@endforeach
@endif