@extends('client.layouts.main') @section('title', 'My Support Tickets') @section('content')
Support Tickets
@forelse($tickets as $ticket) @php $priorityColors = [ 'low' => 'default', 'medium' => 'info', 'high' => 'warning', 'urgent' => 'danger', ]; $statusColors = [ 'open' => 'warning', 'in_progress' => 'info', 'answered' => 'success', 'customer_reply' => 'warning', 'on_hold' => 'default', 'closed' => 'default', ]; @endphp @empty @endforelse
Ticket # Subject Department Priority Status Last Updated Actions
{{ $ticket->ticket_number }} {{ $ticket->subject }} {{ ucfirst($ticket->department) }} {{ ucfirst($ticket->priority) }} {{ ucfirst(str_replace('_', ' ', $ticket->status)) }} {{ $ticket->last_reply_at ? $ticket->last_reply_at->diffForHumans() : $ticket->created_at->diffForHumans() }} View
No tickets found. Need help? Open a new ticket.
@if($tickets->hasPages()) @endif
@endsection