Способ применения, если условие неверное, правильный способ показан ниже:
@if(count($products) == 1 || count($products) == 4 || count($products) == 5) //change over here
//some code
@endif
Поэтому замените
<div class="col-6 @if(count($products) === 1 || 4 || 5) card-w-bg @endif">
на следующее:
<?php $reqArr=[1,4,5]; ?>
<div class="col-6 @if(in_array(count($products),$reqArr)) card-w-bg @endif">