@section('page-title', 'Ticket ' . $ticket->ticket_number)
Back to Support Desk Origin IP: {{ $ticket->ip_address ?? 'Unknown' }}
@if(session('success')) @endif @if(session('error')) @endif
{{ ucfirst($ticket->department) }}

{{ $ticket->subject }}

Opened {{ $ticket->created_at->format('M d, Y \a\t H:i') }}
@php $statusBadge = match($ticket->status) { 'open' => 'bg-danger text-white', 'pending' => 'bg-warning text-dark', 'waiting_for_client' => 'bg-indigo text-white', 'in_progress' => 'bg-info text-dark', 'resolved' => 'bg-success text-white', 'closed' => 'bg-secondary text-white', default => 'bg-secondary text-white' }; @endphp {{ str_replace('_', ' ', ucfirst($ticket->status)) }}
@foreach($ticket->replies as $reply) @php $isInternal = $reply->is_internal; $bubbleBg = $isInternal ? 'background-color: rgba(255, 193, 7, 0.1) !important; border-left: 4px solid var(--bs-warning);' : ($reply->is_staff ? 'background-color: var(--bs-tertiary-bg); border-left: 4px solid var(--bs-indigo);' : 'background-color: rgba(6, 182, 212, 0.05); border-left: 4px solid #06b6d4;'); $authorName = $reply->is_staff ? ($reply->user->name ?? 'Staff') . ' (Staff)' : ($ticket->client->name ?? $ticket->guest_name ?? 'Guest'); @endphp
{{ $authorName }} @if($isInternal) Internal Note @endif
{{ $reply->created_at->diffForHumans() }} @if($reply->ip_address) ({{ $reply->ip_address }}) @endif
{{ $reply->message }}
@if(!empty($reply->attachments))
Attachments:
@foreach($reply->attachments as $path) {{ basename($path) }} @endforeach
@endif
@endforeach

Post Response
@csrf
Ticket Parameters
@csrf
Linked Assets
@if($ticket->domain || $ticket->hostingAccount || $ticket->invoice)
@if($ticket->domain)
Domain: {{ $ticket->domain->domain_name }} View Domain
@endif @if($ticket->hostingAccount)
Hosting: {{ $ticket->hostingAccount->primary_domain }} View Space
@endif @if($ticket->invoice)
Invoice: {{ $ticket->invoice->invoice_number }} View Invoice
@endif
@else

No domain, hosting space, or invoice linked yet.

@endif @if($linkableAssets)
@csrf
@endif
Merge Thread

Move all replies from another ticket thread directly into this ticket.

@csrf