bztang-admin/plugins/team-dividend/views/admin/uplog/index.blade.php

137 lines
7.0 KiB
PHP

@extends('layouts.base')
@section('title', trans('升级日志'))
@section('content')
<style>
.time {
width: 30%;
float: left;
}
table a {
color: #333;
}
</style>
<div class="w1200 ">
<div class=" rightlist ">
<div class="right-addbox"><!-- 此处是右侧内容新包一层div -->
<div class="panel panel-info">
<div class="panel-body">
<form action="{!! yzWebUrl('plugin.team-dividend.admin.uplog.index') !!}" method="post" class="form-horizontal" role="form" id="form1">
<div class="form-group col-xs-12 col-sm-3">
<div class="">
<input type="text" class="form-control" name="search[uid]" value="{{$search['uid']}}" placeholder="会员ID"/>
</div>
</div>
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
<select class="form-control tpl-category-parent" id="before_level_id" name="search[before_level_id]">
<option value="-1">升级前等级</option>
@foreach($levels as $item)
<option value="{{$item->id}}"
@if($search['before_level_id']==$item->id)
selected
@endif
>ID:{{$item->id}}|{{$item->level_name}}</option>
@endforeach
</select>
</div>
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
<select class="form-control tpl-category-parent" id="after_level_id" name="search[after_level_id]">
<option value="-1">升级后等级</option>
@foreach($levels as $item)
<option value="{{$item->id}}"
@if($search['after_level_id']==$item->id)
selected
@endif
>ID:{{$item->id}}|{{$item->level_name}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<div class="">
<button class="btn btn-success "><i class="fa fa-search"></i> 搜索</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="clearfix">
<div class="panel panel-default">
<div class="panel-heading">总数:{{$list->total()}}</div>
<div class="panel-body table-responsive">
<table class="table table-hover">
<thead class="navbar-inner">
<tr>
<th width="10%">会员ID</th>
<th width="16%">时间</th>
<th width="16%">会员信息</th>
<th width="12%">升级前等级</th>
<th width="12%">升级后等级</th>
<th width="8%">升级方式</th>
<th width="8%">升级类型</th>
<th width="8%">操作</th>
</tr>
</thead>
<tbody>
@foreach($list as $item)
<tr>
<td>{{$item->uid}}</td>
<td>
{{$item->created_at}}
</td>
@if ($item->member)
<td>
<a href="{!! yzWebUrl('member.member.detail', ['id'=>$item->uid]) !!}"><img src="{{$item->member->avatar}}" style="width:30px;height:30px;padding:1px;border:1px solid #ccc"><BR>{{$item->member->nickname}}</a>
</td>
@else
<td style="height: 59px">
<label class='label label-default'>
未更新
</label>
</td>
@endif
<td>
ID:{{$item->before_level_id}}<br>
{{$item->beforeLevel->level_name}}<br>
<a class="btn btn-default btn-sm"
href="{!! yzWebUrl('plugin.team-dividend.admin.uplog.beforeDetail', array('id' => $item->id)) !!}">等级设置</a>
</td>
<td>
ID:{{$item->after_level_id}}<br>
{{$item->afterLevel->level_name}}<br>
<a class="btn btn-default btn-sm"
href="{!! yzWebUrl('plugin.team-dividend.admin.uplog.afterDetail', array('id' => $item->id)) !!}">等级设置</a>
</td>
<td>
{{$item->type_name}}
</td>
<td>
{{$item->code_name}}
</td>
<td style="text-align: center;">
<a class="btn btn-default btn-sm"
href="{!! yzWebUrl('plugin.team-dividend.admin.uplog.complete', array('id' => $item->id)) !!}">达成记录</a>
</td>
</tr>
@endforeach
</tbody>
</table>
{!!$pager!!}
<!--分页-->
</div>
</div>
</div>
</div>
</div>
<style>
.table-hover tr th, .table-hover tr td{text-align: center;}
.input-group{
margin: 4px auto;height: 30px; line-height: 30px;
}
</style>
@endsection