|
@@ -1,74 +1,77 @@
|
|
|
@extends('admin.public.base')
|
|
|
@section('body_class')
|
|
|
-style="margin: 0 auto;width: 96%;padding: 30px 0px;"
|
|
|
+ style="margin: 0 auto;width: 96%;padding: 30px 0px;"
|
|
|
@endsection
|
|
|
@section('content')
|
|
|
|
|
|
-@if(check_auth('admin/recruitment_active/add'))
|
|
|
- <div class="page-header">
|
|
|
- <a href="{{url('admin/recruitment_active/add')}}" class="btn btn-primary">新增</a>
|
|
|
- </div>
|
|
|
-@endif
|
|
|
+ @if(check_auth('admin/regiment_active/add'))
|
|
|
+ <div class="page-header">
|
|
|
+ <a href="{{url('admin/regiment_active/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="name" value="{{request('name','')}}" 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="id_code" value="{{request('id_code','')}}" placeholder="请输入活动编码查询" />
|
|
|
- </div>
|
|
|
- <div class="form-group col col-md-1" style="margin-right: 2px;">
|
|
|
- <select name="status" class="form-control">
|
|
|
- <option value="" >状态</option>
|
|
|
- <option value="1" @if (request('status') === '1' ) selected="selected" @endif >启用</option>
|
|
|
- <option value="2" @if (request('status') === '2' ) selected="selected" @endif >停用</option>
|
|
|
- <option value="3" @if (request('status') === '3' ) 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="date" class="form-control" name="start_time" value="{{request('start_time','')}}" 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="date" class="form-control" name="end_time" value="{{request('end_time','')}}" placeholder="请输入结束查询" />
|
|
|
- </div>
|
|
|
- <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
|
|
|
- <a href="{{url('admin/recruitment_active/index')}}" class="btn btn-sm btn-default" >重置</a>
|
|
|
-</form>
|
|
|
+ <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="code" value="{{request('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="name" value="{{request('name','')}}" 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="product_name" value="{{request('product_name','')}}" placeholder="请输入产品名称查询" />
|
|
|
+ </div>
|
|
|
+ <div class="form-group col col-md-1" style="margin-right: 2px;">
|
|
|
+ <select name="status" class="form-control">
|
|
|
+ <option value="" >状态</option>
|
|
|
+ <option value="1" @if (request('status') === '1' ) selected="selected" @endif >启用</option>
|
|
|
+ <option value="2" @if (request('status') === '2' ) selected="selected" @endif >停用</option>
|
|
|
+ <option value="3" @if (request('status') === '3' ) 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="date" class="form-control" name="start_time" value="{{request('start_time','')}}" 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="date" class="form-control" name="end_time" value="{{request('end_time','')}}" placeholder="请输入结束查询" />
|
|
|
+ </div>
|
|
|
+ <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
|
|
|
+ <a href="{{url('admin/regiment_active/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>
|
|
|
+ <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>
|
|
|
- <th>结束时间</th>
|
|
|
- <th>内部跳转</th>
|
|
|
- <th>宣发链接</th>
|
|
|
- <th>活动状态</th>
|
|
|
+ <th>产品名称</th>
|
|
|
+ <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)
|
|
|
+ </thead>
|
|
|
+
|
|
|
+ <tbody>
|
|
|
+ @foreach ($list as $a)
|
|
|
<tr>
|
|
|
- <th>{{$a['id_code']}}</th>
|
|
|
- <td>{{$a['name']}}</td>
|
|
|
- <td>{{$a['city_ids']}}</td>
|
|
|
- <td>{{$a['tag_scope']}}</td>
|
|
|
- <td>{{date('Y/m/d H:i:s',$a['start_time'])}}</td>
|
|
|
- <td>{{date('Y/m/d H:i:s',$a['end_time'])}}</td>
|
|
|
- <td>/pages/recruitment/index?id={{$a['id']}}</td>
|
|
|
- <td>{{$a['mp_urllink']}}</td>
|
|
|
+ <th>{{$a['code']}}</th>
|
|
|
+ <td style="white-space:pre">{{$a['name']}}</td>
|
|
|
+ <td>{{$a['product_name']}}</td>
|
|
|
+ <td>{{$a['number']}}</td>
|
|
|
+ <td>{{$a['regiment_price']}}</td>
|
|
|
+ <td>{{$a['expiration']}}</td>
|
|
|
+ <td>{{$a['business_name']}}</td>
|
|
|
<td>
|
|
|
- @if( $a['status'] )
|
|
|
- 停用
|
|
|
+ @if( $a['status'] === 2)
|
|
|
+ 停用
|
|
|
@else
|
|
|
@if( $a['start_time'] <= time() && $a['end_time'] <= time() )
|
|
|
已结束
|
|
@@ -81,37 +84,36 @@ style="margin: 0 auto;width: 96%;padding: 30px 0px;"
|
|
|
@endif
|
|
|
@endif
|
|
|
</td>
|
|
|
+ <td>{{date('Y/m/d H:i:s',$a['start_time'])}}<br/>{{date('Y/m/d H:i:s',$a['end_time'])}}</td>
|
|
|
+ <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
|
|
|
<td> {{date('Y/m/d H:i:s',$a['update_time'])}}</td>
|
|
|
<td>
|
|
|
- @if(check_auth('admin/recruitment_active_prize/edit'))
|
|
|
- <a href="{{url('admin/recruitment_active_prize/edit?'.http_build_query(['active_id'=>$a['id']]))}}" class="btn btn-sm btn-primary" >奖励配置</a>
|
|
|
+ @if(check_auth('admin/regiment_active/edit'))
|
|
|
+ <a href="{{url('admin/regiment_active/edit?'.http_build_query(['id'=>$a['id']]))}}" class="btn btn-sm btn-warning" >编辑</a>
|
|
|
@endif
|
|
|
- @if(check_auth('admin/recruitment_active/edit'))
|
|
|
- <a href="{{url('admin/recruitment_active/edit?'.http_build_query(['id'=>$a['id']]))}}" class="btn btn-sm btn-warning" >编辑</a>
|
|
|
+ @if(check_auth('admin/regiment_active/copy'))
|
|
|
+ <a href="{{url('admin/regiment_active/copy?'.http_build_query(['id'=>$a['id']]))}}" class="btn btn-sm btn-success" >复制</a>
|
|
|
@endif
|
|
|
- @if(check_auth('admin/recruitment_active/set_status'))
|
|
|
- @if($a['status'])
|
|
|
- <a data-url="{{url('admin/recruitment_active/set_status?'.http_build_query(['id'=>$a['id'],'status'=>0]))}}" class="set_status btn btn-sm btn-success" >启用</a>
|
|
|
+ @if(check_auth('admin/regiment_active/set_status'))
|
|
|
+ @if($a['status'] === 2)
|
|
|
+ <a data-url="{{url('admin/regiment_active/set_status?'.http_build_query(['id'=>$a['id'],'status'=>1]))}}" class="set_status btn btn-sm btn-success" >启用</a>
|
|
|
@else
|
|
|
- <a data-url="{{url('admin/recruitment_active/set_status?'.http_build_query(['id'=>$a['id'],'status'=>1]))}}" class="set_status btn btn-sm btn-danger" >停用</a>
|
|
|
+ <a data-url="{{url('admin/regiment_active/set_status?'.http_build_query(['id'=>$a['id'],'status'=>2]))}}" class="set_status btn btn-sm btn-danger" >停用</a>
|
|
|
@endif
|
|
|
@endif
|
|
|
- @if(check_auth('admin/recruitment_active/get_poster'))
|
|
|
- <a href="{{url('admin/recruitment_active/get_poster?'.http_build_query(['id'=>$a['id']]))}}" class="btn btn-sm btn-success" >海报</a>
|
|
|
- @endif
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
- <tr>
|
|
|
- <td colspan="20" class="page">{{$list->render()}}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="20">总计 {{$list->total()}} 个商店</td>
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
- </tbody>
|
|
|
-
|
|
|
- </table>
|
|
|
+ @endforeach
|
|
|
+ <tr>
|
|
|
+ <td colspan="20" class="page">{{$list->render()}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="20">总计 {{$list->total()}} 个商店</td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-</div>
|
|
|
@endsection
|