Pass initial variable to block
This commit is contained in:
parent
cc406d18b5
commit
fda189a226
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue