@forelse($tickets as $ticket) @if(auth()->user()->user_type === 'admin') @if($ticket->status !== 'closed') @endif @endif {{ $ticket->ticket_number }}
{{ $ticket->subject }}
{{ Str::limit($ticket->description, 100) }}
{{ $ticket->category }} {{ ucfirst($ticket->priority) }} {{ ucfirst(str_replace('_', ' ', $ticket->status)) }} @if($ticket->student && $ticket->student->user) {{ $ticket->student->name }} @else N/A @endif @if(auth()->user()->user_type !== 'student') @if($ticket->assignedTo) {{ $ticket->assignedTo->username }} {{ $ticket->assignedTo->email }} @else Unassigned @endif @endif {{ $ticket->created_at->format('M j, Y') }}
@if(auth()->user()->user_type === 'admin') @if(!$ticket->assigned_to_user_id && $ticket->status !== 'closed') @endif @if($ticket->status !== 'closed') @endif @endif
@empty

No tickets found matching your criteria.

@endforelse @if($tickets->hasPages())
{{ $tickets->links() }}
@endif