send_list.blade.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. </tr>
  16. </thead>
  17. <tbody>
  18. @foreach($list as $row)
  19. <tr>
  20. <td>{{$row->id}}</td>
  21. <td>{{$row->expressname}}</td>
  22. <td>
  23. @if($row->isdefault == 1)
  24. <span class='label label-success'>已设为默认</span>
  25. @else
  26. <span class='label label-default'>未设为默认</span>
  27. @endif
  28. </td>
  29. <td style="text-align:left;">
  30. <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>
  31. <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>
  32. @if($row->is_default == 0)
  33. <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>
  34. @endif
  35. </td>
  36. </tr>
  37. @endforeach
  38. </tbody>
  39. </table>
  40. {!! $pager !!}
  41. <script>
  42. require(['bootstrap'], function($) {
  43. $('.btn').hover(function() {
  44. $(this).tooltip('show');
  45. }, function() {
  46. $(this).tooltip('hide');
  47. });
  48. });
  49. </script>
  50. </div>
  51. <div class="panel-footer">
  52. <a class='btn btn-default' href="{{yzWebUrl(\Yunshop\Exhelper\common\models\Express::SEND_ADD_URL)}}"><i class='fa fa-plus'></i>添加发货单</a>
  53. </div>
  54. </div>
  55. </div>
  56. @endsection