admin/resources/views/charts/goods/sales_volume_count.blade.php

85 lines
4.7 KiB
PHP

@extends('layouts.base')
@section('content')
<link href="{{static_url('yunshop/balance/balance.css')}}" media="all" rel="stylesheet" type="text/css"/>
<link href="{{static_url('yunshop/css/order.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">
<div class='alert alert-info'>
<p>1.按照商品销量进行排序;</p>
</div>
{{--<form action="" method="post" class="form-horizontal" role="form" id="form1">--}}
{{--<div class="form-group col-sm-6 col-lg-6 col-xs-12">--}}
{{--<div class="input-group">--}}
{{--<span class="input-group-addon">--}}
{{--<input type="checkbox" name="search[is_time]" value="1"--}}
{{--@if($search['is_time'] == '1')checked="checked"@endif>--}}
{{--</span>--}}
{{--{!!app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', [--}}
{{--'starttime'=>$search['time']['start'] ?: date('Y-m-d H:i:s'),--}}
{{--'endtime'=>$search['time']['end'] ?: date('Y-m-d H:i:s'),--}}
{{--'start'=>0,--}}
{{--'end'=>0--}}
{{--])!!}--}}
{{--</div>--}}
{{--</div>--}}
{{--<div class="form-group col-xs-12 col-sm-4">--}}
{{--<button class="btn btn-success" type="submit" id="search"><i class="fa fa-search"></i> 搜索</button>--}}
{{--<button type="submit" name="export" value="1" id="export" class="btn btn-default">导出 Excel</button>--}}
{{--</div>--}}
{{--</form>--}}
</div>
{{--<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">{{ $supplierTotal }}</span>&nbsp;&nbsp;&nbsp;未提现收入: <span id="total">{{ $unWithdrawTotal }}</span>&nbsp;&nbsp;&nbsp;提现中收入: <span id="total">{{ $withdrawingTotal }}</span>&nbsp;&nbsp;&nbsp;已提现收入: <span id="total">{{ $withdrawTotal }}</span>--}}
{{--</td>--}}
{{--</tr>--}}
{{--</table>--}}
{{--</div>--}}
<div class='panel-body'>
<table class="table table-hover">
<thead>
<tr>
<th style='width:80px;'>排行</th>
<th>商品名称</th>
<th>商品实际销量</th>
</tr>
</thead>
<tbody>
@foreach($list as $key => $item)
<tr>
<td>
@if($item['ranking'] <= 3)
<label class='label label-danger' style='padding:8px;'>&nbsp;{{ $item['ranking'] }}&nbsp;</label>
@else
<label class='label label-default' style='padding:8px;'>&nbsp;{{ $item['ranking'] }}&nbsp;</label>
@endif
</td>
<td>{{ $item['title'] }}</td>
<td>{{ $item['total_sum'] }}</td>
</tr>
@endforeach
</table>
{!! $pager !!}
</div>
</div>
</div>
</div>
<script>
$(function () {
$('#export').click(function () {
$('#form1').attr('action', '{!! yzWebUrl('charts.goods.sales-volume-count.export') !!}');
$('#form1').submit();
});
});
</script>
@endsection