<?php $freeDishOffer = getFreeDishOffer($this->session->userdata('branch') ? $this->session->userdata('branch') : '1') ?>
<?php if (!empty($freeDishOffer)): ?>
    <section id="freeDishOffer">
        <div class="adds discount-plan">
            <div class="text-center  adds-inner">
                <div class="dynamic-adds">
                    <div class="offer-title">Free Dish Offer !</div>
                    <div class="offer-description">
                        <?php foreach ($freeDishOffer as $freeDish): ?>
                            <div class="on-factor text-capitalize">
                                Order Minimum amount <?php echo to_currency($freeDish->order) ?> and get <?php echo $freeDish->qty ?>  <?php echo $freeDish->title ?> free on <?php in_array('delivery', $freeDish->type) ? print 'Delivery' : '' ?>  <?php in_array('collection', $freeDish->type) ? print 'Collection' : '' ?>
                            </div>
                        <?php endforeach; ?>
                    </div>
                </div>
            </div>
        </div>
    </section>
<?php endif; ?>