<?php $__env->startSection('title'); ?> Danh sách thành viên <?php $__env->stopSection(); ?>



<?php $__env->startSection('content'); ?>



<div class="">



  <div class="form-group">



    <a class="btn btn-success" href="<?php echo e(url('admin/add-user')); ?>">Thêm thành viên</a>



    <input class="btn btn-danger" type="submit" name="delall" value="Xóa">



  </div>



  <div class="clearfix"></div>



  <div class="row">



    <div class="col-md-12 col-sm-12 col-xs-12">



      <div class="x_panel">



        <div class="x_title">



          <h2>Danh sách thành viên</h2>



          <ul class="nav navbar-right panel_toolbox">



            <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li>



            <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>



              <ul class="dropdown-menu" role="menu">



                <li><a href="#">Settings 1</a> </li>



                <li><a href="#">Settings 2</a> </li>



              </ul>



            </li>



            <li><a class="close-link"><i class="fa fa-close"></i></a> </li>



          </ul>



          <div class="clearfix"></div>



        </div>



        <div class="x_content table-responsive">



          <p class="text-muted font-13 m-b-30"> <?php echo $__env->make('errors.note', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> </p>



          <table id="datatable" class="table table-striped jambo_table bulk_action">



            <thead>



              <tr>



                <th> 



                  <th><input type="checkbox" id="check-all" class="flat"></th>



                </th>



                <th>Tên</th>



                <th>Account</th>



                <th>Chức vụ</th>



                <th>Avatar</th>



                <th>Email</th>



                <th>Điện thoại</th>



                <th>Action</th>



              </tr>



            </thead>



            <tbody>



            <?php foreach($all_user as $items): ?>



            <?php if($items->id > 1): ?>



              <tr>



                <td>



                  <th><input type="checkbox" id="check-all" class="flat"></th>



                </td>



                <td><?php echo e($items->name); ?></td>



                <td><?php echo e($items->account); ?></td>



                <td><?php if($items->level == 1): ?> Admin <?php elseif($items->level == 2): ?> Editor <?php elseif($items->level == 3): ?> Author <?php elseif($items->level == 4): ?> Contributor <?php else: ?> Subcriber <?php endif; ?></td>



                <td><?php if($items->thumb != ""): ?> <img class="img-thumbnail" style="max-width: 150px" src="<?php echo e(url($items->thumb)); ?>"> <?php endif; ?></td>



                <td><?php echo e($items->email); ?></td>



                <td><?php echo e($items->phone); ?></td>



                <td>



                <?php if(Session::get('user')->user == 1 && $items->id != 1): ?>



                  <a href="<?php echo e(url('admin/edit-user/'.$items->id)); ?>" class="btn btn-xs btn-warning"><span class="glyphicon glyphicon-edit"></span></a>



                  <a href="<?php echo e(url('admin/remove-user/'.$items->id)); ?>" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-remove"></span></a>



                <?php endif; ?>



                </td>



              </tr>



            <?php endif; ?>



            <?php endforeach; ?>



            </tbody>



          </table>



        </div>



      </div>



    </div>



  </div>



</div>



<?php $__env->stopSection(); ?>



<?php echo $__env->make('admin.layout.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>