data.blade.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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="companyName"> 企业名称</th>
  6. <th class="sorting" data-sort="orgNo"> 组织机构代码</th>
  7. <th class="sorting" data-sort="legalPerson"> 法人</th>
  8. <th class="sorting" data-sort="openStatus"> 经营状态</th>
  9. <th class="sorting" data-sort="startDate"> 成立日期</th>
  10. <th class="sorting" data-sort="regCapital"> 注册资本(万元)</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>{{ $item->companyName }}</td>
  20. <td>{{ $item->orgNo }}</td>
  21. <td>{{ $item->legalPerson }}</td>
  22. <td>{{ $item->openStatus }}</td>
  23. <td>{{ $item->startDate }}</td>
  24. <td>{{ $item->regCapital }}</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>