main.blade.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. @extends('mobile.layouts.app')
  2. @section('content')
  3. <div id="index" class="container">
  4. <section>
  5. <div class="row">
  6. <div class="col-lg-6 mb-2 mb-lg-0 notice">
  7. <div class="row align-items-end">
  8. <div class="col">
  9. 공지사항
  10. </div>
  11. <div class="col text-end">
  12. <a href="{{ route('board.list', 'notice') }}">전체보기</a>
  13. </div>
  14. </div>
  15. <hr/>
  16. <table class="table table-borderless">
  17. <colgroup>
  18. <col/>
  19. <col/>
  20. <col/>
  21. </colgroup>
  22. <tbody>
  23. @if($notice)
  24. @foreach($notice->list as $row)
  25. <tr>
  26. <td>
  27. <img src="/images/icon/notice.gif" alt="[공지]"/>
  28. </td>
  29. <td>
  30. <p class="ellip">
  31. @if($row->categoryName)
  32. <label>
  33. <a href="{{ $row->listURL }}?category={{ $row->board_category_id }}" rel="search">
  34. [{{ $row->categoryName }}]
  35. </a>
  36. </label>
  37. @endif
  38. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html">{{ $row->subject }}</a>
  39. </p>
  40. </td>
  41. <td class="text-end">
  42. <small>{{ $row->createdAt }}</small>
  43. </td>
  44. </tr>
  45. @endforeach
  46. @else
  47. <tr>
  48. <td colspan="3" class="text-center p-2">
  49. 공지 글이 없습니다.
  50. </td>
  51. </tr>
  52. @endif
  53. </tbody>
  54. </table>
  55. </div>
  56. <div class="col-lg-6 mb-2 mb-lg-0 latest">
  57. <div class="row align-items-end">
  58. <div class="col">
  59. 최근 게시글
  60. </div>
  61. <div class="col text-end">
  62. <a href="/recently">전체보기</a>
  63. </div>
  64. </div>
  65. <hr/>
  66. <table class="table table-borderless">
  67. <tbody>
  68. @if($recent)
  69. @foreach($recent->list as $row)
  70. <tr>
  71. <td>
  72. <div class="row">
  73. <div class="col">
  74. <a href="{{ route('board.list', $row->code) }}" class="board-name">
  75. {{ $row->boardName }}
  76. </a>
  77. </div>
  78. <div class="col-auto text-end">
  79. <small>{{ $row->createdAt }}</small>
  80. </div>
  81. </div>
  82. <p class="ellip">
  83. @if($row->categoryName)
  84. <label>
  85. <a href="{{ $row->listURL }}?category={{ $row->board_category_id }}" rel="search">
  86. [{{ $row->categoryName }}]
  87. </a>
  88. </label>
  89. @endif
  90. @if($row->is_secret)
  91. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html">
  92. <i class="fas fa-lock"></i> 비밀글입니다.
  93. </a>
  94. @elseif($row->isBlame)
  95. <i class="fas fa-ban"></i> <del>{{ $row->subject }}</del>
  96. @else
  97. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html">{{ $row->subject }}</a>
  98. @endif
  99. @if($row->comment_rows > 0)
  100. <var>[{{ $row->comment_rows }}]</var>
  101. @endif
  102. @if($row->file_rows > 0)
  103. <i class="fas fa-save"></i>
  104. @endif
  105. @if($row->link_rows > 0)
  106. <i class="fas fa-external-link-alt"></i>
  107. @endif
  108. @if($row->image_rows > 0)
  109. <i class="fas fa-image"></i>
  110. @endif
  111. @if($row->isNew)
  112. <span class="badge bg-warning text-dark">New</span>
  113. @endif
  114. @if($row->isHot)
  115. <span class="badge bg-danger">Hot</span>
  116. @endif
  117. </p>
  118. </td>
  119. </tr>
  120. @endforeach
  121. @else
  122. <tr>
  123. <td colspan="3" class="text-center p-2">
  124. 최근 게시글이 없습니다.
  125. </td>
  126. </tr>
  127. @endif
  128. </tbody>
  129. </table>
  130. </div>
  131. </div>
  132. </section>
  133. <section class="photo">
  134. <div class="row align-items-end">
  135. <div class="col">
  136. 포토/미디어
  137. </div>
  138. <div class="col text-end">
  139. <a href="{{ route('recently') }}">전체보기</a>
  140. </div>
  141. </div>
  142. <hr/>
  143. @if($photo && $photo->total > 0)
  144. <div class="d-flex flex-nowrap overflow-scroll photo-strip">
  145. @foreach($photo->list as $row)
  146. <figure class="figure h-100 d-flex flex-column">
  147. @if($row->thumbnail)
  148. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html" target="_self" class="ratio ratio-4x3">
  149. <img src="{{ $row->thumbnail }}" class="figure-img img-fluid rounded object-fit-cover" alt="{{ $row->subject }}" onerror="this.src='{{ NO_IMAGE_NORMAL_SRC }}'"/>
  150. </a>
  151. @endif
  152. <figcaption class="figure-caption">
  153. {{--
  154. @if($row->categoryName)
  155. <label>
  156. <a href="{{ $row->listURL }}?category={{ $row->board_category_id }}" rel="search">
  157. [{{ $row->categoryName }}]
  158. </a>
  159. </label>
  160. @else
  161. <label>
  162. <a href="{{ $row->listURL }}" rel="search">
  163. [{{ $row->boardName }}]
  164. </a>
  165. </label>
  166. @endif
  167. --}}
  168. @if($row->is_secret)
  169. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html" target="_self">
  170. <i class="fas fa-lock"></i> 비밀글입니다.
  171. </a>
  172. @elseif($row->isBlame)
  173. <i class="fas fa-ban"></i> <del>{{ $row->subject }}</del>
  174. @else
  175. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html" target="_self">{{ $row->subject }}</a>
  176. @endif
  177. @if($row->comment_rows > 0)
  178. <var>[{{ $row->comment_rows }}]</var>
  179. @endif
  180. @if($row->file_rows > 0)
  181. <i class="fas fa-save"></i>
  182. @endif
  183. @if($row->link_rows > 0)
  184. <i class="fas fa-external-link-alt"></i>
  185. @endif
  186. @if($row->image_rows > 0)
  187. <i class="fas fa-image"></i>
  188. @endif
  189. @if($row->isNew)
  190. <span class="badge bg-warning text-dark">New</span>
  191. @endif
  192. @if($row->isHot)
  193. <span class="badge bg-danger">Hot</span>
  194. @endif
  195. </figcaption>
  196. </figure>
  197. @endforeach
  198. </div>
  199. @else
  200. <div class="text-center p-2">
  201. 사진 글이 없습니다.
  202. </div>
  203. @endif
  204. </section>
  205. <section class="news">
  206. <div class="row pt-2 align-items-end">
  207. <div class="col">
  208. 주요 기사
  209. </div>
  210. <div class="col text-end">
  211. </div>
  212. </div>
  213. <hr/>
  214. <div class="row">
  215. @if($news)
  216. @foreach($news as $new)
  217. @break($loop->index == 8)
  218. <div class="col-sm-2 col-sm-6 col-xl-3 mb-1">
  219. <a href="{{ $new['link'] }}" class="d-flex" title="{{ $new['title'] }}" target="_blank">
  220. <div class="flex-shrink-0">
  221. @isset($new['thumbnail'])
  222. <div class="thumb">
  223. <img src="{!! $new['thumbnail'] !!}" class="rounded" alt="{{ $new['title'] }}">
  224. </div>
  225. @endisset
  226. </div>
  227. <div class="flex-grow-1 ms-3">
  228. <p class="fw-bold">{{ $new['title'] }}</p>
  229. <small class="text-muted">{{ $new['source'] ?? null }}</small>
  230. </div>
  231. </a>
  232. </div>
  233. @endforeach
  234. @endif
  235. </div>
  236. </section>
  237. <hr/>
  238. <section>
  239. <div class="row">
  240. <div class="col-lg-3">
  241. <fxwidget-cc amount="1000" decimals="0" large="false" shadow="true" symbol="true" grouping="true" from="KRW" to="USD" background-color="#000000" lang="ko" border-radius="0.2"></fxwidget-cc>
  242. </div>
  243. <div class="col-lg-3">
  244. <fxwidget-er inverse="true" amount="1000" decimals="0" large="false" shadow="false" symbol="true" flag="true" changes="true" grouping="true" main-curr="KRW" sel-curr="EUR,USD,GBP,CAD,AUD,CNY,JPY,HKD" background-color="#000000" border="true" border-radius="0" separator="," decimal-point="."></fxwidget-er>
  245. </div>
  246. <div class="col-lg-6 align-self-end">
  247. <div id="ww_d8c9e8037d02a" v='1.3' loc='auto' a='{"t":"responsive","lang":"ko","sl_lpl":1,"ids":[],"font":"Arial","sl_ics":"one_a","sl_sot":"celsius","cl_bkg":"#000000","cl_font":"#FFFFFF","cl_cloud":"#FFFFFF","cl_persp":"#81D4FA","cl_sun":"#FFC107","cl_moon":"#FFC107","cl_thund":"#FF5722","cl_odd":"#FFFFFF17"}'>Weather Data Source: <a href="https://wetterlang.de/" id="ww_d8c9e8037d02a_u" target="_blank">Wettervorhersage 30 tage</a></div>
  248. </div>
  249. </div>
  250. </section>
  251. </div>
  252. <script async src="https://s.fx-w.io/widgets/currency-converter/latest.js?ko"></script>
  253. <script async src="https://s.fx-w.io/widgets/exchange-rates/latest.js?ko"></script>
  254. <script async src="https://app1.weatherwidget.org/js/?id=ww_d8c9e8037d02a"></script>
  255. @endsection
  256. @push('styles')
  257. <link rel="stylesheet" href="{{ asset('css/mobile/main.css') }}"/>
  258. @endpush