| 13762 |
anikendra |
1 |
<div class="container">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<?php if(!empty($orders)):?>
|
|
|
4 |
<?php foreach ($orders as $key => $order):?>
|
|
|
5 |
<?php if(!empty($order['subOrders'])):?>
|
|
|
6 |
<?php $counter = 0;?>
|
|
|
7 |
<?php foreach ($order['subOrders'] as $key => $suborder):?>
|
|
|
8 |
<?php if($suborder['cashBackStatus']=='Not Applicable'){continue;}else{$counter++;};?>
|
|
|
9 |
<div class="row card">
|
|
|
10 |
<div class="col-xs-4 pull-left">
|
|
|
11 |
<span class="cashbackrupee"></span>
|
|
|
12 |
<span class="cashback"><?php echo $suborder['cashBackAmount'];?></span>
|
|
|
13 |
</div>
|
|
|
14 |
<div class="col-xs-8">
|
|
|
15 |
<p>Order No : <b><?php echo $suborder['merchantSubOrderId'];?></b></p>
|
|
|
16 |
<div class="row">
|
|
|
17 |
<div class="col-xs-6 ordercontrols pull-right">
|
|
|
18 |
<a href="/tickets/add/<?php echo $suborder['merchantSubOrderId'];?>"><button class="pull-right btn btn-sm orderstatus" type="button">Raise Ticket</button></a>
|
|
|
19 |
</div>
|
|
|
20 |
</div>
|
|
|
21 |
</div>
|
|
|
22 |
</div>
|
|
|
23 |
<?php endforeach;?>
|
|
|
24 |
<?php endif;?>
|
|
|
25 |
<?php endforeach;?>
|
|
|
26 |
<?php else:?>
|
|
|
27 |
<h3>You haven't placed any orders till now</h3>
|
|
|
28 |
<?php endif;?>
|
|
|
29 |
<?php if($counter==0):?>
|
|
|
30 |
<h3>No pending cashbacks</h3>
|
|
|
31 |
<?php endif;?>
|
|
|
32 |
</div>
|
|
|
33 |
</div>
|