<?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">  
    			<div>
    				<a href="shops/<?php echo $this->uri->segment(2); ?>/shop-transaction">Back to Transaction List.</a><br /><br />
                </div>
				<table class="tab_form_list_table">
                    <thead>
                        <tr class="table-header">
                            <th class="date-wid">Image</th>
                            <th class="list-heading">Product Name<span class="sort-arrow"></span></th>   
                            <th class="price-wid"><span>Price</span></th>     
                            <th class="list-wid"><span>Quantity</span></th>    
                            <th class="date-wid">Listed<span class="sort-arrow"></span></th>
                           	<th class="date-wid">Status<span class="sort-arrow"></span></th>
                            <th class="date-wid">Action<span class="sort-arrow"></span></th>
                           <!--<th class="listgap"></th>-->
                        </tr>
                    </thead>
                    <tbody>
                    	<?php foreach($productList->result() as $product){ ?>
                        <?php $imgArr=explode(',',$product->image); ?>
                        <tr class="row-1 odd">
                            <td class="">
                                <div class="">
                                    <a class="list-image12" title="<?php echo $product->product_name; ?>" href="products/<?php echo $product->seourl; ?>">
                                        <img class="" width="75" height="75" alt="<?php echo $product->product_name; ?>" src="images/product/list-image/<?php echo $imgArr[0]; ?>">
                                    </a>
                                </div>
                            </td>        
                            <td class=""><?php echo $product->product_name; ?></td>        
                            <td class="" align="center">
                                <span class="dolar-symbol"><?php echo $currencySymbol;?></span>
                                <span class="dolar-value"><?php if($product->price != 0.00) { echo number_format($currencyValue*$product->price,2); } else { echo number_format($currencyValue*$product->pricing,2); echo '+'; } ?></span>
                                <span class="dolar-code"><?php echo $currencyType;?></span>
                            </td>
                            <td class="" align="center"><?php echo $product->quantity; ?></td>
                            <td class="" align="center"><?php echo substr($product->created,0,10); ?></td>
                            <td class="" align="center"><?php echo $product->status; ?></td>
                            <td class="" align="center">
                                <ul>
                                   <li style="text-align:center !important;"><a title="View" href="products/<?php echo $product->seourl; ?>">View</a></li>
                                </ul>
                            </td>
                        </tr>
                        <?php } ?>
                    </tbody>
                 </table>
	</div>
</div>                 
<?php $this->load->view('site/templates/footer'); ?>