@csrf
@foreach ($customers as $index => $customer)
salescustomersrelation->pluck('customer_id')->contains($customer->id)) checked @endif>
{{-- Close and start a new row after every 3 items --}} @if (($index + 1) % 2 == 0)
@endif @endforeach