@extends('layouts.business') @section('title', 'Ticket #' . $ticket->id . ' Details') @section('content')

Ticket #{{ $ticket->id }}

{{ $ticket->subject }}

{{ ucfirst(str_replace('_', ' ', $ticket->status)) }}
Ticket Details

Priority

{{ ucfirst($ticket->priority) }}

Category

{{ $ticket->category ?? 'N/A' }}

Created At

{{ $ticket->created_at->format('M d, Y H:i A') }}


Description

{{ $ticket->description }}

Messages
@foreach($ticket->replies as $message)
{{ $message->user->full_name ?? 'Support Team' }} - {{ $message->created_at->format('M d, Y H:i A') }}

{{ $message->message }}

@if($message->attachments)
Attachments:
    {{-- attachment json decode--}} @php $attachments = json_decode($message->attachments); @endphp @foreach($attachments as $attachment)
  • {{ $attachment }}
  • @endforeach
@endif

@endforeach @if($ticket->status == 'closed' || $ticket->status == 'resolved')
This ticket is closed/Resolved. You cannot reply to a closed ticket.
@else
@csrf
@endif
@endsection