inquiry.blade.php 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <table class="table">
  2. <caption>
  3. {{-- 분류/정렬/목록 수 --}}
  4. @include('mobile.board.component.tab')
  5. </caption>
  6. <tbody>
  7. {{-- 공지사항 --}}
  8. @include('mobile.board.component.notice')
  9. {{-- 1:1 문의 --}}
  10. @if($posts->total > 0)
  11. @foreach($posts->list as $row)
  12. <tr>
  13. <td>
  14. <div class="row">
  15. <div class="col col-md-10">
  16. <p>
  17. @if($boardMeta->use_category && $row->categoryName)
  18. <label>
  19. <a href="{{ $listURL }}?category={{ $row->board_category_id }}" class="me-0" rel="search">
  20. [{{ $row->categoryName }}]
  21. </a>
  22. </label>
  23. @endif
  24. @if($row->is_secret)
  25. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html">
  26. <i class="fas fa-lock"></i> 비밀글입니다.
  27. </a>
  28. @elseif($row->isBlame)
  29. <i class="fas fa-ban"></i> <del>{{ $row->subject }}</del>
  30. @else
  31. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html">{{ $row->subject }}</a>
  32. @endif
  33. @if($row->comment_rows > 0)
  34. <var>[{{ $row->comment_rows }}]</var>
  35. @endif
  36. @if($row->file_rows > 0)
  37. <i class="fas fa-save"></i>
  38. @endif
  39. @if($row->link_rows > 0)
  40. <i class="fas fa-external-link-alt"></i>
  41. @endif
  42. @if($row->image_rows > 0)
  43. <i class="fas fa-image"></i>
  44. @endif
  45. @if($row->isNew)
  46. <span class="badge bg-warning text-dark">New</span>
  47. @endif
  48. @if($row->isHot)
  49. <span class="badge bg-danger">Hot</span>
  50. @endif
  51. </p>
  52. <ul>
  53. <li>{{ $row->user->name }}</li>
  54. <li>{{ $row->createdAt }}</li>
  55. <li>조회 {{ $row->hit }}</li>
  56. <li>추천 {{ $row->like }}</li>
  57. </ul>
  58. </div>
  59. <div class="col-3 col-md-2 align-self-center text-end">
  60. @if($row->is_reply)
  61. <div class="badge bg-success p-2">답변완료</div>
  62. @else
  63. <div class="badge bg-secondary p-2">접수완료</div>
  64. @endif
  65. </div>
  66. </div>
  67. </td>
  68. </tr>
  69. @endforeach
  70. @else
  71. <tr>
  72. <td class="p-5 text-center">
  73. 1:1 문의글이 존재하지 않습니다.
  74. </td>
  75. </tr>
  76. @endif
  77. </tbody>
  78. </table>
  79. @if($posts->total > 0)
  80. <div class="pagination">
  81. {{ $posts->list->onEachSide($params->pageCount)->links('mobile.board.component.pagination') }}
  82. </div>
  83. @endif