@extends('layouts.user_type.auth') @section('pageActions') @endsection @section('ticketSupport') @include('components.alert')
All tickets
{{ $tickets->total() }} tickets
@forelse ($tickets as $index => $ticket) @php $tsCompany = $ticket->companyProfile?->company_name; $tsInit = $tsCompany ? collect(preg_split('/\s+/', trim($tsCompany)))->filter()->take(2)->map(fn ($w) => mb_strtoupper(mb_substr($w, 0, 1)))->implode('') : '?'; $tsPriority = match ($ticket->priority) { 'Urgent' => 'z-badge--danger', 'High' => 'z-badge--warning', 'Medium' => 'z-badge--info', default => '', }; $tsStatus = match ($ticket->status) { 'Open' => 'z-badge--warning', 'In Progress' => 'z-badge--info', 'Resolved' => 'z-badge--success', default => '', }; $tsUrl = route('ticketSupport.individual.show', $ticket->ticket_number); @endphp @empty @endforelse
Ticket Client Priority Status Updated
{{ $ticket->subject }} {{ $ticket->ticket_number }}
{{ $tsInit }} {{ $tsCompany ?? 'Unknown client' }}
{{ ucfirst($ticket->priority) }} {{ ucfirst($ticket->status) }} @if($ticket->updated_at) {{ $ticket->updated_at->format('j M Y') }}{{ $ticket->updated_at->format('g:i A') }} @else — @endif
No tickets here
Tickets raised by clients, or created here, appear in this list.
@include('components.pagination', [ 'paginator' => $tickets->appends(request()->query()), ])
@endsection