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>



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2JaJKbU
via IFTTT

Aucun commentaire:

Enregistrer un commentaire