59 lines
2.8 KiB
PHP
59 lines
2.8 KiB
PHP
@extends('layouts.base')
|
|
|
|
@section('content')
|
|
@section('title', trans('发货单信息管理'))
|
|
<div class="rightlist">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading"><i class="fa fa-copy"></i> 发货单模版列表</div>
|
|
<div class="panel-body table-responsive">
|
|
<table class="table table-hover">
|
|
<thead class="navbar-inner">
|
|
<tr>
|
|
<th style="width:60px;">ID</th>
|
|
<th>发货单模版名称</th>
|
|
<th>是否默认(只能设置一个)</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($list as $row)
|
|
<tr>
|
|
<td>{{$row->id}}</td>
|
|
<td>{{$row->expressname}}</td>
|
|
<td>
|
|
@if($row->isdefault == 1)
|
|
<span class='label label-success'>已设为默认</span>
|
|
@else
|
|
<span class='label label-default'>未设为默认</span>
|
|
@endif
|
|
</td>
|
|
<td style="text-align:left;">
|
|
<a href="{{yzWebUrl(\Yunshop\Exhelper\common\models\Express::SEND_EDIT_URL, ['send_id' => $row->id])}}" class="btn btn-default btn-sm" title="编辑"><i class="fa fa-edit"></i></a>
|
|
|
|
<a href="{{yzWebUrl(\Yunshop\Exhelper\common\models\Express::SEND_DEL_URL, ['send_id' => $row->id])}}" class="btn btn-default btn-sm" onclick="return confirm('确认删除此发货单?')" title="删除"><i class="fa fa-times"></i></a>
|
|
|
|
@if($row->is_default == 0)
|
|
<a href="{{yzWebUrl(\Yunshop\Exhelper\common\models\Express::SEND_DEFAULT_URL, ['send_id' => $row->id])}}" class="btn btn-default btn-sm" onclick="return confirm('确认设置默认?')" title="设置默认"><i class="fa fa-check"></i></a>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
{!! $pager !!}
|
|
<script>
|
|
require(['bootstrap'], function($) {
|
|
$('.btn').hover(function() {
|
|
$(this).tooltip('show');
|
|
}, function() {
|
|
$(this).tooltip('hide');
|
|
});
|
|
});
|
|
</script>
|
|
</div>
|
|
<div class="panel-footer">
|
|
<a class='btn btn-default' href="{{yzWebUrl(\Yunshop\Exhelper\common\models\Express::SEND_ADD_URL)}}"><i class='fa fa-plus'></i>添加发货单</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection |