| Line 1... |
Line 1... |
| 1 |
<div class="container">
|
1 |
<div class="container">
|
| 2 |
<div class="jumbotron">
|
2 |
<div class="row">
|
| 3 |
<?php App::uses('Debugger', 'Utility'); ?>
|
3 |
<?php if(!empty($deals)):?>
|
| 4 |
<h1>Mouth watering deals & cashback</h1>
|
4 |
<?php foreach($deals AS $deal):?>
|
| 5 |
<div class="row">
|
5 |
<div class="col-xs-6">
|
| - |
|
6 |
<?php //debug($deal);?>
|
| 6 |
<div class="col-lg-4 ">
|
7 |
<div class="product_image img img-responsive">
|
| - |
|
8 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $deal['StoreProduct']['thumbnail'];?>&h=120" data-id="<?php echo $deal['StoreProduct']['id'];?>">
|
| 7 |
<h2>Guaranteed cheapest price online</h2>
|
9 |
<ul class="product_actions list-unstyled">
|
| - |
|
10 |
<li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal">
|
| 8 |
<p>We bet, you can't find anything cheaper than this</p>
|
11 |
<button class="icon ion-heart"></button>
|
| 9 |
</div>
|
12 |
</li>
|
| 10 |
<div class="col-lg-4 ">
|
13 |
<li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal">
|
| 11 |
<h2>Personalized deals</h2>
|
14 |
<button class="icon ion-thumbsdown"></button>
|
| 12 |
<p>We will recommend you products that you would love to buy</p>
|
15 |
</li>
|
| 13 |
</div>
|
16 |
</ul>
|
| 14 |
<div class="col-lg-4 ">
|
17 |
</div>
|
| - |
|
18 |
<p class="product_name" ng-click="viewproduct(<?php echo $deal['StoreProduct']['id'];?>)"><?php echo $deal['StoreProduct']['title'];?></p>
|
| - |
|
19 |
<p class="product_short_description"><?php if(isset($deal['StoreProduct']['tagline']))echo $deal['StoreProduct']['tagline'];?></p>
|
| 15 |
<h2>Get cashback</h2>
|
20 |
<p class="product_prices">
|
| 16 |
<p>And if that's not enough, we'll give cashback for your purchase.</p>
|
21 |
<span class="rupee"></span><span class="product_price"><?php echo $deal['StoreProduct']['available_price'];?></span>
|
| - |
|
22 |
<?php if(isset($deal['StoreProduct']['cashback']) && !empty($deal['StoreProduct']['cashback'])):?><span class="product_cashback">(<span class="rupee"></span> <?php echo $deal['StoreProduct']['cashback'];?> Cashback)</span><?php endif;?>
|
| 17 |
</div>
|
23 |
</p>
|
| 18 |
</div>
|
24 |
</div>
|
| - |
|
25 |
<?php endforeach;?>
|
| 19 |
</div>
|
26 |
<?php endif;?>
|
| 20 |
</div>
|
27 |
</div>
|