@extends('client::layouts.layout') @section('content')

Support Tickets

View and manage your support requests

{{-- Stats cards --}}

All

{{ $stats['all'] }}

Open

{{ $stats['open'] }}

In Progress

{{ $stats['inprogress'] }}

Waiting Response

{{ $stats['waiting'] }}

Resolved

{{ $stats['resolved'] }}

Closed

{{ $stats['closed'] }}

{{-- Search --}}
{{-- Ticket list --}}
@forelse ($tickets as $ticket)
{{ $ticket->ticket_reference }} {{ ucfirst($ticket->priority) }} {{ ucfirst($ticket->status === 'inprogress' ? 'In Progress' : $ticket->status) }}

{{ $ticket->subject }}

Category: {{ $ticket->category }}

{{ $ticket->messages->count() }} responses

Updated: {{ $ticket->updated_at->format('Y-m-d') }}

@empty

No tickets found.

@endforelse
@endsection @push('scripts') @endpush