<nav class="primary-menu with-arrows">
    <ul class="menu-container">
        <li class="menu-item">
            <a class="menu-link fw-bold" href="{{ url('/') }}">
                <div>Beranda</div>
            </a>
        </li>
        @foreach ($data as $res)
            <li class="menu-item">
                <a class="menu-link fw-bold" href="{{ $res->target }}" target="{{ $res->jenis_link == 'internal' ? '_self':'_blank' }}">
                    <div>{{ $res->nama }}</div>
                </a>
                @if ($res->to_child->isNotEmpty())
                    <ul class="sub-menu-container not-dark">
                        @foreach ($res->to_child as $resc)
                            <li class="menu-item">
                                <a class="menu-link" href="{{ $resc->target }}" target="{{ $resc->jenis_link == 'internal' ? '_self':'_blank' }}">
                                    <div>{{ $resc->nama }}</div>
                                </a>
                            </li>
                        @endforeach
                    </ul>
                @endif
            </li>
        @endforeach
        <li class="menu-item">
            <a class="menu-link fw-bold" href="{{ route('unduhan') }}">
                <div>Unduhan</div>
            </a>
        </li>
        <li class="menu-item">
            <a class="menu-link fw-bold" href="{{ route('album-kegiatan')}}">
                <div>Album Kegiatan</div>
            </a>
        </li>
        <li class="menu-item">
            <a class="menu-link fw-bold" href="{{ route('pengumuman')}}">
                <div>Pengumuman</div>
            </a>
        </li>
    </ul>
</nav>
