@extends('user.support.layout') @section('title', 'Reply to Support Ticket') @section('content')
Reply to Ticket #{{ $ticket->st_no }}
Subject: {{ $ticket->st_subject }}
Issue Type: {{ $ticket->issueType->sit_name ?? 'N/A' }}
Status: {{ $ticket->st_status }}
Assigned To: {{ $ticket->assignedTo->ul_name ?? 'Unassigned' }}
Description: {{ $ticket->st_description }}

@if($ticket->attachments && $ticket->attachments->count() > 0)
Ticket Attachments:
@endif
Conversation
@forelse($ticket->comments as $comment)
@if($comment->staff) {{ $comment->staff->ul_name }} (Support) @elseif($comment->user) {{ $comment->user->name }} (You) @else Unknown @endif {{ $comment->created_at->format('d M Y h:i A') }}

{{ $comment->stc_comment }}

@if($comment->attachments && $comment->attachments->count() > 0)
Attachments:
@endif
@empty

No replies yet.

@endforelse
@if($ticket->st_status !== 'Closed')
Add Reply
@csrf
Allowed: JPG, PNG, MP4, MP3, WAV (max 10MB each)
Back
@else
This ticket is closed and cannot receive new replies.
@endif
@endsection