string('q')->trim()->toString(); $actorType = $request->string('type')->trim()->toString(); $module = $request->string('module')->trim()->toString(); $ipScope = $request->string('ip_scope')->trim()->toString(); $result = $this->audit->listRecent( 300, $search, $actorType !== '' ? $actorType : null, $module !== '' ? $module : null, $ipScope !== '' ? $ipScope : null ); return view('audit-logs.index', [ 'logs' => $result['rows'], 'error' => $result['error'], 'search' => $search, 'actorType' => $actorType, 'module' => $module, 'ipScope' => $ipScope, 'available' => $this->audit->isAvailable(), 'uiStats' => $this->audit->uiAccessStats(7, 12), ]); } }