inquiry.blade.php 3.7 KB

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