{{-- resources/views/restaurant/support/show.blade.php --}} @extends('layouts.restaurant') @section('title', 'Ticket Details') @section('content') @if(session('success')) @endif
Ticket Details
{{ ucfirst(str_replace('_', ' ', $ticket->category)) }}
{{ ucfirst($ticket->priority) }} Priority

{{ $ticket->description }}

@if($ticket->attachment) @endif
Created {{ $ticket->created_at->diffForHumans() }} • {{ $ticket->created_at->format('M d, Y h:i A') }}
Conversation ({{ $ticket->replies->count() }} replies)
@forelse($ticket->replies as $reply)
{{ strtoupper(substr($reply->user->name ?? 'U', 0, 1)) }}
{{ $reply->user->name ?? 'User' }} @if($reply->user_id == auth()->id()) (You) @endif {{ $reply->created_at->diffForHumans() }}

{{ $reply->message }}

@if($reply->attachment) Attachment @endif
@empty
No replies yet
@endforelse @if($ticket->status != 'closed')
Add Reply
@csrf
@else
This ticket is closed. Create a new ticket for further assistance.
@endif
Ticket Info
Ticket Number {{ $ticket->ticket_number }}
Status {{ ucfirst(str_replace('_', ' ', $ticket->status)) }}
Priority {{ ucfirst($ticket->priority) }}
Category {{ ucfirst(str_replace('_', ' ', $ticket->category)) }}
Created {{ $ticket->created_at->format('M d, Y h:i A') }}
@endsection