room-query.blade.php 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <div style='max-height:500px;overflow:auto;'>
  2. <table class="table table-hover">
  3. @if(count($rooms)>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($rooms as $row)
  11. <tr>
  12. <td style="text-align: center">
  13. {{$row['id']}}
  14. </td>
  15. <td style="text-align: center">
  16. {{$row['title']}}
  17. </td>
  18. <td style="text-align: center">
  19. <input type="checkbox" data-title="{{$row['title']}}" name="rooms[]" @if($row['check'] == 1) checked @endif value="{{$row['id']}}">
  20. </td>
  21. </tr>
  22. @endforeach
  23. @endif
  24. @if(count($rooms)<=0)
  25. <tr>
  26. <td colspan='4' align='center'>未找到直播间</td>
  27. </tr>
  28. @endif
  29. </tbody>
  30. </table>
  31. </div>