@extends('admin.layouts.app') @section('title', 'Ticket #' . $ticket->ticket_number) @section('content')

Ticket #{{ $ticket->ticket_number }}

Review conversation and respond to the customer.

@if(session('success'))
{{ session('success') }}
@endif

Customer Information

{{ strtoupper(substr($ticket->user->name, 0, 1)) }}

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

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

Subject

{{ $ticket->subject }}

Status

@if($ticket->status === 'open') Open @else Closed @endif
@if($ticket->order) @endif
@if($ticket->status === 'open')
@csrf
@endif

Ticket Conversation

@foreach($ticket->messages as $message)
{{ $message->user->name }} • {{ $message->created_at->format('M d, h:i A') }}

{{ $message->message }}

@if($message->attachment_path) @endif
@endforeach
@if($ticket->status === 'open')
@csrf
@else

This ticket is closed and can no longer be replied to.

@endif
@endsection @push('scripts') @endpush