users menu listing

This commit is contained in:
Mark Gregory
2026-08-26 08:20:59 +01:00
parent 31ee06fa3a
commit 381d58003d
8 changed files with 103 additions and 13 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ final class Ticket extends Model
protected $table = 'helpdesk_tickets';
protected $with = ['user'];
protected $with = ['user', 'agent'];
/** @var list<string> */
protected $fillable = [
@@ -13,7 +13,7 @@ final class AutomationRuleService
/** @param array<string, mixed> $context */
public function apply(Ticket $ticket, array $context = []): Ticket
{
$sender = (string) ($context['sender'] ?? $ticket->owner?->email ?? '');
$sender = (string) ($context['sender'] ?? $ticket->user?->email ?? '');
$mailbox = (string) ($context['mailbox'] ?? '');
AutomationRule::query()
@@ -22,7 +22,7 @@ final class CannedResponseRenderer
'{{ ticket.category }}' => (string) ($ticket->category?->name ?? ''),
'{{ ticket.project }}' => (string) ($ticket->project?->title ?? ''),
'{{ ticket.team }}' => (string) ($ticket->team?->name ?? ''),
'{{ requester.name }}' => (string) ($ticket->owner?->name ?? ''),
'{{ requester.name }}' => (string) ($ticket->user?->name ?? ''),
'{{ agent.name }}' => (string) ($ticket->agent?->name ?? ''),
'{{ actor.name }}' => (string) ($actor?->name ?? ''),
'{{ ticket.url }}' => route('helpdesk.tickets.show', ['ticket' => $ticket->getKey()]),