index.blade.php 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. @extends('admin/public/layout')
  2. @section('title')角色管理@endsection
  3. @section('content')
  4. <section class="content-header">
  5. <h1>
  6. 角色管理
  7. <small>管理系统所有角色</small>
  8. </h1>
  9. </section>
  10. <section class="content">
  11. <div class="row">
  12. <div class="col-xs-12">
  13. <div class="box">
  14. <div class="box-header">
  15. <div class="row">
  16. <div class="col-xs-2">
  17. <div class="btn-group">
  18. <a href="{{ route('admin.role.create') }}" class="btn btn-default btn-sm" data-toggle="tooltip" title="创建新角色"><i class="fa fa-plus"></i></a>
  19. {{--<button class="btn btn-default btn-sm" data-toggle="tooltip" title="删除选中项" onclick="confirm_delete('确认删除选中项?')"><i class="fa fa-trash-o"></i></button>--}}
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="box-body no-padding">
  25. <form name="itemForm" id="item_form" method="POST" action="{{ route('admin.role.destroy') }}">
  26. <input type="hidden" name="_token" value="{{ csrf_token() }}">
  27. <div class="table-responsive">
  28. <table class="table table-striped">
  29. <tr>
  30. {{--<th><input type="checkbox" class="checkbox-toggle" /></th>--}}
  31. <th>角色名称</th>
  32. <th>唯一标示</th>
  33. <th>创建时间</th>
  34. <th>更新时间</th>
  35. <th>操作</th>
  36. </tr>
  37. @foreach($roles as $role)
  38. <tr>
  39. {{--<td><input type="checkbox" name="id[]" value="{{ $role->id }}"/></td>--}}
  40. <td>{{ $role->name }}</td>
  41. <td>{{ $role->slug }}</td>
  42. <td>{{ $role->created_at }}</td>
  43. <td>{{ $role->updated_at }}</td>
  44. <td>
  45. <div class="btn-group-xs" >
  46. <a class="btn btn-default" href="{{ route('admin.role.edit',['id'=>$role->id]) }}" data-toggle="tooltip" title="编辑"><i class="fa fa-edit"></i></a>
  47. </div>
  48. </td>
  49. </tr>
  50. @endforeach
  51. </table>
  52. </div>
  53. </form>
  54. </div>
  55. <div class="box-footer clearfix text-right">
  56. {!! str_replace('/?', '?', $roles->render()) !!}
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </section>
  62. @endsection
  63. @section('script')
  64. <script type="text/javascript">
  65. set_active_menu('admin',"{{ route('admin.role.index') }}");
  66. </script>
  67. @endsection