@extends('layouts.admin') @section('title', 'Support Tickets') @section('header_title', 'Manage Support Tickets') @section('content')

Support Tickets

{{-- Optional: Button to create a new ticket from admin, if applicable --}} {{-- New Ticket --}}
@if (session('success')) @endif @if (session('error')) @endif {{-- Filters for tickets --}}
{{-- Add more filters here if needed, e.g., search by subject or user --}}
@forelse ($tickets as $ticket) @empty @endforelse
ID Subject User Status Last Reply Created Actions
#{{ $ticket->id }} {{ Str::limit($ticket->subject, 50) }} {{ $ticket->user->name ?? 'N/A' }} {{ ucfirst(str_replace('_', ' ', $ticket->status)) }} {{ $ticket->last_reply_at ? $ticket->last_reply_at->diffForHumans() : 'N/A' }} {{ $ticket->created_at->toFormattedDateString() }} View
No tickets found.
{{ $tickets->appends(request()->query())->links() }}
@endsection