Skip to content
Advertisement

Blade Foreach alternating classes

I am using a blade template and I was wanting to know within my foreach what the best way is for me to have it so that my first .panel-heading has another class added to it and then the second one has another etc

Example:

.red .blue .red .blue .red

Code:

JavaScript

Advertisement

Answer

try this

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