Ticket Information

Status: {{ $ticket->status ? $ticket->status->name : 'N/A' }}
Priority: {{ $ticket->priority ? $ticket->priority->name : 'N/A' }}
Customer: {{ $ticket->user ? $ticket->user->name : 'N/A' }}
Assigned to: {{ $ticket->assignedTo ? $ticket->assignedTo->first_name . ' ' . $ticket->assignedTo->last_name : 'Unassigned' }}
Department: {{ $ticket->department ? $ticket->department->name : 'N/A' }}
Category: {{ $ticket->category ? $ticket->category->name : 'N/A' }}
@if($ticket->subCategory)
Sub Category: {{ $ticket->subCategory->name }}
@endif
Type: {{ $ticket->ticketType ? $ticket->ticketType->name : 'N/A' }}
Source: {{ ucfirst($ticket->source ?: 'Web') }}
Created: {{ $ticket->created_at->format('F d, Y \a\t g:i A') }}
@if($ticket->due_date)
Due Date: {{ $ticket->due_date->format('F d, Y \a\t g:i A') }}
@endif
Last Updated: {{ $ticket->updated_at->format('F d, Y \a\t g:i A') }}
@if($ticket->impact_level)
Impact Level: {{ ucfirst($ticket->impact_level) }}
@endif @if($ticket->urgency_level)
Urgency Level: {{ ucfirst($ticket->urgency_level) }}
@endif @if($ticket->estimated_hours || $ticket->actual_hours)
Time Tracking: @if($ticket->estimated_hours) Estimated: {{ $ticket->estimated_hours }}h @endif @if($ticket->estimated_hours && $ticket->actual_hours) | @endif @if($ticket->actual_hours) Actual: {{ $ticket->actual_hours }}h @endif
@endif

Description

{!! $ticket->details !!}
@if($ticket->resolution)

Resolution

{!! $ticket->resolution !!}
@endif @if($attachments && $attachments->count() > 0)

Attachments ({{ $attachments->count() }})

@foreach($attachments as $file)
{{ $file->name }} @php $size = $file->size ?? 0; $units = ['B', 'KB', 'MB', 'GB', 'TB']; $i = $size > 0 ? floor(log($size, 1024)) : 0; $formattedSize = $size > 0 ? round($size / pow(1024, $i), 2) . ' ' . $units[$i] : 'N/A'; @endphp {{ $formattedSize }} • {{ $file->created_at->format('M d, Y') }} @if($file->user) • by {{ $file->user->first_name }} {{ $file->user->last_name }} @endif
@endforeach
@endif @if($ticket->tags && count($ticket->tags) > 0)

Tags

@foreach($ticket->tags as $tag) {{ $tag }} @endforeach
@endif @if($comments && $comments->count() > 0)

Comments ({{ $comments->count() }})

@foreach($comments as $comment)
{{ $comment->user ? $comment->user->first_name . ' ' . $comment->user->last_name : 'System' }} {{ $comment->created_at->format('M d, Y \a\t g:i A') }}
{!! $comment->comment !!}
@endforeach
@endif @if($activities && $activities->count() > 0)

Activity Log

@foreach($activities as $activity)
{{ $activity->action }} {{ $activity->created_at->format('M d, Y \a\t g:i A') }}
@if($activity->description)
{{ $activity->description }}
@endif @if($activity->user)
by {{ $activity->user->first_name }} {{ $activity->user->last_name }}
@endif
@endforeach
@endif