16 lines
520 B
PHP
16 lines
520 B
PHP
|
<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>
|