<?php
/* Smarty version 5.4.2, created on 2024-11-26 09:06:53
  from 'file:../default/client_ajax_shopping_cart.tpl' */

/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
  'version' => '5.4.2',
  'unifunc' => 'content_6745d5fd0a29e6_56496400',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'bca13102be261883fdce5158ed7326ad42028e4b' => 
    array (
      0 => '../default/client_ajax_shopping_cart.tpl',
      1 => 1730635717,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
))) {
function content_6745d5fd0a29e6_56496400 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/Users/razib/Herd/suite/ui/theme/default';
?>

<div class="panel">
    <div>

        <div class="panel-hdr">
            <h2><?php echo $_smarty_tpl->getValue('_L')['Shopping Cart'];?>
</h2>
        </div>
        <?php if ($_smarty_tpl->getValue('cart') && $_smarty_tpl->getValue('cart')->item_count > 0) {?>

            <div>



                        <?php
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('items'), 'item');
$foreach0DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('item')->value) {
$foreach0DoElse = false;
?>
                            <div class="panel-container">
                                <div class="panel-content">
                                    <div>
                                        <div class="top-cart-item-image mb-2">
                                            <a href="#"><img src="<?php echo Cart::getItemImage($_smarty_tpl->getValue('item')['id']);?>
" alt="Blue Shoulder Bag" class="img-fluid"></a>
                                        </div>
                                        <div class="top-cart-item-desc">
                                            <a href="#" class="t400"><span class="txt_cart_item_name"><?php echo $_smarty_tpl->getSmarty()->getModifierCallback('strTrunc')($_smarty_tpl->getValue('item')['name']);?>
</span></a>

                                            <span class="top-cart-item-price"><?php echo $_smarty_tpl->getSmarty()->getModifierCallback('ib_money_format')($_smarty_tpl->getValue('item')['price'],$_smarty_tpl->getValue('config'));?>
 [Total: <?php echo $_smarty_tpl->getSmarty()->getModifierCallback('ib_money_format')($_smarty_tpl->getValue('item')['price']*$_smarty_tpl->getValue('item')['qty'],$_smarty_tpl->getValue('config'));?>
]</span>
                                            <span class="top-cart-item-quantity">x <?php echo $_smarty_tpl->getValue('item')['qty'];?>
</span>
                                        </div>
                                    </div>



                                </div>
                            </div>





                        <?php
}
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>




            </div>
            <div class="panel-container">
                <div class="panel-content">
                    <div class="top-cart-action clearfix" style="padding-bottom: 0;">

                        <span class="top-checkout-price t600 h3 text-end pull-right" style="color: #333;"><?php echo $_smarty_tpl->getValue('_L')['Total'];?>
: <?php echo $_smarty_tpl->getSmarty()->getModifierCallback('ib_money_format')($_smarty_tpl->getValue('cart')->total,$_smarty_tpl->getValue('config'));?>
</span>





                    </div>
                </div>
            </div>






            <hr>
            <div class="panel-container">
                <div class="panel-content">
                    <a class="btn btn-danger text-end" href="<?php echo $_smarty_tpl->getValue('_url');?>
cart/clear">Clear</a>
                    <a class="btn btn-primary text-end pull-right" href="<?php echo $_smarty_tpl->getValue('_url');?>
cart/checkout">Checkout</a>

                    <?php } else { ?>

                    <p class="text-center" style="margin-top: 20px;"><?php echo $_smarty_tpl->getValue('_L')['Your Cart is empty'];?>
</p>

                    <hr>

                    <?php }?>
                </div>
            </div>



    </div>
</div>


<?php }
}
