@extends('layouts.user') @section('title', 'Ticket ' . $ticket->ticket_no) @section('content')

{{ $ticket->ticket_no }} - {{ $ticket->subject }}

{{ strtoupper($ticket->status) }} {{ strtoupper($ticket->priority) }} @if($ticket->rating) Rated: {{ $ticket->rating }}/5 @endif
Conversation
Replies from you and support team
@foreach($ticket->messages as $msg)
{{ $msg->is_admin ? 'Support Team' : 'You' }} • {{ $msg->created_at?->format('Y-m-d H:i:s') }}
{{ $msg->message }}
@if($msg->hasAttachment())
Attachment: {{ $msg->attachment_name }}
@endif
@endforeach
@if(!$ticket->isResolved())
Reply
Send follow-up message
@csrf
@else @if(!$ticket->rating)
Rate Support
Ticket is resolved. Rate this experience.
@csrf
@else
This ticket is closed after rating. New reply will open a new ticket automatically.
@endif @endif @endsection