gallery.blade.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <div class="row">
  2. @forelse($postPage['Page'] ?? [] as $post)
  3. <div class="{{ $post['PcGalleryClass'] }} {{ $post['MoGalleryClass'] }}">
  4. <div class="blog-card">
  5. <div class="blog-media">
  6. @if ($postType['C5'] === 'gallery')
  7. <a class="blog-img" href="{{ route('dbrbbs.details', [$postCode, $post['C10']]) }}">
  8. {{-- <div class="mask"><i class="fa-solid fa-caret-right"></i></div>--}}
  9. <img :width="this.galleryWidth" :height="this.galleryHeight" src="{{ msset($post['C1']) }}" alt="blog">
  10. </a>
  11. @else
  12. <a class="video-img" href="{{ route('dbrbbs.details', [$postCode, $post['C10']]) }}">
  13. <iframe class="w-100" :width="this.galleryWidth" :height="this.galleryHeight" src="{{ $post['T1'] }}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
  14. </a>
  15. @endif
  16. </div>
  17. <div class="blog-content">
  18. <ul class="blog-meta">
  19. <li>
  20. <i class="fas fa-user"></i>
  21. <span>{{ $post['C9'] }}</span>
  22. </li>
  23. <li>
  24. <i class="fas fa-calendar-alt"></i>
  25. <span>{{ $post['C4'] }}</span>
  26. </li>
  27. </ul>
  28. <h4 class="blog-title">
  29. <a href="{{ route('dbrbbs.details', [$postCode, $post['C10']]) }}">{{ $post['Title'] }}</a>
  30. </h4>
  31. @if ($postType['C5'] === 'gallery')
  32. <p class="blog-desc">
  33. {{ $post['C7'] }}
  34. </p>
  35. @else
  36. <div class="d-flex align-items-center">
  37. <button class="btn-primary w-100"
  38. onclick="window.location.href = '{{ route('dbrbbs.details', [$postCode, $post['C10']]) }}'"
  39. style="margin-right: 10px;">
  40. 동영상 보기
  41. </button>
  42. <button class="btn-danger w-100"
  43. onclick="window.open('{{ $post['T1'] }}', '_blank')">
  44. 유튜브 보기
  45. </button>
  46. </div>
  47. @endif
  48. </div>
  49. </div>
  50. </div>
  51. @empty
  52. <div class="pricing_box1 full_width">
  53. 데이터가 존재하지 않습니다
  54. </div>
  55. @endforelse
  56. </div>