@extends('layouts.admin') @section('title', 'View Ticket') @section('content')

Ticket #{{ $ticket->id }} - {{ $ticket->subject }}

Back to Tickets
Ticket Details
@csrf @method('POST')

User: {{ $ticket->user->name }}

Email: {{ $ticket->user->email }}

Status: {{ ucfirst(str_replace('_', ' ', $ticket->status)) }}

Created At: {{ $ticket->created_at->format('Y-m-d H:i:s') }}


Description

{{ $ticket->description }}

@if ($ticket->attachment)

Attachment:

View/Download @endif
Replies
@forelse ($ticket->replies as $reply)

{{ $reply->user_id ? $reply->user->name : 'Admin' }} ({{ $reply->created_at->format('Y-m-d H:i:s') }})

{{ $reply->user_id ? 'User' : 'Admin' }}

{{ $reply->message }}

@if ($reply->attachment) View/Download Attachment @endif
@empty

No replies yet.

@endforelse
@csrf
Allowed file types: jpg, jpeg, png, pdf, doc, docx (max: 2MB)
@endsection