<?php if($this->cart->total_items()>0){?>
<ul class="mini-cart__list">

                        <?php foreach($this->cart->contents() as $cart){?>
                            <li class="mini-cart__product">
                                <!--<a href="#" class="remove-from-cart remove">
                                    <i class="dl-icon-close"></i>
                                </a>-->
                                <div class="mini-cart__product__image">
                                    <a href="<?php echo base_url().$cart['slug'];?>"><img src="<?php echo $cart['img'];?>" alt="products"></a>
                                </div>
                                <div class="mini-cart__product__content">
                                    <a class="mini-cart__product__title" href="<?php echo base_url().$cart['slug'];?>"><?php echo $cart['name'];?></a>
                                    <span class="mini-cart__product__quantity"><?php echo $cart['qty'];?> x <?php  echo $subt=$cart['price'];?></span>
                                </div>
                            </li>
                            <?php }?>
                        </ul>
                        <div class="mini-cart__total">
                            <span>Subtotal</span>
                            <span class="ammount"><?php echo $this->cart->total();?></span>
                        </div>
                        <div class="mini-cart__buttons">
                            <a href="<?php echo base_url();?>cart" class="btn btn-fullwidth btn-style-1">View Cart</a>
                            <a href="<?php echo base_url();?>checkout" class="btn btn-fullwidth btn-style-1">Checkout</a>
                        </div>
                        
                        
                        
                        

<?php }else{?>
<h2 class="text-danger">Your cart is empty.</h2>
<?php }?>