142 lines
6.9 KiB
PHP
142 lines
6.9 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="{!! yzWebUrl('plugin.team-dividend.admin.team-reward') !!}" 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">
|
|
<div class="">
|
|
<input type="text" class="form-control" name="search[member]" value="{{$search['member']}}"
|
|
placeholder="请输入团队代理信息"/>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-6">
|
|
|
|
<div class="time">
|
|
|
|
<select name='search[searchtime]' class='form-control'>
|
|
<option value=''>不搜索时间</option>
|
|
<option value='1'
|
|
@if($search['searchtime']=='1')
|
|
selected
|
|
@endif>奖励时间
|
|
</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="search-select">
|
|
{!! app\common\helpers\DateRange::tplFormFieldDateRange('search[times]', [
|
|
'starttime'=>$search['times']['start'],
|
|
'endtime'=>$search['times']['end'],
|
|
'start'=>$search['times']['start'],
|
|
'end'=>$search['times']['end']
|
|
], true) !!}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group col-xs-12 col-sm-7 col-lg-4">
|
|
<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']}}"/>
|
|
<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">
|
|
<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="10%">下级团队代理</th>
|
|
<th width="10%">下线升级至等级</th>
|
|
<th width="16%">下线升级时间</th>
|
|
<th width="10%">奖励金额(元)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($list['data'] as $item)
|
|
<tr>
|
|
<td>{{$item['id']}}</td>
|
|
|
|
@if ($item['has_one_member'])
|
|
<td>
|
|
<a href="{!! yzWebUrl('member.member.detail', ['id'=>$item['has_one_member']['uid']]) !!}"><img
|
|
src="{{$item['has_one_member']['avatar']}}"
|
|
style="width:30px;height:30px;padding:1px;border:1px solid #ccc"><BR>{{$item['has_one_member']['nickname']}}
|
|
</a>
|
|
</td>
|
|
@else
|
|
<td style="height: 59px">
|
|
未更新
|
|
</td>
|
|
@endif
|
|
|
|
<td>{{$item['has_one_level']['level_name']}}</td>
|
|
@if ($item['has_one_subordinate'])
|
|
<td>
|
|
<a href="{!! yzWebUrl('member.member.detail', ['id'=>$item['has_one_subordinate']['uid']]) !!}">
|
|
<img src="{{$item['has_one_subordinate']['avatar']}}"
|
|
style="width:30px;height:30px;padding:1px;border:1px solid #ccc"><BR>
|
|
{{$item['has_one_subordinate']['nickname']}}</a>
|
|
</td>
|
|
@else
|
|
<td style="height: 59px">
|
|
未更新
|
|
</td>
|
|
@endif
|
|
<td>{{$item['has_one_subordinate_level']['level_name']}}</td>
|
|
<td>{{date("Y-m-d H:i:s",$item['subordinate_level_at'])}}</td>
|
|
|
|
|
|
<td>{{$item['reward_amount']}}</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.team-reward.export') !!}";
|
|
$('#form1').submit();
|
|
$('#form1').get(0).action = "{!! yzWebUrl('plugin.team-dividend.admin.team-reward.index') !!}";
|
|
});
|
|
});
|
|
</script>
|
|
@endsection |