lundi 3 juin 2019

Hod do i make discount percentage of products in Laravel

i want to make discount percentage of products:

like this : screenshot

i get this error:

Division by zero (0)

Can anyone suggest me that what's I'm doing wrong ?

@foreach ($Products as $product)
            <div>
                <span>% <br />OFF</span>
                <img src="" />
            </div>
            <div>
                <h2></h2>

                    <ins>  
<span>DHs</span>
Dhs   
</ins>
            </div>
@endforeach



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire