ListUsers::route('/'), ]; } public static function getRecordRouteBindingEloquentQuery(): Builder { return parent::getRecordRouteBindingEloquentQuery() ->withoutGlobalScopes([ SoftDeletingScope::class, ]); } public static function getEloquentQuery(): Builder { if (auth()->user()->super_admin) { return parent::getEloquentQuery()->where('konto_id', auth()->user()->konto_id); } else { return parent::getEloquentQuery()->where('super_admin', false)->where('konto_id', auth()->user()->konto_id); } } public static function getNavigationBadge(): ?string { if (auth()->user()->super_admin) { return parent::getEloquentQuery()->where('konto_id', auth()->user()->konto_id)->count(); } else { return parent::getEloquentQuery()->where('super_admin', false)->where('konto_id', auth()->user()->konto_id)->count(); } } }