<nav class="navbar navbar-inverse navbar-default">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="logo-wrapper" href="/"><img alt='' src="/img/small_logo.png"></a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class='nav navbar-nav'>
                @foreach ($menu as $item)
                    @if ($item['visible'] === 1)
                        @if(isset($item['children']) && count($item['children']) > 0)
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ $item['name'] }}
                                    <span class="caret"></span>
                                </a>
                                <ul class="dropdown-menu">
                                    @foreach ($item['children'] as $child)
                                        <li class="common_mnu">
                                            <a href="{{ $child['url'] }}">{{ $child['name'] }}</a>
                                        </li>
                                    @endforeach
                                </ul>
                            </li>
                        @else
                            <li class="common_mnu"><a href="{{ $item['url'] }}">{{ $item['name'] }}</a></li>
                        @endif
                    @endif
                @endforeach
            </ul>
            <ul class="nav navbar-nav navbar-right hidden-sm">
                <li class="hidden-xs icon_btn" >
                    <a href="https://vk.com/ledstarband" target=_blank><img width=36 src="/img/social/small/vk1.png" /></a>
                </li>
                <li class="hidden-xs icon_btn" >
                    <a href="https://www.youtube.com/channel/UCK-jXwhb7w0Cnwy0V1-qZHQ/videos?shelf_id=0&view=0&sort=dd" target=_blank><img width=36 src="/img/social/small/ytube.png" /></a>
                </li>
            </ul>
        </div>
    </div>
    @yield('breadcrump')
</nav>
