I did a lot of research about it but I ended up with just using 2 different colors instead of 4. What I want is to change the color alternately using 4 different colors (`blue`, `red`, `green`, `yellow`). What I have is just the two colors. Please see my code below:

```
<?php $colors_counter = 0; ?>
@foreach($posts as $post)

  <div class="header-{{ ($colors_counter%2 == 0) ? 'blue' : 'red' : 'green' : 'yellow' }}">
    {{ $post->name }}
  </div>

  <?php $colors_counter++; ?>
@endforeach

```

**Note**: I'm also using laravel 5 for this.