send_user_list.blade.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('发货人信息管理'))
  4. <div class="rightlist">
  5. <form action="" method="post">
  6. <div class="panel panel-default">
  7. <div class="panel-body table-responsive">
  8. <table class="table table-hover">
  9. <thead class="navbar-inner">
  10. <tr>
  11. <th style="width:30px;">ID</th>
  12. <th>发件人</th>
  13. <th>发件人电话</th>
  14. <th>发件人签名</th>
  15. <th>发件地邮编</th>
  16. <th>发件地址</th>
  17. <th>发件城市</th>
  18. <th>是否默认</th>
  19. <th>操作</th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. @foreach($list as $item)
  24. <tr>
  25. <td>{{$item->id}}</td>
  26. <td>{{$item->sender_name}}</td>
  27. <td>{{$item->sender_tel}}</td>
  28. <td>{{$item->sender_sign}}</td>
  29. <td>{{$item->sender_code}}</td>
  30. <td>{{$item->sender_address}}</td>
  31. <td>{{$item->sender_city}}</td>
  32. <td>
  33. @if($item->isdefault == 1)
  34. <span class='label label-success'><i class='fa fa-check'></i></span>
  35. @endif
  36. </td>
  37. <td style="text-align:left;">
  38. <a href="{{yzWebUrl('plugin.exhelper.admin.send-user.edit', ['id' => $item->id])}}" class="btn btn-default btn-sm" title="修改"><i class="fa fa-edit"></i></a>
  39. <a href="{{yzWebUrl('plugin.exhelper.admin.send-user.delete', ['id' => $item->id])}}" class="btn btn-default btn-sm" onclick="return confirm('确认删除此模板?')"title="删除"><i class="fa fa-times"></i></a>
  40. @if(empty($item->is_default))
  41. <a href="{{yzWebUrl('plugin.exhelper.admin.send-user.isDefault', ['id' => $item->id])}}" class="btn btn-default btn-sm" onclick="return confirm('确认设置默认?')" title="设置默认"><i class="fa fa-check"></i></a>
  42. @endif
  43. </td>
  44. </tr>
  45. @endforeach
  46. <tr>
  47. <td colspan='8'>
  48. <a class='btn btn-default' href="{{yzWebUrl('plugin.exhelper.admin.send-user.add', ['id' => $item->id])}}"><i class='fa fa-plus'></i> 添加快递单信息模板</a>
  49. </td>
  50. </tr>
  51. </tbody>
  52. </table>
  53. {!! $pager !!}
  54. </div>
  55. </div>
  56. </form>
  57. </div>
  58. <script>
  59. require(['bootstrap'], function ($) {
  60. $('.btn').hover(function () {
  61. $(this).tooltip('show');
  62. }, function () {
  63. $(this).tooltip('hide');
  64. });
  65. });
  66. </script>
  67. @endsection