bztang-admin/plugins/shareholder-dividend/views/admin/dividend-log.blade.php

174 lines
7.4 KiB
PHP

@extends('layouts.base')
@section('content')
@section('title', trans('股东分红记录'))
<div class="right-titpos">
<ul class="add-snav">
<li class="active"><a href="#">{{SHAREHOLDER_DIVIDEND_CUSTOM_NAME}}记录</a></li>
</ul>
</div>
<div class='panel panel-default'>
<form action="" method="post" class="form-horizontal" id="form1">
<div class="panel panel-info">
<div class="panel-body">
<div class="form-group col-xs-12 col-sm-3">
<input class="form-control" name="search[id]" type="text"
value="{{$search['id']}}" placeholder="分红ID">
</div>
<div class="form-group col-xs-12 col-sm-3">
<input class="form-control" name="search[member]" type="text"
value="{{$search['member']}}" placeholder="昵称/姓名/手机">
</div>
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
<select class="form-control tpl-category-parent" id="level" name="search[level_id]">
<option value="0">团队代理等级</option>
@foreach($level as $item)
<option value="{{$item->id}}"
@if($search['level_id']==$item->id)
selected
@endif
>{{$item->level_name}}</option>
@endforeach
</select>
</div>
<div class="form-group col-xs-12 col-sm-8">
<div class="col-sm-3">
<label class='radio-inline'>
<input type='radio' value='0' name='search[is_time]'
@if($search['is_time'] == '0') checked @endif>不搜索
</label>
<label class='radio-inline'>
<input type='radio' value='1' name='search[is_time]'
@if($search['is_time'] == '1') checked @endif>搜索
</label>
</div>
{!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', ['starttime'=>$search['time']['start'],
'endtime'=>$search['time']['end'],
'start'=>$search['time']['start'],
'end'=>$search['time']['end']
], true) !!}
</div>
<div class="form-group col-xs-12 col-sm-4">
<input type="button" class="btn btn-success" id="export" value="导出">
<input type="button" class="btn btn-success pull-right" id="search" value="搜索">
</div>
</div>
</div>
</form>
</div>
<div class='panel panel-default'>
<div class='panel-body'>
<table class="table table-hover" style="overflow:visible;">
<thead>
<tr>
<th style='width:5%;'>ID</th>
<th style='width:10%;'>时间</th>
<th style='width:10%;'>会员</th>
<th style='width:10%;'>商城销售总额</th>
<th style='width:5%;'>等级分红比例</th>
<th style='width:5%;'>团队等级</th>
<th style='width:10%;'>权重信息</th>
<th style='width:5%;'>返现金额</th>
<th style='width:10%;'>结算类型</th>
<th style='width:10%;'>收益类型</th>
</tr>
</thead>
<tbody>
@foreach($list['data'] as $row)
<tr>
<td>{{$row['id']}}</td>
<td>{{$row['created_at']}}</td>
<td>
<a target="_blank"
href="{{yzWebUrl('member.member.detail',['id'=>$row['has_one_member']['uid']])}}">
<img src="{{tomedia($row['has_one_member']['avatar'])}}"
style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
</br>
{{$row['has_one_member']['nickname']}}
</a>
</td>
<td>{{$row['order_amount']}}</td>
<td>{{$row['rate']}}%</td>
<td>{{$row['team_level_name']}}</td>
<td>
总权重值:{{ $row['weight_value_total'] }}<br />
持有权重值:{{ $row['weight_value_hold'] }}<br />
占比:{{ $row['weight_value_rate'] . '%' }}<br />
</td>
<td>{{$row['amount']}}</td>
<td>{{$row['settlement_type'] == 1 ? '支付后结算' : '周期结算'}}</td>
<td>{{$row['income_type'] == 1 ? '合伙人受益' : '权重分红'}}</td>
</tr>
@endforeach
</tbody>
</table>
{{--旧版本内容 2023-10-18 弃用--}}
{{-- <table class="table table-hover" style="overflow:visible;">
<thead>
<tr>
<th style='width:5%;'>ID</th>
<th style='width:10%;'>时间</th>
<th style='width:10%;'>会员</th>
<th style='width:8%;'>商城销售总额</th>
<th style='width:8%;'>等级分红比例</th>
<th style='width:8%;'>团队等级</th>
<th style='width:10%;'>同等级团队人数</th>
<th style='width:10%;'>返现金额</th>
</tr>
</thead>
<tbody>
@foreach($list['data'] as $row)
<tr>
<td>{{$row['id']}}</td>
<td>{{$row['created_at']}}</td>
<td>
<a target="_blank"
href="{{yzWebUrl('member.member.detail',['id'=>$row['has_one_member']['uid']])}}">
<img src="{{tomedia($row['has_one_member']['avatar'])}}"
style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
</br>
{{$row['has_one_member']['nickname']}}
</a>
</td>
<td>{{$row['order_amount']}}</td>
<td>{{$row['rate']}}%</td>
<td>{{$row['team_level_name']}}</td>
<td>{{$row['level_num']}}</td>
<td>{{$row['amount']}}</td>
</tr>
@endforeach
</tbody>
</table>--}}
{!! $pager !!}
</div>
</div>
<div style="width:100%;height:150px;"></div>
<script language='javascript'>
$(function () {
$('#export').click(function () {
$('#form1').attr('action', '{!! yzWebUrl('plugin.shareholder-dividend.admin.dividend-log.export') !!}');
$('#form1').submit();
});
$('#search').click(function () {
$('#form1').attr('action', '{!! yzWebUrl('plugin.shareholder-dividend.admin.dividend-log') !!}');
$('#form1').submit();
});
});
</script>
@endsection