You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.1 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. @extends('admin.layouts.app')
  2. @section('title', '角色管理')
  3. @section('content')
  4. <h2 class="sub-header">角色管理</h2>[ <a href="/fladmin/userrole/add">添加角色</a> ]<br><br>
  5. <form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
  6. <thead><tr>
  7. <th>ID</th>
  8. <th>角色名称</th>
  9. <th>角色描述</th>
  10. <th>状态</th>
  11. <th>管理</th>
  12. </tr></thead>
  13. <tbody>
  14. <?php if($posts){foreach($posts as $row){ ?><tr>
  15. <td><?php echo $row->id; ?></td>
  16. <td><?php echo $row->name; ?></td>
  17. <td><?php echo $row->des; ?></td>
  18. <td><?php if($row->status==0){echo '启用';}else{echo '禁用';} ?></td>
  19. <td><?php if($row->id<>1){ ?><a href="/fladmin/userrole/permissions?id=<?php echo $row->id; ?>">权限设置</a> | <?php } ?><a href="/fladmin/userrole/edit?id=<?php echo $row->id; ?>">修改</a><?php if($row->id<>1){ ?> | <a onclick="delconfirm('/fladmin/userrole/del?id=<?php echo $row->id; ?>')" href="javascript:;">删除</a><?php } ?></td>
  20. </tr><?php }} ?>
  21. </tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
  22. <nav aria-label="Page navigation">{{ $posts->links() }}</nav>
  23. @endsection