141 lines
7.5 KiB
PHP
141 lines
7.5 KiB
PHP
@extends('layouts.base')
|
|
@section('title', trans('激活码记录'))
|
|
@section('content')
|
|
<div class="w1200 ">
|
|
<style>
|
|
.time {
|
|
width: 30%;
|
|
float: left;
|
|
}
|
|
table a {
|
|
color: #333;
|
|
}
|
|
</style>
|
|
<div class=" rightlist ">
|
|
<div class="right-titpos">
|
|
<ul class="add-snav">
|
|
<li class="active"><a href="#">激活码记录</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="panel panel-info"><!-- 此处是右侧内容新包一层div -->
|
|
<div class="panel-body">
|
|
<form action="" method="post" class="form-horizontal" role="form" id="form1">
|
|
<div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
|
|
<!-- <label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">会员信息</label>-->
|
|
<div class="">
|
|
<input type="text" class="form-control" name="realname" value="{{$request['realname']}}" placeholder="可搜索发送人/使用人"/>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
|
|
<select class="form-control" name="used_status">
|
|
<option value="" @if($request['used_status'] == '') selected @endif >使用状态</option>
|
|
<option value="0" @if($request['used_status'] == '0') selected @endif >未使用</option>
|
|
<option value="1" @if($request['used_status'] == '1') selected @endif >已使用</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-6">
|
|
|
|
<div class="time">
|
|
|
|
<select name='searchtime' class='form-control'>
|
|
<option value=''>时间</option>
|
|
<option value='1'
|
|
@if($request['searchtime']=='1')
|
|
selected
|
|
@endif>发放时间</option>
|
|
<option value='2'
|
|
@if($request['searchtime']=='2')
|
|
selected
|
|
@endif>使用时间</option>
|
|
</select>
|
|
</div>
|
|
<div class="search-select">
|
|
{!! app\common\helpers\DateRange::tplFormFieldDateRange('times', [
|
|
'starttime'=>date('Y-m-d H:i', $starttime),
|
|
'endtime'=>date('Y-m-d H:i',$endtime),
|
|
'start'=>0,
|
|
'end'=>0
|
|
], true) !!}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group col-xs-12 col-sm-7 col-lg-4">
|
|
<!--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label"></label>-->
|
|
<div class="">
|
|
<button type="button" name="export" value="1" id="export" class="btn btn-default excel back ">导出 Excel</button>
|
|
<input type="hidden" name="token" value="{{$var['token']}}" />
|
|
<input type="hidden" name="level_id" value="{{$request['level_id']}}">
|
|
<button class="btn btn-success "><i class="fa fa-search"></i> 搜索</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix">
|
|
<div class="panel panel-default">
|
|
<table class='table' style='float:left;margin-bottom:0;table-layout: fixed;line-height: 40px;height: 40px'>
|
|
<tr class='trhead'>
|
|
<td colspan='8' style="text-align: left;">
|
|
订单数: <span id="total">{{$total}}</span>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="panel-body table-responsive">
|
|
<table class="table table-hover">
|
|
<thead class="navbar-inner">
|
|
<tr>
|
|
<th width="6%">ID</th>
|
|
<th width="10%">发放人</th>
|
|
<th width="10%">使用人</th>
|
|
<th width="12%">激活码</th>
|
|
<th width="10%">原经销商等级</th>
|
|
<th width="10%">使用后经销商等级</th>
|
|
<th width="10%">状态</th>
|
|
<th width="16%">发放时间</th>
|
|
<th width="16%">使用时间</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($list['data'] as $item)
|
|
<tr>
|
|
<td>{{$item['id']}}</td>
|
|
<td><a href="{!! yzWebUrl('member.member.detail', ['id'=>$item['has_one_send_member']['uid']]) !!}"><img src="{{$item['has_one_send_member']['avatar']}}" style="width:30px;height:30px;padding:1px;border:1px solid #ccc"><BR>{{$item['has_one_send_member']['nickname']}}</a></td>
|
|
@if ($item['has_one_use_member'])
|
|
<td><a href="{!! yzWebUrl('member.member.detail', ['id'=>$item['has_one_use_member']['uid']]) !!}"><img src="{{$item['has_one_use_member']['avatar']}}" style="width:30px;height:30px;padding:1px;border:1px solid #ccc"><BR>{{$item['has_one_use_member']['nickname']}}</a></td>
|
|
@else
|
|
<td style="height: 59px;">
|
|
未更新
|
|
</td>
|
|
@endif
|
|
<td>{{$item['code']}}</td>
|
|
<td>{{$item['o_team_level']}}</td>
|
|
<td>{{$item['c_team_level']}}</td>
|
|
<td>{{$item['status']==1?'使用':'未使用'}}</td>
|
|
<td>{{$item['created_at']}}</td>
|
|
<td>{{$item['updated_at']}}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
{!!$pager!!}
|
|
<!--分页-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script language='javascript'>
|
|
$(function () {
|
|
$('#export').click(function(){
|
|
$('#form1').get(0).action="{!! yzWebUrl('plugin.team-dividend.admin.code-record.export') !!}";
|
|
$('#form1').submit();
|
|
$('#form1').get(0).action="{!! yzWebUrl('plugin.team-dividend.admin.code-record.details') !!}";
|
|
});
|
|
});
|
|
</script>
|
|
@endsection |