data.blade.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <table class="table table-striped table-bordered table-hover dataTables-example dataTable">
  2. <thead>
  3. <tr>
  4. <th>
  5. <label><input type="checkbox" id="checkAll"> 本页</label>
  6. <label><input type="checkbox" id="checkTotal"> 全部</label>
  7. </th>
  8. <th class="sorting" data-sort="id"> ID</th>
  9. <th class="sorting" data-sort="phone"> 电话号码</th>
  10. <th class="sorting" data-sort="ip"> 拨打IP</th>
  11. <th class="sorting" data-sort="sync"> 是否同步到拨打列表:</th>
  12. <th class="sorting" data-sort="sync"> 标签:</th>
  13. <th class="sorting" data-sort="created_at"> 添加时间</th>
  14. <th class="sorting" data-sort="updated_at"> 更新时间</th>
  15. <th width="22%">相关操作</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. @if(isset($list))
  20. @foreach($list as $key => $item)
  21. <tr>
  22. <td>
  23. <label><input class="calllist" name='calllist_id[]' type="checkbox"
  24. value="{{ $item->id }}" data-id="{{ $item->id }}"></label>
  25. </td>
  26. <td>{{ $item->id }}</td>
  27. <td>{{ $item->phone }}</td>
  28. <td>{{ $item->ip }}</td>
  29. <td>{{ dict()->get('call_list','sync',$item->sync) }}</td>
  30. <td>{{ $item->label }}</td>
  31. <td>{{ $item->created_at }}</td>
  32. <td>{{ $item->updated_at }}</td>
  33. <td>
  34. @if(role('Call/List/destroy'))
  35. <a class="btn btn-sm btn-danger"
  36. href="{{ U('Call/List/destroy',['id'=>$item->id])}}"
  37. onclick="return confirm('你确定执行删除操作?');">删除</a>
  38. @endif
  39. </td>
  40. </tr>
  41. @endforeach
  42. @endif
  43. </tbody>
  44. </table>
  45. <div class="row">
  46. <div class="col-sm-6">
  47. <div class="dataTables_info" id="DataTables_Table_0_info"
  48. role="alert" aria-live="polite" aria-relevant="all">每页{{ $list->count() }}
  49. 条,共{{ $list->lastPage() }}页,总{{ $list->total() }}条。
  50. </div>
  51. </div>
  52. <div class="col-sm-6">
  53. <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
  54. {!! $list->setPath('')->appends(Request::all())->render() !!}
  55. </div>
  56. </div>
  57. </div>