Pass initial variable to block

This commit is contained in:
Julian Prieber 2024-06-20 15:27:09 +02:00
parent cc406d18b5
commit fda189a226
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
@foreach($links as $link) @foreach($links as $link)
@if(isset($link->custom_html) && $link->custom_html) @if(isset($link->custom_html) && $link->custom_html)
@include('blocks::' . $link->name . '.display', ['link' => $link]) @include('blocks::' . $link->name . '.display', ['link' => $link, 'initial' => $initial++])
@else @else
@switch($link->name) @switch($link->name)
@case('icon') @case('icon')