fixes
This commit is contained in:
@@ -16,7 +16,11 @@
|
||||
</div>
|
||||
<div class="col mb-4">
|
||||
@for ($i = round(count($category['children']) / 3); $i < round(2 * count($category['children']) / 3); $i++)
|
||||
<strong>{{ $category['children'][$i]['name'] }}</strong><br>
|
||||
<strong>
|
||||
<a class="green-dark" href="{{ route('Shop.Categories.show', ['id' => $category['children'][$i]['id']]) }}">
|
||||
{{ $category['children'][$i]['name'] }}
|
||||
</a>
|
||||
</strong><br>
|
||||
@foreach ($category['children'][$i]['children'] ?? [] as $leaf)
|
||||
<a class="green-dark" href="{{ route('Shop.Categories.show', ['id' => $leaf['id']]) }}">
|
||||
{{ $leaf['name'] }}
|
||||
@@ -26,7 +30,11 @@
|
||||
</div>
|
||||
<div class="col mb-4">
|
||||
@for ($i = round(2 * count($category['children']) / 3); $i < count($category['children']); $i++)
|
||||
<strong>{{ $category['children'][$i]['name'] }}</strong><br>
|
||||
<strong>
|
||||
<a class="green-dark" href="{{ route('Shop.Categories.show', ['id' => $category['children'][$i]['id']]) }}">
|
||||
{{ $category['children'][$i]['name'] }}
|
||||
</a>
|
||||
</strong><br>
|
||||
@foreach ($category['children'][$i]['children'] ?? [] as $leaf)
|
||||
<a class="green-dark" href="{{ route('Shop.Categories.show', ['id' => $leaf['id']]) }}">
|
||||
{{ $leaf['name'] }}
|
||||
|
||||
Reference in New Issue
Block a user