index.blade.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @extends('admin.public.base')
  2. @section('body_class')
  3. style="margin: 0 auto;width: 96%;padding: 30px 0px;"
  4. @endsection
  5. @section('content')
  6. @if(check_auth('admin/custom_company/add'))
  7. @endif
  8. <form action="" method="get" class="form-horizontal form-line">
  9. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  10. <input type="text" class="form-control" name="custom_code" value="{{request('custom_code','')}}" maxlength="13" placeholder="请输入客户编码查询" />
  11. </div>
  12. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  13. <select name="status" class="form-control">
  14. <option value="0" @if (request('status',0) == '0' ) selected="selected" @endif >待审核</option>
  15. <option value="4" @if (request('status',0) == '4' ) selected="selected" @endif >已拒绝</option>
  16. <option value="8" @if (request('status',0) == '8' ) selected="selected" @endif >已通过</option>
  17. </select>
  18. </div>
  19. <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
  20. <a href="{{url('admin/custom_company/index')}}" class="btn btn-sm btn-default" >重置</a>
  21. </form>
  22. <div class="row">
  23. <div class="col-xs-12">
  24. <div class="table-responsive">
  25. <table class="table table-striped table-bordered table-hover">
  26. <thead>
  27. <tr>
  28. <th>ID</th>
  29. <th>客户编码</th>
  30. <th>客户昵称</th>
  31. <th>客户姓名</th>
  32. <th>终端名称</th>
  33. <th>公司全称</th>
  34. <th>营业执照</th>
  35. <th>注册地址</th>
  36. <th>法人代表</th>
  37. <th>资质状态</th>
  38. <th>创建时间</th>
  39. <th>操作</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. @foreach ($list as $a)
  44. <tr>
  45. <th>{{$a['id']}}</th>
  46. <th>{{$a['custom_code']}}</th>
  47. <th>{{$a['custom_name']}}</th>
  48. <td>{{$a['remark']}}</td>
  49. <td>{{$a['remark_company']}}</td>
  50. <td>{{$a['license_name']}}</td>
  51. <td>{{$a['license_code']}}</td>
  52. <td>{{$a['license_area']}}{{$a['license_addr']?'/'.$a['license_addr']:''}}</td>
  53. <td>{{$a['legal_name']}}</td>
  54. <td>{{$a['status']?($a['status']==8?'已通过':'已拒绝'):'待审核'}}</td>
  55. <td>{{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
  56. <td>
  57. @if( check_auth('admin/custom_company/set_status') && $a['status'] == 0)
  58. <a class="modal_show btn btn-sm btn-success" href="javascript:;" data-url="{{url('admin/custom_company/set_status?'.http_build_query(['id'=>$a['id']]))}}" >审核</a>
  59. @endif
  60. </td>
  61. </tr>
  62. @endforeach
  63. <tr>
  64. <td colspan="20" class="page">{{$list->render()}}</td>
  65. </tr>
  66. <tr>
  67. <td colspan="20">总计 {{$list->total()}} 个资质</td>
  68. </tr>
  69. </tbody>
  70. </table>
  71. </div>
  72. </div>
  73. </div>
  74. <!-- Modal -->
  75. <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  76. <div class="modal-dialog" role="document">
  77. <div class="modal-content">
  78. <div class="modal-header">
  79. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  80. <h4 class="modal-title" id="myModalLabel"></h4>
  81. </div>
  82. <div class="modal-body"></div>
  83. <div class="modal-footer"></div>
  84. </div>
  85. </div>
  86. </div>
  87. @endsection