index.blade.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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/business/add'))
  7. <div class="page-header">
  8. <a href="{{url('admin/business/add')}}" class="btn btn-primary">新增</a>
  9. </div>
  10. @endif
  11. <form action="" method="get" class="form-horizontal form-line">
  12. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  13. <input type="text" class="form-control" name="business_code" value="{{request('business_code','')}}" placeholder="请输入商业公司编码查询" />
  14. </div>
  15. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  16. <input type="text" class="form-control" name="phone" value="{{request('phone','')}}" placeholder="请输入联系方式查询" />
  17. </div>
  18. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  19. <select name="status" class="form-control">
  20. <option value="" >状态</option>
  21. <option value="0" @if (request('status') === '0' ) selected="selected" @endif >正常</option>
  22. <option value="1" @if (request('status') === '1' ) selected="selected" @endif >禁用</option>
  23. </select>
  24. </div>
  25. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  26. <input type="text" class="form-control" name="start_time" value="{{request('start_time','')}}" placeholder="请输入创建时间查询" />
  27. </div>
  28. <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
  29. <a href="{{url('admin/business/index')}}" class="btn btn-sm btn-default" >重置</a>
  30. </form>
  31. <div class="row">
  32. <div class="col-xs-12">
  33. <div class="table-responsive">
  34. <table class="table table-striped table-bordered table-hover">
  35. <thead>
  36. <tr>
  37. <th>编码</th>
  38. <th>商业公司</th>
  39. <th>图片</th>
  40. <th>状态</th>
  41. <th>联系方式</th>
  42. <th>城市</th>
  43. <th>详细地址</th>
  44. <th>上级代表</th>
  45. <th>管理员登录账号</th>
  46. <th>管理员手机号</th>
  47. <th>所属平台</th>
  48. <th>最后修改人员/时间</th>
  49. <th>创建人员/时间</th>
  50. <th>操作</th>
  51. </tr>
  52. </thead>
  53. <tbody>
  54. @foreach ($list as $a)
  55. <tr>
  56. <th>{{$a['business_code']}}</th>
  57. <td>{{$a['name']}}</td>
  58. <td> <img src="{{$a['logopic']}}" alt="" height="50"> </td>
  59. <td>{{$a['status']?'停用':'启用'}}</td>
  60. <td>{{$a['phone']}}</td>
  61. <td>{{$a['city_ids']}}</td>
  62. <td>{{$a['address']}}</td>
  63. <td>{{$a['leader_uid']}}</td>
  64. <td>{{$a['username']}}</td>
  65. <td>{{$a['admin_phone']}}</td>
  66. <td>{{$a['company_name']}}</td>
  67. <td>
  68. @if($a['edit_history_time'])
  69. {{$a['edit_history_username']}}<br/> {{date('Y/m/d H:i:s',$a['edit_history_time'])}}
  70. @endif
  71. </td>
  72. <td>
  73. @if($a['add_history_time'])
  74. {{$a['add_history_username']}}<br/> {{date('Y/m/d H:i:s',$a['add_history_time'])}}
  75. @endif
  76. </td>
  77. <td>
  78. @if(check_auth('admin/business/edit'))
  79. <a href="{{url('admin/business/edit?'.http_build_query(['id'=>$a['id']]))}}" class="btn btn-sm btn-warning" >编辑</a>
  80. @endif
  81. @if(check_auth('admin/business/set_status'))
  82. @if($a['status'])
  83. <a data-url="{{url('admin/business/set_status?'.http_build_query(['id'=>$a['id'],'status'=>0]))}}" class="set_status btn btn-sm btn-success" >启用</a>
  84. @else
  85. <a data-url="{{url('admin/business/set_status?'.http_build_query(['id'=>$a['id'],'status'=>1]))}}" class="set_status btn btn-sm btn-danger" >停用</a>
  86. @endif
  87. @endif
  88. </td>
  89. </tr>
  90. @endforeach
  91. <tr>
  92. <td colspan="20" class="page">{{$list->render()}}</td>
  93. </tr>
  94. <tr>
  95. <td colspan="20">总计 {{$list->total()}} 个商店</td>
  96. </tr>
  97. </tbody>
  98. </table>
  99. </div>
  100. </div>
  101. </div>
  102. @endsection