I have a gallery of products laid out like this:
<div class="row no-gutters bg-light">
@foreach ($products as $product)
<!-- Column 1 -->
<div class="col-6 @if(count($products) === 1 || 4 || 5) card-w-bg @endif">
<div class="row no-gutters">
<!-- Column 1-a -->
<div class="col-6 showcase-col">
<div class="overlay"></div>
<div class="showcase-hero showcase-text">
<h2 class="card-title mb-4"><a href="">{{ $product->name }}</a></h2>
<h3 class="card-subtitle text-muted">{{ $product->details }}</h3>
<h4 class="mb-3">{{ $product->presentPrice() }}</h4>
<p class="card-text mb-4 d-none d-md-block">Lorem ipsum dolor sit amet consectetur adipisicing elit. A
The if statement needs to add the dark gray bg to items 1, 4 and 5 only.