data.blade.php 2.5 KB

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