college-courses/resources/views/components/header/navbar.blade.php

16 lines
520 B
PHP
Raw Normal View History

2024-10-15 10:15:40 +03:00
<nav class="flex-grow">
<ul class="flex max-lg:flex-col flex-row">
@foreach ($routes as $route)
<li class="block">
<a @class([
'p-4',
'block',
'hover:bg-gray-100',
'hover:bg-opacity-50',
'font-semibold' => url()->current() == url($route['link']),
]) href="{{ url($route['link']) }}">{{ $route['title'] }}</a>
</li>
@endforeach
</ul>
</nav>