<?php for($i = 0;$i < $product->rate;$i++): ?>
    <i class="fa-solid fa-star active"></i>
<?php endfor; ?>
<?php for($i = 0;$i < (5-$product->rate);$i++): ?>
    <i class="fa-solid fa-star"></i>
<?php endfor; ?>
<?php /**PATH /home/omaralyomhost/public_html/electric/resources/views/web/pages/components/products/rate.blade.php ENDPATH**/ ?>