@extends('layouts.app') @section('title', 'Closed Tickets') @section('content')
View all closed tickets
Closed Tickets
| Ticket # | Reseller | Subject | Category | Sub Category | Priority | Closed At | Actions |
|---|---|---|---|---|---|---|---|
| {{ $ticket->ticket_number }} | @if($ticket->user) @if($ticket->user->reseller && $ticket->user->reseller->name) {{ $ticket->user->reseller->name }} @elseif($ticket->user->company_name) {{ $ticket->user->company_name }} @else {{ $ticket->user->name ?? 'N/A' }} @endif @else N/A @endif | {{ Str::limit($ticket->subject ?? $ticket->description, 50) }} | {{ $ticket->category->name ?? 'N/A' }} | {{ $ticket->subcategory->name ?? 'N/A' }} | @php $priorityColors = [ 'low' => '#6c757d', 'medium' => '#17a2b8', 'high' => '#ffc107', 'urgent' => '#dc3545' ]; $priorityColor = $priorityColors[$ticket->priority] ?? '#6c757d'; @endphp {{ ucfirst($ticket->priority) }} |
@if($ticket->closed_at)
{{ $ticket->closed_at->format('Y-m-d H:i') }}
{{ $ticket->closed_at->diffForHumans() }} @else N/A @endif |
View |
| No closed tickets found | |||||||