my-website/resources/views/partials/sidebar_v2.blade.php

19 lines
678 B
PHP
Raw Permalink Normal View History

@if ( !empty($sidebarContent) )
<aside class="col-span-1">
<div class="flex h-full flex-col justify-between border-e bg-white">
<div class="px-4 py-6">
<ul class="mt-6 space-y-1">
@foreach ($sidebarContent as $item)
<li>
<a href="/{{ $item['href'] }}" class="block rounded-lg bg-gray-100 px-4 py-2 text-sm font-medium text-gray-700">
{{ $item['name'] }}
</a>
</li>
@endforeach
</ul>
</div>
</div>
</aside>
@endif