admin/resources/views/charts/order/order_ranking.blade.php

100 lines
4.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@extends('layouts.base')
@section('content')
<link href="{{static_url('yunshop/balance/balance.css')}}" media="all" rel="stylesheet" type="text/css"/>
<div class="w1200 m0a">
<div class="rightlist" id="member-blade">
@include('layouts.tabs')
<div class="panel panel-default">
<div class="panel-body">
<form action="" method="post" class="form-horizontal" role="form" id="form1">
<div class="form-group col-sm-11 col-lg-11 col-xs-12">
<div class="">
<div class='input-group'>
<div class='form-input'>
<p class="input-group-addon" >会员ID</p>
<input class="form-control price" style="width: 40%;" type="text" name="search[member_id]" value="{{ $search['member_id'] ?? ''}}">
</div>
<div class='form-input'>
<p class="input-group-addon" >会员信息</p>
<input class="form-control price" style="width: 40%;" type="text" name="search[member_info]" value="{{ $search['member_info'] ?? ''}}">
</div>
<div class=''>
<p class="" align="center">每天凌晨1点执行数据统计统计截止到前一天的数据建议不要再同一时间设置数据自动备份、快照等计划任务</p>
</div>
</div>
</div>
</div>
<div class="form-group col-sm-1 col-lg-1 col-xs-12">
<div class="">
<input type="submit" class="btn btn-block btn-success" value="搜索">
</div>
</div>
</form>
</div>
<div class='panel-body'>
<table class="table table-hover" style="text-align: center;">
<thead>
<tr>
<th style="text-align: center;">排行</th>
<th style="text-align: center;">会员</th>
<th style="text-align: center;">昵称</th>
<th style="text-align: center;">姓名<br/>手机号</th>
<th style="text-align: center;">订单数</th>
<th style="text-align: center;">订单总额</th>
<th style="text-align: center;">已支付订单数</th>
<th style="text-align: center;">已支付订单总额</th>
<th style="text-align: center;">已完成订单数</th>
<th style="text-align: center;">已完成订单总额</th>
</tr>
</thead>
<tbody>
@foreach($list as $key => $item)
<tr>
<td>
@if($key <= 2)
<labe class='label label-danger' style='padding:8px;'>&nbsp;{{ $key + 1 }}&nbsp;</labe>
@else
<labe class='label label-default' style='padding:8px;'>&nbsp;{{ $key + 1 }}&nbsp;</labe>
@endif
</td>
<td>{{ $item->uid }}</td>
<td>
@if(!empty($item->belongsToMember->avatar))
<img src='{{ $item->belongsToMember->avatar }}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc' /><br/>
@endif
@if(empty($item->belongsToMember->nickname))
未更新
@else
{{ $item->belongsToMember->nickname }}
@endif
</td>
<td>
{{ $item->belongsToMember->realname }}
<br/>
{{ $item->belongsToMember->mobile }}
</td>
<td>{{ $item->total_quantity }}</td>
<td>{{ $item->total_amount }}</td>
<td>{{ $item->total_pay_quantity }}</td>
<td>{{ $item->total_pay_amount }}</td>
<td>{{ $item->total_complete_quantity }}</td>
<td>{{ $item->total_complete_amount }}</td>
</tr>
@endforeach
</table>
{!! $page !!}
</div>
</div>
</div>
</div>
@endsection