12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- @extends('admin.public.base')
- @section('body_class')
- style="margin: 0 auto;width: 96%;padding: 30px 0px;"
- @endsection
- @section('content')
- @if(check_auth('admin/business/add'))
- <div class="page-header">
- <a href="{{url('admin/business/add')}}" class="btn btn-primary">新增</a>
- </div>
- @endif
- <form action="" method="get" class="form-horizontal form-line">
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="business_code" value="{{request('business_code','')}}" placeholder="请输入商业公司编码查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="phone" value="{{request('phone','')}}" placeholder="请输入联系方式查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <select name="status" class="form-control">
- <option value="" >状态</option>
- <option value="0" @if (request('status') === '0' ) selected="selected" @endif >正常</option>
- <option value="1" @if (request('status') === '1' ) selected="selected" @endif >禁用</option>
- </select>
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="start_time" value="{{request('start_time','')}}" placeholder="请输入创建时间查询" />
- </div>
- <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
- <a href="{{url('admin/business/index')}}" class="btn btn-sm btn-default" >重置</a>
- </form>
- <div class="row">
- <div class="col-xs-12">
- <div class="table-responsive">
- <table class="table table-striped table-bordered table-hover">
- <thead>
- <tr>
- <th>编码</th>
- <th>状态</th>
- <th>商业公司</th>
- <th>联系方式</th>
- <th>城市</th>
- <th>详细地址</th>
- <th>上级代表</th>
- <th>简介说明</th>
- <th>创建时间</th>
- <th>操作</th>
- </tr>
- </thead>
-
- <tbody>
- @foreach ($list as $a)
- <tr>
- <th>{{$a['business_code']}}</th>
- <td>{{$a['status']?'禁用':'正常'}}</td>
- <td>{{$a['name']}}</td>
- <td>{{$a['phone']}}</td>
- <td>{{$a['city_ids']}}</td>
- <td>{{$a['address']}}</td>
- <td>{{$a['leader_uid']}}</td>
- <td>{{$a['desc']}}</td>
- <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
- <td>
- @if(check_auth('admin/business/edit'))
- <a href="{{url('admin/business/edit?'.http_build_query(['id'=>$a['id']]))}}" class="btn btn-sm btn-warning" >编辑</a>
- @endif
- @if(check_auth('admin/business/set_status'))
- @if($a['status'])
- <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>
- @else
- <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>
- @endif
- @endif
- </td>
- </tr>
- @endforeach
- <tr>
- <td colspan="20" class="page">{{$list->render()}}</td>
- </tr>
- <tr>
- <td colspan="20">总计 {{$list->total()}} 个商店</td>
- </tr>
- </tbody>
-
- </table>
- </div>
- </div>
- </div>
- @endsection
|