@foreach ($this->statuses() as $st) @endforeach
{{ __('Last reply') }} @forelse ($tickets as $ticket) @php $statusTone = ['open' => 'warning', 'answered' => 'info', 'customer_reply' => 'partial', 'closed' => 'neutral'][$ticket->status] ?? 'neutral'; $prioTone = ['high' => 'danger', 'medium' => 'warning', 'low' => 'neutral'][$ticket->priority] ?? 'neutral'; @endphp @empty @endforelse
{{ __('ID') }} {{ __('Subject') }} {{ __('Client') }} {{ __('Priority') }} {{ __('Status') }}
#{{ $ticket->id }}
{{ \Illuminate\Support\Str::limit($ticket->subject, 44) }}
{{ $ticket->messages_count }} {{ __('messages') }} · {{ ucfirst($ticket->category) }}
{{ $ticket->user?->name }}
{{ $ticket->user?->email }}
{{ __(ucfirst($ticket->priority)) }} {{ __(ucfirst(str_replace('_', ' ', $ticket->status))) }} {{ $ticket->last_reply_at?->diffForHumans() }}
@if ($tickets->hasPages())
{{ $tickets->links() }}
@endif