<div class="row">
    @forelse($products as $product)
    @php
        $stock_qty = product_stock($product);
    @endphp
    <!-- Start col -->
    <div class="col-sm-6 col-md-6 col-lg-4 col-xl-3">
        <div class="product-bar productcss m-b-30 product" data-value="{{ $product->id }}">
            <div class="product-head">
                <a href="#"><img src="{{ (!empty($product->images))?url('public/uploads/products/'.$product->images):url('public/backend/images/no_images.png') }}" class="img-fluid" style="height: 125px;" alt="product"></a>
            </div>
            <div class="product-body py-3" style="height: 145px">
                <div class="row">
                    <div class="col-12 text-center">
                        <h6 class="mt-1 mb-3">{{ $product->name }}</h6>
                    </div>
                    <div class="col-12 text-center">
                        <small class="font-weight-bold">{{ $product->selling_price }}</small> Tk
                    </div>
                    <div class="col-12">
                        <div class="text-center">
                            <small class="stock">Stock : {{ $stock_qty }}</small>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- End col -->
    @empty
    <div class="col-md-12" style="padding-bottom: 30px;">
        <div class="alert alert-danger text-center" role="alert"> Products not available!</div>
    </div>
    @endforelse
</div>
