@extends('layouts.app') @section('content')
@if(session('status')) @endif
Ticket #{{ $ticket->id }}
Title {{ $ticket->title }}
Content {!! $ticket->content !!}
Attachments @foreach($ticket->attachments as $attachment) {{ $attachment->file_name }} @endforeach
Status {{ $ticket->status->name ?? '' }}
Author Name {{ $ticket->author_name }}
Author Email {{ $ticket->author_email }}
Comments @forelse ($ticket->comments as $comment)

{{ $comment->author_name }} ({{ $comment->created_at }})

{{ $comment->comment_text }}

@if(!$loop->last)
@endif @empty

There are no comments.

@endforelse
@csrf
@error('comment_text') {{ $message }} @enderror
@endsection