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


<section id="middle">

    <!-- page title -->
    <header id="page-header">
        <h1>Content</h1>
        <ol class="breadcrumb">
            <li><a href="#">Content</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>Contact 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>
                            For
                        </th>
                        <th>
                            Visitor name
                        </th>
                        <th class="hidden-xs">
                            Email
                        </th>
                        <th class="hidden-xs">
                            Phone
                        </th>
                        <th class="hidden-xs">
                            Subject
                        </th>
                        <th class="hidden-xs">
                            Message
                        </th>
                        <th class="hidden-xs">
                            Department
                        </th>
                        <th class="hidden-xs">
                            Attached file
                        </th>
                        <th class="hidden-xs">
                            Action
                        </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->for?>
                            </td>
                            <td align="center">
                                <?php echo $value->full_name?>
                            </td>
                            <td align="center">
                                <?php echo $value->email?>
                            </td>
                            <td align="center">
                                <?php echo $value->phone?>
                            </td>
                            <td align="center">
                                <?php echo $value->subject?>
                            </td>
                            <td align="center">
                                <?php echo $value->message?>
                            </td>
                            <td align="center">
                                <?php echo $value->department?>
                            </td>
                            <td align="center">
                                <?php echo $value->filepath?>
<!--                                --><?php //if($value->filepath!=""){ ?>
<!--                                <a href="--><?php //echo base_url()?><!--" class="btn btn-green" title="View" ><i class="fa fa-pencil-square-o"></i>file</a>-->
<!--                                --><?php //}?>
                            </td>
                            <td align="center">
                                <a href="<?php echo base_url()?>content/form/<?php echo $value->id?>" class="btn btn-yellow" data-toggle="tooltip" title="View" data-placement="bottom"><i class="fa fa-pencil-square-o"></i>Edit</a>
                            </td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

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

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


    </div>
</section>