<?php foreach($cate_pro as $item): ?>
<section class='moments off-color fade-in'>
  <div class='columns-10 section-center'>
    <header class='offer-header'>
      <h4><?php echo e($item->name); ?></h4>
      <a class='with-arrow upcase right' href='<?php echo e($item->alias); ?>'>View all Offer</a></header>
      <div class='columns columns-10 first-row'>
        <?php $i=0 ?>
        <?php foreach($product_home as $items): ?>
        <?php if($item->id == $items->to_cate && $items->id == $items->to_id): ?>
        <?php $i++ ?>
        <?php if($i==1): ?>
        <div class='columns-5 offer-box first-column first-row box-shadow'>
          <div class='promo-tile'><img src='<?php echo e($items->image); ?>' alt='<?php echo e($items->name); ?>'></div>
          <div class='info column columns-third first-row'>
            <h3 class='reverse multiline'><?php echo e($items->name); ?></h3>
            <div style='word-wrap: break-word;' class='richtext with-modal clipper'>
              <p style='margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; word-break: normal;'><?php echo $items->description; ?></p>
            </div>
            <a href='<?php echo e($items->alias); ?>' class='upcase with-arrow'>Read More</a></div>
          </div>
          <?php endif; ?>
          <?php endif; ?>
          <?php endforeach; ?>
          <ul class='column columns-5 offer-list-box first-row columns'>
            <?php $i=0 ?>
            <?php foreach($product_home as $items): ?>
            <?php if($item->id == $items->to_cate && $items->id == $items->to_id): ?>
            <?php $i++ ?>
            <?php if($i>1 && $i <=5): ?>
			<?php if($i%2==0): ?>
            <li class='column columns-half first-column first-row box-shadow promo-tile offer-image-0'><a href='<?php echo e($items->alias); ?>'><img src='<?php echo e($items->thumb); ?>'></a>
              <div class='info'><a href='<?php echo e($items->alias); ?>'>
                <h5 class='multiline reverse'><?php echo e($items->name); ?></h5>
              </a><a href='<?php echo e($items->alias); ?>' class='upcase with-arrow'>View Detail Offers</a></div>
            </li>
		    <?php else: ?>
		  	 <li class='column columns-half first-row box-shadow promo-tile offer-image-0'><a href='<?php echo e($items->alias); ?>'><img src='<?php echo e($items->thumb); ?>'></a>
              <div class='info'><a href='<?php echo e($items->alias); ?>'>
                <h5 class='multiline reverse'><?php echo e($items->name); ?></h5>
              </a><a href='<?php echo e($items->alias); ?>' class='upcase with-arrow'>View Detail Offers</a></div>
            </li>
		  	<?php endif; ?>
            <?php endif; ?>
            <?php endif; ?>
            <?php endforeach; ?>
          </ul>
        </div>
      </section>
      <?php endforeach; ?>