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 class="sorting" data-sort="id"> ID</th>
  5. <th class="sorting" data-sort="company_name"> 企业名称</th>
  6. <th class="sorting" data-sort="org_no"> 组织机构代码</th>
  7. <th class="sorting" data-sort="legal_person"> 法人</th>
  8. <th class="sorting" data-sort="open_status"> 经营状态</th>
  9. <th class="sorting" data-sort="start_date"> 成立日期</th>
  10. <th class="sorting" data-sort="reg_capital"> 注册资本(万元)</th>
  11. {{--<th width="22%">相关操作</th>--}}
  12. </tr>
  13. </thead>
  14. <tbody>
  15. @if(isset($list))
  16. @foreach($list as $key => $item)
  17. <tr>
  18. <td>{{ $item->id }}</td>
  19. <td><a href="{{ U('Company/Info/view',['id'=>$item->id])}}">{{ $item->company_name }}</a></td>
  20. <td>{{ $item->org_no }}</td>
  21. <td>{{ $item->legal_person }}</td>
  22. <td>{{ $item->open_status }}</td>
  23. <td>{{ $item->start_date }}</td>
  24. <td>{{ $item->reg_capital }}</td>
  25. {{--<td>--}}
  26. {{--@if(role('Company/Info/update') && !$item->isThread())--}}
  27. {{--<button class="btn btn-sm btn-success"--}}
  28. {{--onclick="window.location.href='{{ U('User/Threads/create',['company_id'=>$item->id])}}' ">--}}
  29. {{--领取线索--}}
  30. {{--</button>--}}
  31. {{--@endif--}}
  32. {{--@if(role('Company/Info/view'))--}}
  33. {{--<a href="{{ U('Company/Info/view',['id'=>$item->id])}}"--}}
  34. {{--class="btn btn-sm btn-primary "> 查看</a>--}}
  35. {{--@endif--}}
  36. {{--</td>--}}
  37. </tr>
  38. @endforeach
  39. @endif
  40. </tbody>
  41. </table>
  42. <div class="row">
  43. <div class="col-sm-6">
  44. <div class="dataTables_info" id="DataTables_Table_0_info"
  45. role="alert" aria-live="polite" aria-relevant="all">每页{{ $list->count() }}
  46. 条,共{{ $list->lastPage() }}页,总{{ $list->total() }}条。
  47. </div>
  48. </div>
  49. <div class="col-sm-6">
  50. <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
  51. {!! $list->setPath('')->appends(Request::all())->render() !!}
  52. </div>
  53. </div>
  54. </div>