Files
opensem/resources/views/Shop/layout/partials/megamenu.blade.php
Ludovic CANDELLIER ae39681cb0 fix layout
2022-12-21 18:33:15 +01:00

24 lines
1.0 KiB
PHP

<div class="container">
<div class="row rounded m-0 drop-shadow bg-white p-2">
<div class="col mb-4">
<strong>
<a class="green-dark @if (($category['id'] ?? false) == $menu['id']) active @endif" href="{{ route('Shop.Categories.show', ['id' => $menu['id']]) }}">
Tous les articles
</a>
</strong><br>
@for ($i = 0; $i < round(count($menu['children']) / 3); $i++)
@include('Shop.layout.partials.megamenu_leafs')
@endfor
</div>
<div class="col mb-4">
@for ($i = round(count($menu['children']) / 3); $i < round(2 * count($menu['children']) / 3); $i++)
@include('Shop.layout.partials.megamenu_leafs')
@endfor
</div>
<div class="col mb-4">
@for ($i = round(2 * count($menu['children']) / 3); $i < count($menu['children']); $i++)
@include('Shop.layout.partials.megamenu_leafs')
@endfor
</div>
</div>
</div>