{{-- Page header --}} {{-- Status tabs --}}
@foreach ($this->statuses() as $st) @php $cnt = $counts[$st] ?? 0; @endphp @endforeach
{{-- Ticket list --}}
@forelse ($tickets as $ticket) @php $tone = ['open' => 'warning', 'answered' => 'success', 'customer_reply' => 'info', 'closed' => 'neutral'][$ticket->status] ?? 'neutral'; @endphp @empty @endforelse
{{ __('ID') }} {{ __('Subject') }} {{ __('Status') }} {{ __('Messages') }} {{ __('Last reply') }}
#{{ $ticket->id }}
{{ __($ticket->subject) }}
@if ($ticket->order_id)
{{ __('Order') }} #{{ $ticket->order_id }}
@else
{{ rf_date($ticket->created_at) }}
@endif
{{ __(ucfirst(str_replace('_', ' ', $ticket->status))) }} {{ $ticket->messages_count }} {{ $ticket->last_reply_at?->diffForHumans() ?? '—' }}
@if ($tickets->hasPages())
{{ $tickets->links() }}
@endif
{{-- Create ticket modal --}}
{{-- Subject --}}
@error('subject')

{{ $message }}

@enderror
{{-- Order ID (optional) --}}
{{-- Message --}}
@error('body')

{{ $message }}

@enderror
{{-- Attachments --}}
{{-- Upload progress --}}
@if ($uploadedFiles)
@foreach ($uploadedFiles as $i => $file)
@if (str_starts_with($file->getMimeType(), 'image/')) @else @endif {{ $file->getClientOriginalName() }}
@endforeach
@endif