<?php 
$this->load->view('site/templates/commonheader');
$this->load->view('site/templates/shop_header'); 
?>
<div style="background:none repeat scroll 0 0 #FFFFFF;border-bottom:1px solid #DDDDDD;border-top:1px solid #DDDDDD;padding: 20px 0;" class="add_shop">
    <div class="main">    			
                <?php
					if (count($shop_trans_details) > 0){						
				?>
                <form class="tab_form_list">
                     <table class="tab_form_list_table" align="center" width="100">
                        <thead>     
                            <tr class="table-header">
                                <th><span>Tranaction Mode</span></th>
                                <th><span>Tranaction Date</span></th>        
                                <th><span>Tranaction Amount</span></th>        
                                <th><span>Number of Products</span></th>        
                                <th><span>Action</span></th> 
                            </tr>
                        </thead>
                        <tbody align="center">          
                        <?php foreach ($shop_trans_details as $details){ ?>          
                            <tr>                            
                                <td><?php echo $details['pay_type'];?></td>        
                                <td><?php echo $details['pay_date'];?></td>        
                                <td><?php echo $currencySymbol.' '.number_format($currencyValue*$details['pay_amount'],2);?></td>
                                <td><?php echo $details['totPrd'];?></td>
                                <td><a href="shops/<?php echo $this->uri->segment(2,0); ?>/view-transaction/<?php echo strtotime($details['pay_date']);?>" title="View">View</a></td>
                            </tr>
                        <?php } ?>
                        </tbody>
                     </table>     
                 </form>
        		<?php }else{ ?>
                <div class=" warning-error">
                    <h3>
                        <span style="margin:0 0 0 3px; color:#000; font-weight:bold">No Transaction in your Shop yet.</span>
                    </h3>
                </div>
                <?php } ?>
    </div>
</div>
<?php $this->load->view('site/templates/footer'); ?>