<!-- MENU NAVBAR HEADER-->
<?php echo Modules::run('menuadmin/menubyactive',4);?>
<!-- /MENU NAVBAR HEADER -->


<section id="middle">

    <!-- page title -->
    <header id="page-header">
        <h1>Feature</h1>
        <ol class="breadcrumb">
            <li><a href="#">Feature</a></li>
            <li class="active">List</li>
        </ol>
    </header>
    <!-- /page title -->

    <div id="content" class="padding-20">

        <!--
						PANEL CLASSES:
							panel-default
							panel-danger
							panel-warning
							panel-info
							panel-success

						INFO: 	panel collapse - stored on user localStorage (handled by app.js _panels() function).
								All pannels should have an unique ID or the panel collapse status will not be stored!
					-->
        <div id="panel-5" class="panel panel-default">
            <div class="panel-heading">
							<span class="title elipsis">
								<strong>Feature List</strong> <!-- panel title -->
							</span>

                <!-- right options -->
                <ul class="options pull-right list-inline">
                    <li><a href="#" class="opt panel_colapse" data-toggle="tooltip" title="Colapse" data-placement="bottom"></a></li>
                    <li><a href="#" class="opt panel_fullscreen hidden-xs" data-toggle="tooltip" title="Fullscreen" data-placement="bottom"><i class="fa fa-expand"></i></a></li>
                    <li><a href="#" class="opt panel_close" data-confirm-title="Confirm" data-confirm-message="Are you sure you want to remove this panel?" data-toggle="tooltip" title="Close" data-placement="bottom"><i class="fa fa-times"></i></a></li>
                </ul>
                <!-- /right options -->

            </div>

            <!-- panel content -->
            <div class="panel-body">

                <table class="table table-striped table-bordered table-hover" id="sample_5">
                    <thead>
                    <tr>
                        <th>
                            ID
                        </th>
                        <th>
                            Code
                        </th>
                        <th class="hidden-xs">
                            Title
                        </th>
                        <th class="hidden-xs">
                            Thumbnail1
                        </th>
                        <th class="hidden-xs">
                            Thumbnail2
                        </th>
                        <th class="hidden-xs">
                            Price
                        </th>
                        <th class="hidden-xs">
                            Category
                        </th>
                        <th class="hidden-xs">
                            In Stock
                        </th>
                        <th class="hidden-xs">
                            Order
                        </th>
                        <th class="hidden-xs">
                            Is Active
                        </th>
                        <th class="hidden-xs">
                            Action
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach(@$lists as $key =>$value){ ?>
                        <tr>
                            <td align="center">
<!--                                --><?php //pre($value)?>
                                <?php echo @$value->id?>
                            </td>
                            <td align="center">
                                <?php echo @$value->product->code?>
                            </td>
                            <td align="center">
                                <?php echo @$value->product->title_en?>
                            </td>
                            <td align="center">
                                <img  src="<?php echo base_url().IMAGE_PATH.@$value->product->thumbnail1_image?>" width="200">
                            </td>
                            <td align="center">
                                <img  src="<?php echo base_url().IMAGE_PATH.@$value->product->thumbnail2_image?>" width="200">
                            </td>
                            <td align="center">
                                <?php echo @$value->product->price?>
                            </td>
                            <td align="center">
                                <?php echo @$value->product->category->title_en?>
                            </td>
                            <td align="center">
                                <?php echo @$value->product->in_stock?>
                            </td>
                            <td align="center">
                                <?php echo @$value->order?>
                            </td>
                            <td align="center">
                                <span class="label label-<?php echo @$value->is_active=='Y'?"success":"danger"?>"><?php echo @$value->is_active?> </span>
                            </td>
                            <td align="center">
                                <a href="<?php echo base_url()?>feature/form/<?php echo @$value->id?>" class="btn btn-yellow" data-toggle="tooltip" title="Edit" data-placement="bottom"><i class="fa fa-pencil-square-o"></i>Edit</a>
                                <a href="<?php echo base_url()?>feature/delete_item/<?php echo @$value->id?>" class="btn btn-red delete" data-confirm-title="Confirm" data-confirm-message="Are you sure you want to delete it?" title="Delete" data-placement="bottom"><i class="fa fa-times"></i>Delete</a>

                            </td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

            </div>
            <!-- /panel content -->

        </div>
        <!-- /PANEL -->


    </div>
</section>