@vite([ 'resources/css/app.css', 'resources/js/app.js', ]) @php $currentUser = auth()->user(); $currentCompany = $currentUser?->company; $canSeeInternalNotes = (bool) ($currentCompany?->is_system_company ?? false) || \Illuminate\Support\Str::lower((string) ($currentCompany?->slug ?? '')) === 'mpba-limited' || \Illuminate\Support\Str::contains(\Illuminate\Support\Str::lower((string) ($currentCompany?->name ?? '')), 'mpba'); $visibleCommentCount = $ticket->comments->count(); @endphp
{{ $ticket->reference }} {{ $ticket->status->name }} {{ $ticket->priority->name }}

{{ $ticket->subject }}

Raised by {{ $ticket->owner?->name ?? 'Unknown user' }} · Assigned to {{ $ticket->agent?->name ?? 'Unassigned' }}

Back @can('update', $ticket) Edit @endcan
{!! $ticket->body !!}
@if ($ticket->attachments->isNotEmpty())

Ticket attachments

Supporting screenshots, documents and logs linked to this ticket.

{{ $ticket->attachments->count() }} file(s)
@endif

Conversation

Lotus Notes-style document responses and responses to responses.

{{ $visibleCommentCount }} item{{ $visibleCommentCount === 1 ? '' : 's' }}
@if ($ticket->comments->isNotEmpty()) @include('helpdesk::partials.comment-thread', ['comments' => $ticket->comments, 'level' => 0, 'ticket' => $ticket, 'canSeeInternalNotes' => $canSeeInternalNotes]) @else
No responses yet.
@endif
@csrf

Add reply

@if (session('ticket-comment-added'))
{{ session('ticket-comment-added') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif @if ($cannedResponses->isNotEmpty())
@endif @php $oldCommentBody = html_entity_decode((string) old('commentBody'), ENT_QUOTES | ENT_HTML5, 'UTF-8'); $oldCommentBody = preg_replace('/<\s*(script|style)[^>]*>.*?<\s*\/\s*\1\s*>/is', '', $oldCommentBody) ?: ''; $oldCommentBody = preg_replace('/\s+on[a-z]+\s*=\s*("[^"]*"|\'[^\']*\'|[^\s>]+)/i', '', $oldCommentBody) ?: ''; $oldCommentBody = preg_replace('/javascript\s*:/i', '', $oldCommentBody) ?: ''; $oldCommentBody = strip_tags($oldCommentBody, '