<?php $discountMultiOffer = getDiscountMulti($this->session->userdata('branch') ? $this->session->userdata('branch') : '1') ?>
<?php //debugPrint($discountMultiOffer)   ?>
<?php if (!empty($discountMultiOffer)): ?>
    <section id="multiDiscountOffer">
        <div class="adds discount-plan">
            <div class="text-center  adds-inner">
                <div class="dynamic-adds">
                    <div class="offer-title">Item Multi Discount Offer</div>
                    <div class="offer-description">
                        <?php foreach ($discountMultiOffer as $aDiscountMultiOffer): ?>
                            <div class="on-factor text-capitalize">
                                Buy <?php echo $aDiscountMultiOffer->buy ?>  <?php $aDiscountMultiOffer->selection > 0 ? print get_title('menuselection', array('id' => $aDiscountMultiOffer->selection)) . '-' . get_title('table', array('id' => $aDiscountMultiOffer->menu)) : print get_title('menu', array('id' => $aDiscountMultiOffer->menu)) ?> and  get <?php echo $aDiscountMultiOffer->get ?> free on order minimum amount <?php echo to_currency($aDiscountMultiOffer->min_order) ?> on <?php in_array(4, unserialize($aDiscountMultiOffer->onapp)) ? print 'Delivery' : '' ?>  <?php in_array(5, unserialize($aDiscountMultiOffer->onapp)) ? print 'Collection' : '' ?>
                            </div>
                        <?php endforeach; ?>
                    </div>
                </div>
            </div>
        </div>
    </section>
<?php endif; ?>