<?php
if (isset($records)) {
    foreach ($records as $key => $row) { ?>
        <div class="col-lg-4 col-md-6 col-sm-12">
            <div class="product-card text-center">
                <img src="<?= ($row->product_image == '') ? asset('assets/img/placeholder.png'):$row->product_image ?>" class="img-fluid product-img" alt="Product">
                <h6 class="product-title mt-3"><?= ucwords($row->product_name) ?></h6>
            </div>
        </div>
<?php }
}
?>