@extends('user.support.layout') @section('title', 'Ticket #' . $ticket->st_no) @section('content')
{{-- Customer navigation --}}
{{-- Mobile toolbar --}}
Ticket #{{ $ticket->st_no }}
{{-- Ticket info backdrop --}}
{{-- Success message --}} @if(session('success'))
{{ session('success') }}
@endif {{-- Validation errors --}} @if($errors->any())
@endif
{{-- ================= CHAT PANEL ================= --}}
{{-- Chat header --}}
Ticket #{{ $ticket->st_no }}
{{ $ticket->issueType->sit_name ?? 'Support' }} · {{ $ticket->st_subject }}
{{ $ticket->st_status }}
{{-- Conversation history --}}
@forelse($ticket->comments as $comment) @php $isCustomer = $comment->user !== null; @endphp
{{-- Show staff name only; customer name remains hidden --}} @if($comment->staff)
{{ $comment->staff->ul_name }} (Support)
@endif

{{ $comment->stc_comment }}

{{-- Comment attachments --}} @if($comment->attachments && $comment->attachments->count() > 0) @foreach($comment->attachments as $attachment) @endforeach @endif
{{ $comment->created_at?->format('d M Y, h:i A') }}
@empty
No replies yet. Send a message to start the conversation.
@endforelse
{{-- ================= REPLY COMPOSER ================= --}}
@if($ticket->st_status !== 'Closed')
@csrf
JPG, PNG, MP4, MP3, WAV ยท Max 10MB each
@else
This ticket is closed and cannot receive new replies.
@endif
{{-- ================= TICKET DETAILS SIDEBAR ================= --}}
@endsection