@extends('layouts.app') @section('title', 'Total Solved Tickets') @section('content')

Total Solved Tickets

View all solved tickets

{{ $stats['total'] }}

Total Solved Tickets

Reset
Total Solved Tickets ({{ $stats['total'] }})
@forelse($tickets as $index => $ticket) @empty @endforelse
SL Ticket # Reseller Subject Category Sub Category Priority Status Solved At Actions
{{ ($tickets->currentPage() - 1) * $tickets->perPage() + $index + 1 }} {{ $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) }} @php $statusLabel = in_array($ticket->status, ['resolved', 'closed']) ? 'Solved' : ucfirst(str_replace('_', ' ', $ticket->status)); @endphp {{ $statusLabel }} @if($ticket->resolved_at) {{ $ticket->resolved_at->format('Y-m-d H:i') }}
{{ $ticket->resolved_at->diffForHumans() }} @elseif($ticket->closed_at) {{ $ticket->closed_at->format('Y-m-d H:i') }}
{{ $ticket->closed_at->diffForHumans() }} @else N/A @endif
View
No solved tickets found
{{ $tickets->links() }}
@endsection