@extends('layouts.shop') @section('title', 'Ticket #' . $ticket->ticket_number . ' - Hair Niche By Shelly') @section('content')

Ticket Details

Subject

{{ $ticket->subject }}

Ticket ID

{{ $ticket->ticket_number }}

Status

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

@if($ticket->status === 'open')
@csrf
@endif

Conversation

@foreach($ticket->messages as $message)

{{ $message->message }}

@if($message->attachment_path) @endif

{{ $message->created_at->format('M d, h:i A') }} @if($message->user_id !== auth()->id()) • {{ $message->user->name }} (Support) @endif

@endforeach
@if($ticket->status === 'open')
@csrf
@else
This ticket is closed. You can no longer reply.
@endif
@endsection