Skip to content
Advertisement

How to carousel in loop?

I am trying to loop carousels with class “active” first item

here is my code

JavaScript

I trying to put active item in the loop too.

Advertisement

Answer

You can use $loop->iteration==1 as said in laravel blade doc inside the foreach:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement