@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())
@foreach($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
{{-- ================= CHAT PANEL ================= --}}
{{-- Chat header --}}
{{-- 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')
@else
This ticket is closed and cannot receive new replies.
@endif
{{-- ================= TICKET DETAILS SIDEBAR ================= --}}
@endsection