Ticket document
+Request details
+Original request content recorded against this helpdesk ticket.
+diff --git a/Modules/Helpdesk/Resources/views/livewire/ticket-show.blade.php b/Modules/Helpdesk/Resources/views/livewire/ticket-show.blade.php index 822dd2a9..c395ec8d 100644 --- a/Modules/Helpdesk/Resources/views/livewire/ticket-show.blade.php +++ b/Modules/Helpdesk/Resources/views/livewire/ticket-show.blade.php @@ -1,48 +1,893 @@ -{{-- FULL FILE REPLACEMENT NOTE +@php + use Illuminate\Support\Str; -Use your reverted ticket-show.blade.php and replace only the SLA metrics count card block with the block below. + $currentUser = auth()->user(); + $currentCompany = $currentUser?->company; + $canSeeInternalNotes = (bool) ($currentCompany?->is_system_company ?? false) + || Str::lower((string) ($currentCompany?->slug ?? '')) === 'mpba-limited' + || Str::contains(Str::lower((string) ($currentCompany?->name ?? '')), 'mpba'); + $visibleCommentCount = $ticket->comments->count(); +@endphp -Reason: -- The component replacement sets $ticket->public_replies_count and $ticket->time_spent_minutes safely. -- This Blade block does not introduce new undefined variables. -- Public replies and minutes logged are colour coded. -- Soft-deleted/tombstoned comments are excluded in TicketShow.php before the counts are assigned. +
+ Raised by {{ $ticket->owner?->name ?? 'Unknown user' }} · Assigned to {{ $ticket->agent?->name ?? 'Unassigned' }} +
+Ticket document
+Original request content recorded against this helpdesk ticket.
+Attachments
+Conversation
+