@extends('admin.layouts.app') @section('title', $title) @section('content')
@include('admin.layouts.notifications')

{{ $title }}

@if(request('category_id') || request('user_id') || request('priority') || request('status')) Reset @endif
@if($tickets->isEmpty()) @else @foreach($tickets as $ticket) @endforeach @endif
ID Subject User Category Status Priority Last Updated Created On Actions
No records found
{{ $ticket->reference_id }} {{ $ticket->subject }} {{ $ticket->user->first_name }} {{ $ticket->user->last_name }} {{ $ticket->category ? $ticket->category->name : '' }} @php $statusClasses = [ 'Open' => 'bg-secondary text-white', 'In Progress' => 'bg-primary text-white', 'Resolved' => 'bg-success text-white', 'Closed' => 'bg-dark text-white' ]; @endphp {{ $ticket->status }} @php $priorityClasses = [ 'Low' => 'bg-secondary text-light', 'Medium' => 'bg-primary text-white', 'High' => 'bg-warning text-dark', 'Critical' => 'bg-danger text-light' ]; @endphp {{ $ticket->priority }} {{ $ticket->updated_at->diffForHumans() }} {{ $ticket->created_at->diffForHumans() }}
@csrf @method('DELETE')
@if($tickets->hasPages())
{{ $tickets->links() }}
@endif
@endsection @push('scripts') @endpush