index.blade.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. @extends('admin.layout')
  2. @section('content')
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-title">
  7. <h5>评论</h5>
  8. <div class="ibox-tools">
  9. <a class="collapse-link"> <i class="fa fa-chevron-up"></i>
  10. </a>
  11. </div>
  12. </div>
  13. <div class="ibox-content">
  14. <div class="row">
  15. {{-- <form method="GET" action="" accept-charset="UTF-8">
  16. <div class="col-sm-4">
  17. <div class="input-group">
  18. <input type="text" value="{{Request::get('keyword')}}" placeholder="请输入关键词" name="keyword"class="input-sm form-control">
  19. <span class="input-group-btn">
  20. <button type="submit" class="btn btn-sm btn-primary">搜索</button>
  21. </span>
  22. </div>
  23. </div>
  24. </form>--}}
  25. </div>
  26. <table class="table table-striped table-bordered table-hover dataTables-example dataTable">
  27. <thead>
  28. <tr>
  29. <th class="sorting" data-sort="id"> ID </th>
  30. <th > 用户 </th>
  31. <th > 地标 </th>
  32. <th width="22%">相关操作</th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. @if(isset($list))
  37. @foreach($list as $key => $item) <tr>
  38. <td>{{ $item->id }}</td>
  39. <td>{{ $item->user }}</td>
  40. <td>{{ $item->mark }}</td>
  41. <td>
  42. <div class="btn-group">
  43. <button data-toggle="dropdown"
  44. class="btn btn-warning btn-sm dropdown-toggle"
  45. aria-expanded="false">
  46. 操作 <span class="caret"></span>
  47. </button>
  48. <ul class="dropdown-menu">
  49. @if(role('Map/Message/destroy'))
  50. <li class="divider"></li>
  51. <li><a href="{{ U('Map/Message/destroy',['id'=>$item->id])}}" onclick="return confirm('你确定执行删除操作?');">删除</a></li>
  52. @endif
  53. </ul>
  54. </div>
  55. @if(role('Map/Message/view'))
  56. <button onclick="layer.open({type: 2,area: ['80%', '90%'],content: '{{ U('Map/Message/view',['id'=>$item->id])}}'});" class="btn btn-primary ">查看</button>
  57. @endif
  58. </td>
  59. </tr>
  60. @endforeach
  61. @endif
  62. </tbody>
  63. </table>
  64. <div class="row">
  65. <div class="col-sm-6">
  66. <div class="dataTables_info" id="DataTables_Table_0_info"
  67. role="alert" aria-live="polite" aria-relevant="all">每页{{ $list->count() }}条,共{{ $list->lastPage() }}页,总{{ $list->total() }}条。</div>
  68. </div>
  69. <div class="col-sm-6">
  70. <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
  71. {!! $list->setPath('')->appends(Request::all())->render() !!}
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. @endsection