@foreach($links as $link)
    <li class="nav-item {{ $link->isActive() ? 'active' : null }}">
        <a href="{{ url($link->post->slug) }}" class="nav-link">{{ $link->post->title }}</a>
    </li>
@endforeach