<section id="promotionalOffer">
    <?php if (!empty(getDiscountPromo())): ?>
        <div class="adds discount-plan">
            <!--- Dynamic Offer Block--->
            <?php foreach (getDiscountPromo() as $aSideDiscountPlan): ?>
                <?php if (in_array(6, unserialize($aSideDiscountPlan->onapp))): ?>
                    <div class="text-center block-adds adds-inner">
                        <div class="dynamic-adds">
                            <div class="offer-title"style="font-size:35px;"><?php echo $aSideDiscountPlan->title ?></div>
                            <div class="offer-description">
                                <!--<div class="on-factor">Use code <?php echo $aSideDiscountPlan->promocode ?> and Enjoy <?php $aSideDiscountPlan->onfunc === '2' ? print $aSideDiscountPlan->discount . '%' : print to_currency($aSideDiscountPlan->discount) ?> discount <br/> for minimum order amount <?php echo to_currency($aSideDiscountPlan->min_order) ?></div>-->
                                <div class="on-factor" style="font-size:20px;"> <span style="font-size:30px"><?php $aSideDiscountPlan->onfunc === '2' ? print $aSideDiscountPlan->discount . '%' : print to_currency($aSideDiscountPlan->discount) ?> Discount </span><br/> Use Code: <?php echo $aSideDiscountPlan->promocode ?> <br/> Minimum Order: <?php echo to_currency($aSideDiscountPlan->min_order) ?></div>
                                <div class="on-factor" style="font-size:25px">
                                    <?php if (in_array(4, unserialize($aSideDiscountPlan->onapp))): ?>
                                        <span>(Delivery</strong></span>
                                    <?php endif; ?>
                                    <?php if (in_array(5, unserialize($aSideDiscountPlan->onapp))): ?>
                                        <span>and Collection)</span>
                                    <?php endif; ?>
                                </div>
                                <!--<div class="on-factor">
                                    <?php $addsSideDiscountPlanDaysArray = array('1' => 'Sun', '2' => 'Mon', '3' => 'Tue', '4' => 'Wed', '5' => 'Thu', '6' => 'Fri', '7' => 'Sat') ?>
                                    <?php foreach (unserialize($aSideDiscountPlan->onday) as $aday): ?>
                                        <?php echo $addsSideDiscountPlanDaysArray[$aday] ?>
                                    <?php endforeach; ?>
                                </div>
                                <div class="on-factor text-uppercase"><?php echo $aSideDiscountPlan->start_time . ' - ' . $aSideDiscountPlan->end_time ?></div>-->
                            </div>
                        </div>
                    </div> 
                <?php endif; ?>
            <?php endforeach; ?>
            <!--- Static Offer Block--->
         <!--<div class="block text-center text-capitalize"><img src="<?php echo RESOURCES_PATH ?>images/voucher-disc.jpg"></div>-->
        </div>
    <?php endif; ?>
   <!-- <div class="v-gap-10"></div>-->
</section>