menu.blade.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('悬浮菜单'))
  4. <script type="text/javascript">
  5. window.optionchanged = false;
  6. require(['bootstrap'], function () {
  7. $('#myTab a').click(function (e) {
  8. e.preventDefault();
  9. $(this).tab('show');
  10. })
  11. });
  12. </script>
  13. <div class="w1200 ">
  14. <div class=" rightlist ">
  15. @include('layouts.tabs')
  16. <div class="right-titpos">
  17. <ul class="add-snav">
  18. <a class='btn btn-primary' href="{{yzWebUrl('plugin.room.admin.room-diy.menu-add')}}"
  19. style="margin-bottom:5px;"><i class='fa fa-plus'></i> 添加悬浮菜单</a>
  20. </ul>
  21. </div>
  22. <form action="" method="post" class="form-horizontal" id="form1">
  23. <div class="right-addbox">
  24. <div class="panel panel-info">
  25. </div>
  26. </div>
  27. </form>
  28. <div class="clearfix">
  29. <div class='panel panel-default'>
  30. <div class='panel-body table-responsive'>
  31. <table class="table table-hover" style="overflow:visible;">
  32. <thead>
  33. <tr>
  34. <th style='width:8%;'>ID</th>
  35. <th style='width:10%;'>排序</th>
  36. <th style='width:10%;'>标题</th>
  37. <th style='width:20%;'>链接</th>
  38. <th style='width:15%;'>状态</th>
  39. <th style='width:10%;'>操作</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. @foreach($list as $row)
  44. <tr>
  45. <td>{{$row['id']}}</td>
  46. <td>{{$row['sort']}}</td>
  47. <td>{{$row['title']}}</td>
  48. <td>
  49. {{$row['url']}}
  50. </td>
  51. <td>
  52. @if($row['is_show'] == 1)
  53. <label class="label label-success" > 显示</label>
  54. @else
  55. <label class="label label-danger"> 隐藏</label>
  56. @endif
  57. </td>
  58. <td style="position:relative; overflow:visible;">
  59. <a href="{{yzWebUrl('plugin.room.admin.room-diy.menu-edit',['id'=>$row['id']])}}"
  60. class="btn btn-default btn-sm" title="编辑"><i class="fa fa-edit"></i></a>
  61. <a href="{{yzWebUrl('plugin.room.admin.room-diy.menu-delete',['id'=>$row['id']])}}"
  62. onclick="return confirm('是否确认删除?');
  63. return false;" class="btn btn-default btn-sm"
  64. title="删除"><i
  65. class="fa fa-trash"></i></a>
  66. </td>
  67. </tr>
  68. @endforeach
  69. </tbody>
  70. </table>
  71. {!! $pager !!}
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <script type="text/javascript" src="{{static_url('js/area/cascade_street.js')}}"></script>
  78. <script language='javascript'>
  79. $('.tdedit').mouseover(function () {
  80. $(this).find('.fa-pencil').show();
  81. }).mouseout(function () {
  82. $(this).find('.fa-pencil').hide();
  83. });
  84. </script>
  85. @endsection