@extends('layouts.app') @section('page-header') @endsection @section('content')

{{ __('Ticket Subject') }}: {{ $ticket->subject }}

{{ __('Ticket') }} ID: {{ $ticket->ticket_id }}

{{ $ticket->status }}
@foreach ($messages as $message) @if ($message->role != 'admin')

{{ date_format($message->created_at, 'd M Y H:i A') }} {{ __('Your Message') }}

{!! nl2br(html_entity_decode($message->message))!!}

@if ($message->attachment)

{{ __('Attachment') }}

{{ __('View Attached Image') }} @endif
@else

{{ date_format($message->created_at, 'd M Y H:i A') }} {{ __('Admin Response') }}

{!! nl2br(html_entity_decode($message->message))!!}

@if ($message->attachment)

{{ __('Attachment') }}

{{ __('View Attached Image') }} @endif
@endif @endforeach
@csrf
{{ __('Response') }} :
{{ __('Attach File') }}
{{ __('JPG | JPEG | PNG | Max 5MB') }} @error('attachment')

{{ $errors->first('attachment') }}

@enderror
{{ __('Return') }}
@endsection @section('js') @endsection