lease-term-list.blade.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('租期设置'))
  4. <div class="right-titpos">
  5. <ul class="add-snav">
  6. <li class="active"><a href="#">租期设置</a></li>
  7. <a class='btn btn-primary' href="{{yzWebUrl('plugin.lease-toy.admin.lease-term.add')}}"
  8. style="margin-bottom:5px;"><i class='fa fa-plus'></i> 添加租期</a>
  9. </ul>
  10. </div>
  11. <div class='panel panel-default'>
  12. <div class='panel-body'>
  13. <table class="table table-hover" style="overflow:visible;">
  14. <thead>
  15. <tr style="height: 20%;text-align: center;">
  16. <th style='width:5%;'>排序</th>
  17. <th style='width:10%;'>名称</th>
  18. <th style='width:10%;'>天数</th>
  19. <th style='width:10%;'>优惠比例</th>
  20. <th style='width:10%;'>操作</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. @foreach($list as $row)
  25. <tr>
  26. <td>{{$row->sequence}}</td>
  27. <td>{{$row->term_name}}</td>
  28. <td>{{$row->term_days}}</td>
  29. <td>
  30. {{$row->term_discount}}
  31. @if (!empty($row->term_discount))
  32. %
  33. @endif
  34. </td>
  35. <td>
  36. <a class="btn btn-default"
  37. href="{!! yzWebUrl('plugin.lease-toy.admin.lease-term.edit', ['id'=>$row->id]) !!}">编辑</a>
  38. <a class="btn btn-default"
  39. href="{!! yzWebUrl('plugin.lease-toy.admin.lease-term.deleted', ['id'=>$row->id]) !!}"
  40. onclick="return confirm('是否确认删除?');return false;">删除</a>
  41. </td>
  42. </tr>
  43. @endforeach
  44. </tbody>
  45. </table>
  46. {!! $pager !!}
  47. </div>
  48. </div>
  49. <div style="width:100%;height:150px;"></div>
  50. <script language='javascript'>
  51. $(function () {
  52. $('#export').click(function () {
  53. $('#form1').attr('action', '{!! yzWebUrl('plugin.lease-toy.admin.lease-term.export') !!}');
  54. $('#form1').submit();
  55. });
  56. $('#search').click(function () {
  57. $('#form1').attr('action', '{!! yzWebUrl('plugin.lease-toy.admin.lease-term.index') !!}');
  58. $('#form1').submit();
  59. });
  60. });
  61. </script>
  62. @endsection