@extends('layouts.dashboard') @section('content')

Support Tickets

@if(session('success')) @endif
@foreach($tickets as $ticket) @endforeach
# Title Description Users Priority Status Actions
{{ $tickets->firstItem() + $loop->index }} {{ $ticket->title }} {{ \Illuminate\Support\Str::limit($ticket->description, 60) }}
Added By: {{ $ticket->user?->name ?? 'N/A' }}
Assigned To: {{ $ticket->assignedTo?->name ?? 'Unassigned' }}
@php $priorityColor = match($ticket->priority) { 'High' => 'bg-red-500 text-white', 'Medium' => 'bg-yellow-400 text-black', default => 'bg-green-500 text-white', }; @endphp {{ $ticket->priority }} {{ $ticket->status }} View
{{ $tickets->links() }}
@endsection