@extends('layouts.app') @section('title', $statusLabel . ' - Details') @section('content')

{{ $statusLabel }} - Details

View all tickets for {{ $statusLabel }}

{{ $totalCount }}

Total Tickets

{{ $solvedCount }}

Solved Tickets

{{ $totalCount - $solvedCount }}

Pending Tickets

{{ $issues->count() }}

Total Issues

@if(request('user_id')) @endif
@php $resetUrl = route('reseller-tickets.issues-report-details', $status); if(request('user_id')) { $resetUrl .= '?user_id=' . request('user_id'); } @endphp Reset
{{ $statusLabel }} Tickets ({{ $totalCount }})
SHOW ENTRIES
@if(!request('user_id')) @endif @forelse($tickets as $index => $ticket) @if(!request('user_id')) @endif @empty @endforelse
SL Ticket # Reseller Subject Issue Category Priority Status Solving StatusLevelCreated 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 {{ \Illuminate\Support\Str::limit($ticket->subject ?? $ticket->description, 50) }} @if($ticket->issue) {{ $ticket->issue->name }} @else N/A @endif {{ $ticket->category->name ?? 'N/A' }} @php $priorityColors = [ 'low' => '#28a745', 'medium' => '#ffc107', 'high' => '#fd7e14', 'urgent' => '#dc3545' ]; $priorityColor = $priorityColors[$ticket->priority] ?? '#6c757d'; @endphp {{ ucfirst($ticket->priority) }} {{ ucfirst(str_replace('_', ' ', $ticket->status)) }} @php $isSolved = $ticket->resolved_at !== null; @endphp @if($isSolved) Solved @else Pending @endif @php $assignedEmployees = $ticket->assignedEmployees->where('pivot.is_active', true); @endphp @if($assignedEmployees->count() > 0) {{ $assignedEmployees->pluck('name')->join(', ') }} @else Not Assigned @endif {{ $ticket->created_at->format('M d, Y h:i A') }}
No tickets found.
{{ $tickets->links() }}
@endsection