mercredi 26 juin 2019

How to hide color/size elements in Laravel

How do I hide the color or size if their values are empty?

SCREENSHOT

<p class="lx-sizes">
                        <span>SIZE :</span> @foreach ($produit->sizes as $size)
                        <a data-id="" href="javascript:;" class=""></a> @endforeach
                    </p>
                    <p class="lx-colors">
                        <span>COLOR :</span> @foreach ($produit->colors as $color)
                        <a data-id="" href="javascript:;" class=""></a> @endforeach
                    </p>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire