short.blade.php 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('商品简称'))
  4. <div class="w1200 m0a">
  5. <div class="main rightlist">
  6. <div class="panel panel-info">
  7. <div class="panel-heading">筛选</div>
  8. <div class="panel-body">
  9. <form action="" method="post" class="form-horizontal" role="form">
  10. <div class="form-group">
  11. <label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">关键字</label>
  12. <div class="col-xs-12 col-sm-8 col-lg-9">
  13. <input class="form-control" name="search[keyword]" id="" type="text" value="@if(!empty($search['keyword'])){{$search['keyword']}}@endif">
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">状态</label>
  18. <div class="col-xs-12 col-sm-8 col-lg-9">
  19. <select name="search[status]" class='form-control'>
  20. <option value="1" @if($search['status'] != 0) selected @endif>上架</option>
  21. <option value="0" @if($search['status'] == 0) selected @endif>下架</option>
  22. </select>
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <label class="col-xs-12 col-sm-3 col-md-2 control-label">分类</label>
  27. <div class="col-sm-8 col-xs-12">
  28. {!!$catetory_menus!!}
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">简称状态</label>
  33. <div class="col-xs-12 col-sm-8 col-lg-9">
  34. <select name="search[short]" class='form-control'>
  35. <option value="1" @if($search['short'] == 1) selected @endif>已填写</option>
  36. <option value="0" @if($search['short'] == 0) selected @endif>未填写</option>
  37. </select>
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
  42. <div class="col-sm-8 col-xs-12">
  43. <button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
  44. </div>
  45. </div>
  46. </form>
  47. </div>
  48. </div>
  49. <form action="{{yzWebUrl('plugin.exhelper.admin.short.edit')}}" method="post">
  50. <div class="panel panel-default">
  51. <div class="panel-body table-responsive">
  52. <table class="table table-hover">
  53. <thead class="navbar-inner">
  54. <tr>
  55. <th style="width:60px;">ID</th>
  56. <th style='width:350px;'>商品</th>
  57. <th>商品简称</th>
  58. </tr>
  59. </thead>
  60. <tbody>
  61. @foreach($list as $item)
  62. <tr>
  63. <td>{{$item->id}}</td>
  64. <td title="{!! $item->title !!}">
  65. <img src='{!! tomedia($item->thumb) !!}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc'/> {{$item->title}}</td>
  66. <td>
  67. <input type="text" class="form-control" name="short_title[{{$item->id}}]" value="@if(!is_null($item->hasOneShort)){{$item->hasOneShort->short_title}}@endif">
  68. </td>
  69. </tr>
  70. @endforeach
  71. <tr>
  72. <td colspan='3'>
  73. <input name="submit" type="submit" class="btn btn-primary" value="批量修改商品简称">
  74. </td>
  75. </tr>
  76. </tbody>
  77. </table>
  78. {!! $pager !!}
  79. </div>
  80. </div>
  81. </form>
  82. </div>
  83. </div>
  84. @endsection('content')