12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- @extends('admin.public.base')
- @section('body_class')
- style="margin: 0 auto;width: 96%;padding: 30px 0px;"
- @endsection
- @section('content')
- <div class="page-header">
- <a href="{{url('admin/weiban_qrcode/add')}}" class="btn btn-primary">新增</a>
- </div>
- <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="name" value="{{request('name','')}}" placeholder="请输入名称查询" />
- </div>
- <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
- <a href="{{url('admin/weiban_qrcode/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>ID</th>
- <th>名称</th>
- <th>二维码</th>
- <th>产品状态</th>
- <th>修改时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- @foreach ($list as $a)
- <tr>
- <td> {{$a['id']}}</td>
- <td> {{$a['name']}}</td>
- <td> <img src="{{$a['thumb']}}" alt="" height="50"> </td>
- <td> {{$a['status']?'停用':'启用'}} </td>
- <td> {{date('Y/m/d H:i:s',$a['update_time'])}}</td>
- <td>
- @if(check_auth('admin/weiban_qrcode/edit'))
- <a class="btn btn-sm btn-warning" href="{{url('admin/weiban_qrcode/edit?'.http_build_query(['id'=>$a['id']]))}}" title="查看">
- 编辑
- </a>
- @endif
- @if(check_auth('admin/weiban_qrcode/set_status'))
- @if ($a['status'])
- <a class="delete btn btn-sm btn-success" data-url="{{url('admin/weiban_qrcode/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'0']))}}">
- 启用
- </a>
- @else
- <a class="delete btn btn-sm btn-danger" data-url="{{url('admin/weiban_qrcode/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'1']))}}">
- 停用
- </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
|