Navigation

<nav>
    <ul class="flex items-center space-x-4">
        @foreach (pages()->whereIn('slug', ['home', 'events', 'about', 'contact'])->get() as $page)
            <li>
                <a href="{{ $page->url() }}" class="{{ $page->active() ? 'font-bold' : '' }}">
                    {{ $page->title }}
                </a>
            </li>
        @endforeach
    </ul>
</nav>
Previous topic
← Grids