| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- @extends('layouts.base')
- @section('title', trans('招商员等级'))
- @section('content')
- <div class="rightlist">
- <!-- 新增加右侧顶部三级菜单 -->
- <div class="right-titpos">
- <ul class="add-snav">
- <li class="active"><a href="#">招商员等级</a></li>
- </ul>
- </div>
- <!-- 新增加右侧顶部三级菜单结束 -->
- <form action="" method="post">
- <div class='panel panel-default'>
- <div class="panel-heading">总数:{{$list->total()}} </div>
- <div class='panel-body'>
- <table class="table">
- <thead>
- <tr>
- <th>等级权重</th>
- <th>等级名称</th>
- <th>分红比例</th>
- <th style="width:60%">升级条件</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- @foreach($list as $row)
- <tr>
- <td><span class="label label-danger">{{ $row->level_weight }}</span></td>
- <td>{{ $row->level_name }}</td>
- <td>{{ $row->bonus_ratio }}</td>
- <td>
- @if($row->upgrate['is_open_supplier_count'] && $row->upgrate['supplier_count'])
- 一级会员人数满足{{$row->upgrate['supplier_count']}}人
- @endif
- <br>
- @if($row->upgrate['is_open_goods'] && $row->upgrate['goods_id'])
- 购买[{{$row->goods->title}}]
- @endif
- <br>
- @if($row->upgrate['is_open_merchant_count'] && $row->upgrate['merchant_level'] && $row->upgrate['merchant_count'])
- 直推@foreach($list as $v)
- @if($v->id == $row->upgrate['merchant_level'])
- {{$v->level_name}}
- @endif
- @endforeach
- 招商员满{{$row->upgrate['merchant_count']}}人
- @endif
- </td>
- <td>
- <a class='btn btn-default' href="{{ yzWebUrl('plugin.merchant.backend.staff-level.edit', ['level_id' => $row->id]) }}" title="编辑/查看"><i class='fa fa-edit'></i></a>
- {{--<a class='btn btn-default' href="{{ yzWebUrl('plugin.merchant.backend.staff-level.delete', ['level_id' => $row->id]) }}" onclick="return confirm('确认删除此等级吗?');return false;"><i class='fa fa-remove'></i></a>--}}
- <a class='btn btn-default' href="{{ yzWebUrl('plugin.merchant.backend.staff-level.del-level', ['level_id' => $row->id]) }}" onclick="return confirm('等级删除后该等级所有招商员等级调整为默认等级,确认删除此等级吗?');return false;"><i class='fa fa-remove'></i></a>
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- {!!$pager!!}
- </div>
- <div class='panel-footer'>
- <a class='btn btn-info' href="{{ yzWebUrl('plugin.merchant.backend.staff-level.add') }}"><i class="fa fa-plus"></i> 添加新等级</a>
- </div>
- </div>
- </form>
- </div>
- @endsection
|