data.blade.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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="start_time"> 拨打时间</th>
  11. <th class="sorting" data-sort="end_time"> 结束时间</th>
  12. <th class="sorting" data-sort="intention"> 意向</th>
  13. <th class="sorting" data-sort="term_status"> 接通状态</th>
  14. <th class="sorting" data-sort="hangup_dispostion"> 挂断原因</th>
  15. <th class="sorting" data-sort="ip"> 拨打IP</th>
  16. <th class="sorting" data-sort="tag"> 机器人标签</th>
  17. <th width="22%">相关操作</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. @if(isset($list))
  22. @foreach($list as $key => $item)
  23. <tr>
  24. <td>
  25. <label><input class="contacts" name='contact_phone[]' type="checkbox"
  26. value="{{ $item->phone }}" data-id="{{ $item->id }}"></label>
  27. </td>
  28. <td>{{ $item->id }}</td>
  29. <td>{{ $item->phone }}</td>
  30. <td>{{ $item->start_time }}</td>
  31. <td>{{ $item->end_time }}</td>
  32. <td>{{ $item->intention }}</td>
  33. <td>{{ $item->term_status }}</td>
  34. <td>{{ $item->hangup_dispostion }}</td>
  35. <td>{{ $item->ip }}</td>
  36. <td>{{ $item->tag }}</td>
  37. <td>
  38. @if(role('Call/Records/view'))
  39. <button onclick="layer.open({type: 2,area: ['80%', '90%'],content: '{{ U('Call/Records/view',['id'=>$item->id])}}'});"
  40. class="btn btn-sm btn-primary ">对话纪录
  41. </button>
  42. @endif
  43. </td>
  44. </tr>
  45. @endforeach
  46. @endif
  47. </tbody>
  48. </table>
  49. <div class="row">
  50. <div class="col-sm-6">
  51. <div class="dataTables_info" id="DataTables_Table_0_info"
  52. role="alert" aria-live="polite" aria-relevant="all">每页{{ $list->count() }}
  53. 条,共{{ $list->lastPage() }}页,总{{ $list->total() }}条。
  54. </div>
  55. </div>
  56. <div class="col-sm-6">
  57. <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
  58. {!! $list->setPath('')->appends(Request::all())->render() !!}
  59. </div>
  60. </div>
  61. </div>