@extends('layouts.app') @section('content')

{{ $ticket->subject }}

{{ $ticket->status === 1 ? 'Open' : 'Closed' }} {{ 'Created at: ' . date('Y-m-d', strtotime($ticket->created_at->tz(auth()->user()->timezone) )) }}
@csrf @method('PATCH') @if($ticket->status === 1) @else @endif

{{ $ticket->message }}
@foreach($ticket->comments as $comment)
{{ 'Create by: ' . $comment->user->name }} {{ 'Created at: ' . date('Y-m-d', strtotime($comment->created_at->tz(auth()->user()->timezone) )) }} {{ $comment->comment }}
@endforeach
@csrf
@error('comment') {{ $message }} @enderror
@endsection