public function render(string $location, string $template = 'platform::partials.mainMenu'): string
    {
        $this->checkAccess();

        return $this->findAllChildren($location)
            ->sortBy('sort')
            ->map(function ($value) use ($template) {
                return view($template, $value)->render();
            })
            ->implode(' ');
    }