@extends('frontend.support.layouts') @section('support-content')
@if (session('success'))
{{ session('success') }}
@endif
{{ $ticket->subject }}

Ticket ID: {{ $ticket->ticket_number }} | Created: {{ $ticket->created_at->format('d M Y, h:i A') }} | Status: {{ ucfirst($ticket->status) }}


{{ $ticket->details }}

{{-- conversation messages --}}
@forelse($ticket->replies as $reply)
{{-- avatar placeholder, you can replace src with real user images if available --}} @if (!$reply->is_admin)
User Avatar
@endif
{{-- reply text --}} {{ $reply->reply_text }} {{-- attachment --}} @if ($reply->attachment) @endif {{-- date + time at the bottom right of the bubble --}} {{ $reply->created_at->format('d M Y, h:i A') }}
@if ($reply->is_admin)
Admin Avatar
@endif
@empty

No messages yet.

@endforelse
{{-- reply form --}} @if ($ticket->status == 'open')
@csrf
{{-- paperclip icon as file input --}}
{{-- chat-style input --}} {{-- send button --}}
@error('message')
{{ $message }}
@enderror @error('attachment')
{{ $message }}
@enderror
@else
This ticket is closed. You cannot reply further.
@endif
@endsection