data.blade.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 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="contacts" name='contact_phone[]' type="checkbox"
  24. value="{{ $item->phone }}" data-id="{{ $item->id }}"></label>
  25. </td>
  26. <td>{{ $item->id }}</td>
  27. <td>{{ $item->phone }}</td>
  28. <td>{{ $item->start_time }}</td>
  29. <td>{{ $item->end_time }}</td>
  30. <td>{{ $item->intention }}</td>
  31. <td>{{ $item->term_status }}</td>
  32. <td>{{ $item->hangup_dispostion }}</td>
  33. <td>{{ $item->ip }}</td>
  34. <td>
  35. @if(role('Call/Records/view'))
  36. <button onclick="layer.open({type: 2,area: ['80%', '90%'],content: '{{ U('Call/Records/view',['id'=>$item->id])}}'});"
  37. class="btn btn-sm btn-primary ">对话纪录
  38. </button>
  39. @endif
  40. </td>
  41. </tr>
  42. @endforeach
  43. @endif
  44. </tbody>
  45. </table>
  46. <div class="row">
  47. <div class="col-sm-6">
  48. <div class="dataTables_info" id="DataTables_Table_0_info"
  49. role="alert" aria-live="polite" aria-relevant="all">每页{{ $list->count() }}
  50. 条,共{{ $list->lastPage() }}页,总{{ $list->total() }}条。
  51. </div>
  52. </div>
  53. <div class="col-sm-6">
  54. <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
  55. {!! $list->setPath('')->appends(Request::all())->render() !!}
  56. </div>
  57. </div>
  58. </div>