php
@foreach($sorts as $key=>$sort) @if ($key%2 == 0) <li><a class="reacting" href="" ><img src="{{$sort -> thumb or /images/type/type_no.png}}" alt=""/><p>{{ $sort -> name }}</p></a> @else <li><a class="other" href="" ><img src="{{$sort -> thumb or /images/type/type_no.png}}" alt=""/><p>{{ $sort -> name }}</p></a> @endif @endforeach