134 lines
6.8 KiB
PHP
134 lines
6.8 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>
|
|
<a class="btn btn-primary" href="{!! yzWebUrl('plugin.team-dividend.admin.team-agency.add') !!}"><i class="fa fa-plus"></i> 添加团队代理</a>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="right-addbox"><!-- 此处是右侧内容新包一层div -->
|
|
<div class="panel-body">
|
|
<form action="{!! yzWebUrl('plugin.team-dividend.admin.team-agency') !!}" 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-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']}}" />
|
|
<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="16%">成为代理时间</th>
|
|
<th width="10%">团队代理</th>
|
|
<th width="10%">等级</th>
|
|
<th width="10%">下级团队总人数</th>
|
|
<th width="10%">分红比例</th>
|
|
<th width="14%">已结算分红(元)</th>
|
|
<th width="14%">未结算分红(元)</th>
|
|
<th width="10%">累计结算分红(元)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($list['data'] as $item)
|
|
<tr>
|
|
<td>{{$item['id']}}</td>
|
|
<td>{{$item['created_at']}}</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>
|
|
<td>
|
|
{{$item['subordinate_num']}}人
|
|
<a href="{{yzWebUrl('plugin.team-dividend.admin.team-agency.subordinate',['uid'=>$item['uid']])}}">
|
|
查看
|
|
</a>
|
|
|
|
</td>
|
|
<td>{{$item['has_one_level']['dividend_ratio']}}%</td>
|
|
<td>{{$item['dividend_final']}}</td>
|
|
<td>{{$item['dividend_open']}}</td>
|
|
<td>{{$item['dividend_total']}}</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-agency.export') !!}";
|
|
$('#form1').submit();
|
|
$('#form1').get(0).action="{!! yzWebUrl('plugin.team-dividend.admin.team-agency.index') !!}";
|
|
});
|
|
});
|
|
</script>
|
|
@endsection |