<?php

use Illuminate\Support\Str;

if (isset($records)) {
    foreach ($records as $key => $row) { ?>
        <div class="col-lg-4 col-md-6 col-sm-12">
            <a class="plink" href="<?= route('products',[Str::slug($row->product_name)]) ?>"><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>
            </a>
        </div>
<?php }
}
?>