@extends('layouts.admin') @section('title', 'Support Tickets') @push('styles') @endpush @section('content')

Open

{{ number_format($stats['open'] ?? 0) }}

Awaiting Reply

{{ number_format($stats['awaiting'] ?? 0) }}

Resolved

{{ number_format($stats['resolved'] ?? 0) }}

Total

{{ number_format($stats['total'] ?? 0) }}

All Tickets

{{ $tickets->total() }} ticket{{ $tickets->total() !== 1 ? 's' : '' }}
@if($tickets->count() > 0)
@foreach($tickets as $ticket) @endforeach
Reference User Subject Module Priority Status Last Reply Actions
{{ $ticket->reference }}
{{ $ticket->user->name ?? 'N/A' }} {{ $ticket->user->email ?? '' }}
{{ $ticket->subject }}
{{ ucfirst($ticket->module ?? 'general') }} {{ ucfirst($ticket->priority ?? 'normal') }} {{ str_replace('_', ' ', ucfirst($ticket->status)) }} {{ $ticket->last_reply_at ? $ticket->last_reply_at->diffForHumans() : $ticket->created_at->diffForHumans() }} View
@if($tickets->hasPages())
{{ $tickets->links() }}
@endif @else

No tickets found

There are no support tickets matching your criteria. Adjust the filters or check back later.

@endif
@endsection