bztang-admin/plugins/commission/views/admin/level_list.blade.php

89 lines
4.9 KiB
PHP

@extends('layouts.base')
@section('content')
@section('title', trans('分销等级管理'))
<style>
.panel-body .label{
font-size: 14px!important;
}
</style>
<section class="content">
<div class="right-titpos">
<ul class="add-snav">
<li class="active"><a href="">分销等级管理</a></li>
</ul>
</div>
<form action="" method="post" onsubmit="return formcheck(this)">
<div class='panel panel-default'>
<div class='panel-body'>
<div class="table-responsive ">
<table class="table table-hover">
<thead>
<tr>
<th style="text-align: center;width: 80px!important;">等级权重</th>
<th style="text-align: center;width: 150px!important;">等级名称</th>
<th style="text-align: center;width: 150px!important;">等级类型</th>
@if($set['level']>=1)<th style="text-align: center;width: 120px!important;">一级比例</th> @endif
@if($set['level']>=2)<th style="text-align: center;width: 120px!important;">二级比例</th> @endif
@if($set['level']>=3)<th style="text-align: center;width: 120px!important;">三级比例</th> @endif
<th style="width: 210px;">升级条件</th>
<th style="text-align: center;width: 120px!important;">等级人数</th>
<th style="text-align: center;width: 200px!important;">操作</th>
</tr>
</thead>
<tbody>
@foreach($list as $row)
<tr>
<td style="text-align: center;">{{$row->level}}</td>
<td style="text-align: center;">{{$row->name}}</td>
<td style="text-align: center;">
@if($row->level_type == 1)
<span class="label label-warning">文创等级</span>
@else
<span class="label label-default">普通等级</span>
@endif
</td>
@if($set['level']>=1)<td style="text-align: center;">{{$row->first_level}}%</td>@endif
@if($set['level']>=2)<td style="text-align: center;">{{$row->second_level}}%</td>@endif
@if($set['level']>=3)<td style="text-align: center;">{{$row->third_level}}%</td>@endif
<td>
@if($row['upgrades'])
@foreach($row['upgrades'] as $type => $upgrade)
@if($type == 'self_order_after')
@unset($upgrade)
@endif
@if($type != 'goods' && $type != 'self_order_after' && $type != 'buy_and_sum' && $type != 'many_good')
{{$upgrade['type']}}:{{$upgrade['value']}} {{$upgrade['unit']}}</br>
@else
{{$upgrade['type']}}</br><i></i>
@endif
@endforeach
@else
无升级条件
@endif
</td>
<td style="text-align: center;">{{$row->agent_count}}</td>
<td style="text-align: center;">
<a class='btn btn-default' href="{{yzWebUrl("plugin.commission.admin.level.edit", ['id'=>$row['id']])}}">编辑</a>
<a class='btn btn-default' href="{{yzWebUrl("plugin.commission.admin.level.deleted", ['id'=>$row['id']])}}"
onclick="return confirm('确认删除此等级吗?');return false;">删除</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
{!! $pager !!}
<div class='panel-footer'>
<a class='btn btn-primary'
href="{{yzWebUrl("plugin.commission.admin.level.add")}}"><i
class="fa fa-plus"></i> 添加新等级</a>
</div>
</div>
</form>
</section><!-- /.content -->
@endsection