@extends('layouts.app') @section('title', 'Support History - ' . $ticket->ticket_number) @section('content')

Support History - {{ $ticket->ticket_number }}

Resolved Ticket Details

@if($ticket->resolved_at)
@endif
Ticket Information

{{ $ticket->ticket_number }}

@if($ticket->priority === 'urgent') {{ ucfirst($ticket->priority) }} @elseif($ticket->priority === 'high') {{ ucfirst($ticket->priority) }} @elseif($ticket->priority === 'medium') {{ ucfirst($ticket->priority) }} @else {{ ucfirst($ticket->priority) }} @endif

{{ $ticket->created_at->format('M d, Y h:i A') }}

{{ $ticket->resolved_at ? $ticket->resolved_at->format('M d, Y h:i A') : 'Not Resolved' }}

{{ $ticket->title }}

{{ $ticket->description }}
@if($ticket->resolution_notes)
{{ $ticket->resolution_notes }}
@endif
@if($userInfo['clientInfo'])
Client Information

{{ $userInfo['clientInfo']->full_name ?? 'N/A' }}

{{ $userInfo['clientInfo']->mobile_number ?? 'N/A' }}

{{ $userInfo['clientInfo']->zone ?? 'N/A' }}

{{ $userInfo['clientInfo']->sub_zone ?? 'N/A' }}

{{ $userInfo['clientInfo']->box ?? 'N/A' }}

{{ $ticket->complained_number ?? 'N/A' }}

@endif
Assignment Information

{{ $userInfo['createdBy']->name ?? 'N/A' }}

{{ $userInfo['updatedBy']->name ?? 'N/A' }}

@if($userInfo['assignedEmployees'] && $userInfo['assignedEmployees']->count() > 0)
@foreach($userInfo['assignedEmployees'] as $employee) @endforeach
@elseif($userInfo['assignedTo']) @else

No employees assigned

@endif
Resolution Timeline
@if($ticket->assigned_at && $ticket->resolved_at) @php $duration = $ticket->assigned_at->diffInMinutes($ticket->resolved_at); $days = floor($duration / (24 * 60)); $hours = floor(($duration % (24 * 60)) / 60); $minutes = $duration % 60; if ($days > 0) { $totalTime = $days . 'd ' . $hours . 'h ' . $minutes . 'm'; } elseif ($hours > 0) { $totalTime = $hours . 'h ' . $minutes . 'm'; } else { $totalTime = $minutes . 'm'; } @endphp
Total Resolved Time: {{ $totalTime }}
@endif
Ticket Created

{{ $ticket->created_at->format('M d, Y h:i A') }}

@if($ticket->resolved_at)
Ticket Resolved

{{ $ticket->resolved_at->format('M d, Y h:i A') }}

@endif
@endsection