@extends('admin.layout') @section('content')
Tickets
Open: {{ $stats['open'] }} • In progress: {{ $stats['in_progress'] }} • Closed: {{ $stats['closed'] }}
New ticket
Reset
@foreach ($tickets as $ticket) @endforeach
Ticket Customer Subject Priority Status Assigned Last update Action
{{ $ticket->ticket_number }} {{ $ticket->customer?->name ?? 'Guest' }} {{ $ticket->subject }} {{ ucfirst($ticket->priority) }} {{ str_replace('_', ' ', ucwords($ticket->status, '_')) }} {{ $ticket->assignee?->name ?? '-' }} {{ $ticket->last_message_at?->format('d M Y, h:i A') ?? $ticket->updated_at?->format('d M Y, h:i A') }}
{{ $tickets->links() }}
@endsection