<div id="menu-solucoes" class="c-header__submenu js-dropdown-desk-box" >
    <nav class="c-header__submenu__wrap container">
        @php
            $cont = 0;
        @endphp
        <div class="c-header__submenu__row">
            @foreach($menu_solucoes as $solucao)
                @php 
                $cont++;
                
                    if ($cont == 7) { 
                        echo '</div><div class="c-header__submenu__row">';
                        $cont=1;
                    }
                    @endphp
                    <div class="c-header__submenu__item">
                        
                        <h3 class="c-header__submenu__title"><a href="{{ route('site.solucao', $solucao->slug)}}">{{$solucao->name}}</a></h3>
                        @if(count($solucao->produtos) > 0)
                        @php 
                            
                            $hasSubmenu = false;
                            foreach($solucao->produtos as $produto) :
                                if ($produto->status == 1) : 
                                    $hasSubmenu = true; 
                                    break;
                                endif;    
                            endforeach;
                        @endphp
                        @if ($hasSubmenu)
                        <div class="c-header__submenu__sub">
                            <a class="js-submenu-toggle" href="#">{{ __('messages.menu-produtos') }}</a>
                            <div class="c-header__submenu__sub__items js-submenu-sub">
                                @foreach($solucao->produtos as $produto)
                                    @if($produto->linkinterno != 1 && $produto->status == 1)
                                        <a href="{{ route('site.produto', $produto->slug)}}">{{$produto->name}}</a>
                                    @endif
                                @endforeach
                            </div>
                        </div>
                        @endif
                        @endif
                        {{-- <ul>
                            @foreach($solucao->produtos as $produto)
                                @if($produto->linkinterno != 1)
                                    <li>
                                        <a href="{{ route('site.produto', $produto->slug)}}">{{$produto->name}}</a>
                                    </li>
                                @endif
                            @endforeach
                        </ul> --}}
                    </div>
            @endforeach
            
        </div>
    </nav>
</div>

<div id="menu-segmentos" class="c-header__submenu --illustration js-dropdown-desk-box">
    <nav class="c-header__submenu__wrap container">
        <div class="c-header__submenu__image">
            <img src="{{asset('assets/img/content/illustration.png')}}" alt="Ilustração">
        </div>
        <div class="c-header__submenu__navs">
            
            <div class="c-header__submenu__row">
                <div class="c-header__submenu__item">
                    
                    <ul>
                        <li>
                            <a href="https://app.apoiocotacoes.com.br/app/Cadastramento.do?primeira=true&semLogin=cadastrarHospital" target="_blank"><strong>Instituição de Saúde</strong></a>
                        </li>
                        
                    </ul>
                </div>
            
                <div class="c-header__submenu__item">
                    <ul>
                        <li>
                            <a href="https://app.apoiocotacoes.com.br/app/CadastramentoFornecedor.do?primeira=true&semLogin=cadastrarFornecedor" target="_blank"><strong>Fornecedor</strong></a>
                        </li>
                        
                    </ul>
                </div>
            
            </div>
        </div>
    </nav>
</div>

<div id="menu-conteudo" class="c-header__submenu --illustration js-dropdown-desk-box">
    <nav class="c-header__submenu__wrap container">
        <div class="c-header__submenu__image">
            <img src="{{asset('assets/img/content/illustration.png')}}" alt="Ilustração">
        </div>
        <div class="c-header__submenu__navs">
            <div class="c-header__submenu__row">
                @if (parseLocale() != 'en') 
                <div class="c-header__submenu__item">
                    <ul>
                        <li>
                            <a href="{{route('site.blogs')}}"><strong>{{ __('messages.footer-blog') }}</strong></a>
                        </li>
                    </ul>
                </div>
                
                <div class="c-header__submenu__item">
                    <ul>
                        <li>
                            <a href="{{route('site.cases')}}"><strong>{{ __('messages.footer-case') }}</strong></a>
                        </li>
                    </ul>
                </div>
                @endif
                {{-- 
                @if (parseLocale() != 'en') 
                <div class="c-header__submenu__item">
                    <ul>
                        <li>
                            <a href="{{route('site.matEducativo')}}"><strong>{{ __('messages.footer-material') }}</strong></a>
                        </li>
                    </ul>
                </div>
                @endif --}}
                {{-- <div class="c-header__submenu__item">
                    <ul>
                        <li>
                            <a href="{{route('site.videos')}}"><strong>Vídeos</strong></a>
                        </li>
                    </ul>
                </div> --}}
            </div>
            {{-- <div class="c-header__submenu__row">
                <div class="c-header__submenu__item">
                    <ul>
                        <li>
                            <a href="#"><strong>Feed de redes sociais</strong></a>
                        </li>
                    </ul>
                </div>
            </div> --}}
        </div>
    </nav>
</div>

<div id="menu-contato" class="c-header__submenu --illustration js-dropdown-desk-box">
    <nav class="c-header__submenu__wrap container">
        <div class="c-header__submenu__image">
            <img src="{{asset('assets/img/content/illustration.png')}}" alt="Ilustração">
        </div>
        <div class="c-header__submenu__navs">
            <div class="c-header__submenu__row">
                <div class="c-header__submenu__item">
                    <ul>
                        <li>
                            <a href="{{ route('site.contato') }}"><strong>{{ __('messages.footer-fale') }}</strong></a>
                        </li>
                    </ul>
                </div>
                <div class="c-header__submenu__item">
                    <ul>
                        <li>
                            <a href="{{ route('site.trabalhe') }}"><strong>Trabalhe Conosco</strong></a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </nav>
</div>