@extends('layouts.app') @section('content')
@if(session('status')) @endif
Ticket #{{ $ticket->id }}
{{ trans('cruds.ticket.fields.title') }} {{ $ticket->title }}
{{ trans('cruds.ticket.fields.content') }} {!! $ticket->content !!}
{{ trans('cruds.ticket.fields.attachments') }} @foreach($ticket->attachments as $attachment) {{ $attachment->file_name }} @endforeach
{{ trans('cruds.ticket.fields.status') }} {{ $ticket->status->name ?? '' }}
{{ trans('cruds.ticket.fields.author_name') }} {{ $ticket->author_name }}
{{ trans('cruds.ticket.fields.author_email') }} {{ $ticket->author_email }}
{{ trans('cruds.ticket.fields.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