@lang('modules.tickets.ticket')#{{ $ticketId }}

@if(isset($ticket->status)) @if($ticket->status === 'open') {{ ucfirst($ticket->status) }} @elseif($ticket->status === 'pending') {{ ucfirst($ticket->status) }} @elseif($ticket->status === 'resolved') {{ ucfirst($ticket->status) }} @elseif($ticket->status === 'closed') {{ ucfirst($ticket->status) }} @endif @else -- @endif

{{ ucfirst($ticket->subject) }}

@forelse ($ticketReplies as $reply)
{{$reply->user->name}}
{{$reply->user->name}} {{$reply->created_at->diffForHumans()}}
@lang('app.delete')
{!! nl2br($reply->message) !!}
@if ($reply->files->isNotEmpty())
@foreach ($reply->files as $file) @php $isImage = in_array(pathinfo($file->filename, PATHINFO_EXTENSION), ['jpg', 'jpeg', 'png', 'gif', 'bmp']); @endphp @if ($isImage) @else
{{ $file->filename }}
@endif @endforeach
@endif
@empty

@lang('app.noRecordsFound')

@endforelse

To: {{ $ticket->user->name }}

@if ($uploadedFiles)
@foreach ($uploadedFiles as $index => $file)
{{ $file->getClientOriginalName() }}
@endforeach
@endif @error('uploadedFiles.*') {{ $message }} @enderror

@lang('modules.tickets.details')

@foreach ($ticketTypes as $ticketType) @endforeach
@foreach ($agents as $agent) @endforeach