express_list.blade.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('快递单信息管理'))
  4. <div class="rightlist">
  5. <div class="panel panel-default">
  6. <div class="panel-heading"><i class="fa fa-copy"></i> 快递单模版列表</div>
  7. <div class="panel-body table-responsive">
  8. <table class="table table-hover">
  9. <thead class="navbar-inner">
  10. <tr>
  11. <th style="width:60px;">ID</th>
  12. <th>快递单模版名称</th>
  13. <th>快递类型</th>
  14. <th>是否默认(只能设置一个)</th>
  15. <th>操作</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. @foreach($list as $row)
  20. <tr>
  21. <td>{{$row->id}}</td>
  22. <td>{{$row->expressname}}</td>
  23. <td>@if(empty($row->expresscom)) 其他快递 @else {{$row->expresscom}} @endif</td>
  24. <td>
  25. @if($row->isdefault == 1)
  26. <span class='label label-success'>已设为默认</span>
  27. @else
  28. <span class='label label-default'>未设为默认</span>
  29. @endif
  30. </td>
  31. <td style="text-align:left;">
  32. <a href="{{yzWebUrl(\Yunshop\Exhelper\common\models\Express::EXPRESS_EDIT_URL, ['express_id' => $row->id])}}" class="btn btn-default btn-sm" title="编辑"><i class="fa fa-edit"></i></a>
  33. <a href="{{yzWebUrl(\Yunshop\Exhelper\common\models\Express::EXPRESS_DEL_URL, ['express_id' => $row->id])}}" class="btn btn-default btn-sm" onclick="return confirm('确认删除此快递单?')" title="删除"><i class="fa fa-times"></i></a>
  34. @if($row->is_default == 0)
  35. <a href="{{yzWebUrl(\Yunshop\Exhelper\common\models\Express::EXPRESS_DEFAULT_URL, ['express_id' => $row->id])}}" class="btn btn-default btn-sm" onclick="return confirm('确认设置默认?')" title="设置默认"><i class="fa fa-check"></i></a>
  36. @endif
  37. </td>
  38. </tr>
  39. @endforeach
  40. </tbody>
  41. </table>
  42. {!! $pager !!}
  43. <script>
  44. require(['bootstrap'], function($) {
  45. $('.btn').hover(function() {
  46. $(this).tooltip('show');
  47. }, function() {
  48. $(this).tooltip('hide');
  49. });
  50. });
  51. </script>
  52. </div>
  53. <div class="panel-footer">
  54. <a class='btn btn-default' href="{{yzWebUrl(\Yunshop\Exhelper\common\models\Express::EXPRESS_ADD_URL)}}"><i class='fa fa-plus'></i>添加快递单</a>
  55. </div>
  56. </div>
  57. </div>
  58. @endsection