goods-query.blade.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <div style='max-height:500px;overflow:auto;'>
  2. <table class="table table-hover">
  3. @if(count($goods)>0)
  4. <thead>
  5. <th style="width: 33%;text-align: center">商品ID</th>
  6. <th style="width: 33%;text-align: center">商品标题</th>
  7. <th style="width: 33%;text-align: center">选择</th>
  8. </thead>
  9. <tbody>
  10. @foreach($goods as $row)
  11. <tr>
  12. <td style="text-align: center">
  13. {{$row['id']}}
  14. </td>
  15. <td style="text-align: center">
  16. <img src='{{yz_tomedia($row['thumb'])}}'
  17. style='width:30px;height:30px;padding1px;border:1px solid #ccc'/>
  18. {{$row['title']}}
  19. </td>
  20. <td style="text-align: center">
  21. <input type="checkbox" data-title="{{$row['title']}}" name="goods[]" value="{{$row['id']}}">
  22. </td>
  23. </tr>
  24. @endforeach
  25. @endif
  26. @if(count($goods)<=0)
  27. <tr>
  28. <td colspan='4' align='center'>未找到商品</td>
  29. </tr>
  30. @endif
  31. </tbody>
  32. </table>
  33. </div>