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


<section id="middle">

    <!-- page title -->
    <header id="page-header">
        <h1>Warranty</h1>
        <ol class="breadcrumb">
            <li><a href="#">Warranty</a></li>
            <li class="active">Lists</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>Warranty Lists</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>
                            Is Activated
                        </th>
                        <th class="hidden-xs">
                            Product Description
                        </th>
                        <th class="hidden-xs">
                            Purchased Shop
                        </th>
                        <th class="hidden-xs">
                            Purchased Date
                        </th>
                        <th class="hidden-xs">
                            Customer name
                        </th>
                        <th class="hidden-xs">
                            Customer Email
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach(@$lists as $key =>$value){ ?>
                        <tr>
                            <td align="center">
                                <?php echo $value->id?>
                            </td>
                            <td align="center">
                                <?php echo $value->warranty_code?>
                            </td>
                            <td align="center">
                                <?php echo $value->is_activated?>
                            </td>
                            <td align="center">
                                <?php echo $value->product_desc?>
                            </td>
                            <td align="center">
                                <?php $value->purchased_shop?>
                            </td>
                            <td align="center">
                                <?php echo $value->purchased_date?>
                            </td>
                            <td align="center">
                                <?php echo $value->customer_fname." ".$value->customer_lname?>
                            </td>
                            <td align="center">
                                <?php echo $value->customer_email?>
                            </td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

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

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


    </div>
</section>