*/ protected function getHeaderActions(): array { return [ Action::make('refresh') ->label('Refresh') ->icon('heroicon-o-arrow-path') ->color('gray') ->url(fn (): string => url()->current()), ]; } public function mount(OperationRun $run): void { $user = auth()->user(); if (! $user instanceof User) { abort(403); } $workspaceId = (int) ($run->workspace_id ?? 0); if ($workspaceId <= 0) { abort(404); } $isMember = WorkspaceMembership::query() ->where('workspace_id', $workspaceId) ->where('user_id', (int) $user->getKey()) ->exists(); if (! $isMember) { abort(404); } $this->run = $run->loadMissing(['workspace', 'tenant', 'user']); } }