media.blade.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <table class="table">
  2. <caption>
  3. {{-- 분류/정렬/목록 수 --}}
  4. @include('board.component.tab')
  5. </caption>
  6. @if($notices)
  7. <colgroup>
  8. <col width="7%"/>
  9. <col width="*"/>
  10. <col width="14%"/>
  11. <col width="14%"/>
  12. <col width="8%"/>
  13. <col width="8%"/>
  14. </colgroup>
  15. <thead>
  16. <tr>
  17. <th>번호</th>
  18. <th>제목</th>
  19. <th>작성자</th>
  20. <th>작성일</th>
  21. <th>조회</th>
  22. <th>추천</th>
  23. </tr>
  24. </thead>
  25. @endif
  26. <tbody>
  27. {{-- 공지사항 --}}
  28. @include('board.component.notice')
  29. {{-- 사진/동영상 게시글 --}}
  30. @if($posts->total > 0)
  31. <tr>
  32. <td colspan="6">
  33. <section>
  34. @foreach($posts->list as $row)
  35. <figure id="figure_{{ $row->num }}" class="figure">
  36. @if($row->thumbnail)
  37. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html">
  38. <img src="{{ $row->thumbnail }}" class="figure-img img-fluid rounded" alt="{{ $row->subject }}" onerror="this.src='/images/default/no_image.png'"/>
  39. </a>
  40. @endif
  41. <figcaption class="figure-caption">
  42. @if($boardMeta->use_category && $row->categoryName)
  43. <label>
  44. <a href="{{ $listURL }}?category={{ $row->board_category_id }}" rel="search">
  45. [{{ $row->categoryName }}]
  46. </a>
  47. </label>
  48. @endif
  49. @if($row->is_secret)
  50. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html">
  51. <i class="fas fa-lock"></i> 비밀글입니다.
  52. </a>
  53. @elseif($row->isBlame)
  54. <i class="fas fa-ban"></i> <del>{{ $row->subject }}</del>
  55. @else
  56. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html">{{ $row->subject }}</a>
  57. @endif
  58. @if($row->comment_rows > 0)
  59. <var>[{{ $row->comment_rows }}]</var>
  60. @endif
  61. @if($row->file_rows > 0)
  62. <i class="fas fa-save"></i>
  63. @endif
  64. @if($row->link_rows > 0)
  65. <i class="fas fa-external-link-alt"></i>
  66. @endif
  67. @if($row->image_rows > 0)
  68. <i class="fas fa-image"></i>
  69. @endif
  70. @if($row->isNew)
  71. <span class="badge bg-warning text-dark">New</span>
  72. @endif
  73. @if($row->isHot)
  74. <span class="badge bg-danger">Hot</span>
  75. @endif
  76. </figcaption>
  77. <strong>{{ $row->user->name }}</strong>
  78. <ul>
  79. <li>{{ $row->createdAt }}</li>
  80. <li>조회 <small>{{ $row->hit }}</small></li>
  81. <li>좋아요 <small>{{ $row->like }}</small></li>
  82. </ul>
  83. </figure>
  84. @endforeach
  85. </section>
  86. </td>
  87. </tr>
  88. @else
  89. <tr>
  90. <td colspan="6" class="p-5">
  91. 게시글이 존재하지 않습니다.
  92. </td>
  93. </tr>
  94. @endif
  95. </tbody>
  96. @if($posts->total > 0)
  97. <tfoot>
  98. <tr>
  99. <td colspan="6">
  100. {{ $posts->list->onEachSide($params->pageCount)->links('board.component.pagination') }}
  101. </td>
  102. </tr>
  103. </tfoot>
  104. @endif
  105. </table>