data.blade.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <table class="table table-striped table-bordered table-hover dataTables-example dataTable">
  2. <thead>
  3. <tr>
  4. <th><label><input type="checkbox" id="checkAll"> 全选</label>
  5. </th>
  6. <th class="sorting" data-sort="id"> ID</th>
  7. <th class="sorting" data-sort="phone"> 电话号码</th>
  8. <th class="sorting" data-sort="start_time"> 拨打时间</th>
  9. <th class="sorting" data-sort="end_time"> 结束时间</th>
  10. <th class="sorting" data-sort="intention"> 意向</th>
  11. <th class="sorting" data-sort="term_status"> 接通状态</th>
  12. <th class="sorting" data-sort="hangup_dispostion"> 挂断原因</th>
  13. <th class="sorting" data-sort="ip"> 拨打IP</th>
  14. <th width="22%">相关操作</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. @if(isset($list))
  19. @foreach($list as $key => $item)
  20. <tr>
  21. <td>
  22. <label><input class="contacts" name='contact_phone[]' type="checkbox"
  23. value="{{ $item->phone }}"></label>
  24. </td>
  25. <td>{{ $item->id }}</td>
  26. <td>{{ $item->phone }}</td>
  27. <td>{{ $item->start_time }}</td>
  28. <td>{{ $item->end_time }}</td>
  29. <td>{{ $item->intention }}</td>
  30. <td>{{ $item->term_status }}</td>
  31. <td>{{ $item->hangup_dispostion }}</td>
  32. <td>{{ $item->ip }}</td>
  33. <td>
  34. @if(role('Call/Records/view'))
  35. <button onclick="layer.open({type: 2,area: ['80%', '90%'],content: '{{ U('Call/Records/view',['id'=>$item->id])}}'});"
  36. class="btn btn-sm btn-primary ">对话纪录
  37. </button>
  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>