@extends('admin.layouts.grid') @section('section', admin_trans('Tickets')) @section('title', str(admin_trans('Ticket #{number}'))->replace('{number}', $ticket->id)) @section('back', route('admin.tickets.index')) @section('content')
@foreach ($ticket->replies as $reply)
@if (auth()->user()->id != $reply->user->id) {{ $reply->user->getName() }} {{ $reply->user->getName() }} @else {{ $reply->user->getName() }} {{ $reply->user->getName() }} @endif @if (!$reply->user->isUser())
{{ admin_trans('Support') }}
@endif
@if (!$loop->first)
@endif
@if ($loop->first)
{{ $ticket->subject }}
@endif
@php $purifier = new \HTMLPurifier(); $safeReplyBody = $purifier->purify($reply->body); @endphp {!! nl2br(e($safeReplyBody)) !!} @if ($reply->attachments->count() > 0)
{{ admin_trans('Attached files') }}:
@foreach ($reply->attachments as $attachment) @endforeach
@endif
@endforeach
{{ admin_trans('Reply') }}
@csrf
{{ str(admin_trans('Ticket #{number}'))->replace('{number}', $ticket->id) }}
@if ($ticket->isOpened()) {{ admin_trans('Opened') }} @else {{ admin_trans('Closed') }} @endif
{{ admin_trans('Priority') }}:
{{ admin_trans('Department') }}:
{{ admin_trans('Created Date') }}:
{{ admin_trans('Last Activity') }}:
@if ($ticket->isOpened())
@csrf
@endif
@endsection