permission_save.blade.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @extends('admin/layout')
  2. @section('content')
  3. <body class="gray-bg">
  4. <div class="wrapper wrapper-content animated fadeInRight">
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <div class="ibox float-e-margins">
  8. <div class="ibox-content">
  9. <form method="get" class="form-horizontal" id="form">
  10. <div class="form-group">
  11. <label class="col-sm-2 control-label" for="title">名称:</label>
  12. <div class="col-sm-8">
  13. <input type="text" class="form-control" id="title" name="title"
  14. value="{{$data->title ?? ''}}">
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label class="col-sm-2 control-label" for="rule">@php echo $type==1?'路由':'标识'; @endphp
  19. :</label>
  20. <div class="col-sm-8">
  21. <input type="text" class="form-control" id="rule" name="rule"
  22. value="{{$data->rule ?? ''}}">
  23. </div>
  24. </div>
  25. @if($type==1)
  26. <div class="form-group">
  27. <label class="col-sm-2 control-label" for="icon">icon:</label>
  28. <div class="col-sm-8">
  29. <input type="text" class="form-control" id="icon" name="icon"
  30. value="{{$data->icon ?? ''}}">
  31. </div>
  32. </div>
  33. @endif
  34. <div class="form-group">
  35. <label class="col-sm-2 control-label" for="sort">排序:</label>
  36. <div class="col-sm-8">
  37. <input type="number" class="form-control" id="sort" name="sort"
  38. value="{{$data->sort ?? 0}}">
  39. </div>
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </body>
  48. @endsection