@extends('admin.admin_dashboard') @section('admin')
Tickets {{ $ticket->ticket_number }} @can('update', $ticket) Edit @endcan
{!! nl2br(e($ticket->description)) !!}
Opened by {{ $ticket->requester->name ?? '—' }} · {{ $ticket->created_at?->format('d M Y H:i') }} · Source: {{ $ticket->source->label() }}
@if($ticket->resolution)

{!! nl2br(e($ticket->resolution)) !!}

Resolved {{ $ticket->resolved_at?->format('d M Y H:i') }} @if($ticket->resolver) by {{ $ticket->resolver->name }} @endif
@endif @if($ticket->attachments->isNotEmpty()) @endif @forelse($ticket->comments as $comment)
{{ $comment->author->name ?? 'Unknown' }} {{ $comment->visibility->label() }}
{{ $comment->created_at?->format('d M Y H:i') }}
{!! nl2br(e($comment->body)) !!}
@empty

No replies yet.

@endforelse @can('reply', $ticket)
@csrf
@if($canSeeInternal)
@else @endif
@endcan
Category
{{ $ticket->category->name ?? '—' }}
Subcategory
{{ $ticket->subcategory->name ?? '—' }}
Department
{{ $ticket->department->name ?? '—' }}
Impact
{{ $ticket->impact->label() }}
Assigned to
{{ $ticket->assignee->name ?? 'Unassigned' }}
Escalated to
{{ $ticket->escalatedToUser->name ?? '—' }}
@if($ticket->sla_resolution_due_at)
SLA due
{{ $ticket->sla_resolution_due_at->format('d M Y H:i') }}
@endif @if($ticket->first_response_at)
First response
{{ $ticket->first_response_at->format('d M Y H:i') }}
@endif @if($ticket->tags->isNotEmpty())
Tags
@foreach($ticket->tags as $tag) {{ $tag->name }} @endforeach
@endif
@can('assign', $ticket)
@csrf
@endcan @can('resolve', $ticket) @if(!$ticket->status->isClosed() && $ticket->status !== App\Enums\HelpDesk\TicketStatus::Resolved)
@csrf
@endif @endcan @can('close', $ticket) @if($ticket->status === App\Enums\HelpDesk\TicketStatus::Resolved || $ticket->status->isOpen())
@csrf
@endif @endcan @can('reopen', $ticket) @if($ticket->status->isClosed() || $ticket->status === App\Enums\HelpDesk\TicketStatus::Resolved)
@csrf
@endif @endcan @can('escalate', $ticket) @if($ticket->status->isOpen())
@csrf
@endif @endcan @if($ticket->escalations->isNotEmpty()) @foreach($ticket->escalations as $esc)
Level {{ $esc->to_level }}
{{ $esc->reason ?? 'Automatic escalation' }}
{{ $esc->created_at?->format('d M Y H:i') }}
@endforeach
@endif
@endsection @push('scripts') @endpush