event-details.blade.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. @extends('views.layouts.master')
  2. <link rel="stylesheet" href="{{ csset('/themes/pro/modunawa/resources/css/blog-standard.css') }}">
  3. @section('content')
  4. @php
  5. $post = $listType1Book['Book'][0]['Page'][0];
  6. $prePost = $listType1Book['Book'][1]['Page'];
  7. $nextPost = $listType1Book['Book'][2]['Page'];
  8. @endphp
  9. <!--=====================================
  10. BANNER PART START
  11. =======================================-->
  12. <section class="inner-section single-banner">
  13. <div class="container">
  14. <h2>이벤트</h2>
  15. <ol class="breadcrumb">
  16. <li class="breadcrumb-item"><a href="/">Home</a></li>
  17. <li class="breadcrumb-item active" aria-current="page"><a href="{{ route('my-page.event.list') }}">이벤트</a></li>
  18. </ol>
  19. </div>
  20. </section>
  21. <!--=====================================
  22. BANNER PART END
  23. =======================================-->
  24. <!--=====================================
  25. BLOG GRID PART START
  26. =======================================-->
  27. <section class="inner-section blog-details-part">
  28. <div class="container">
  29. <div class="row justify-content-center">
  30. <div class="col-lg-12 col-xl-10">
  31. <article class="blog-details">
  32. <div class="blog-details-content">
  33. <div class="blog-details-top">
  34. <div class="d-flex justify-content-between align-items-center">
  35. <div>
  36. <h2 class="blog-details-title">{{ $post['C5'] }}</h2>
  37. <ul class="blog-details-meta">
  38. <li>
  39. <i class="icofont-ui-calendar"></i>
  40. @if (empty($post['C10']))
  41. <span>상시 이벤트</span>
  42. @else
  43. <span>{{ $post['C10'] }} ~ {{ $post['C11'] }}</span>
  44. @endif
  45. </li>
  46. <li>
  47. <i class="icofont-user-alt-3"></i>
  48. <span>{{ $post['C13'] }}</span>
  49. </li>
  50. <li>
  51. <i class="icofont-star"></i>
  52. <span>{{ DataConverter::execute($post['C9'], "status('post-event')") }}</span>
  53. </li>
  54. </ul>
  55. </div>
  56. <div class="filter-btn mb-0 blog-standard">
  57. <button type="button" class="btn btn_prime" onclick="location.href='{{ route('my-page.event.list') }}'">이벤트 리스트</button>
  58. </div>
  59. </div>
  60. </div>
  61. <!-- 내용 시작 -->
  62. <div class="blog-details-cont">
  63. {!! $post['C6'] !!}
  64. </div>
  65. <!--// 내용 끝 -->
  66. </div>
  67. </article>
  68. <div class="blog-details-navigate">
  69. <div class="row">
  70. <div class="col-md-6 col-lg-6">
  71. <div class="blog-details-prev">
  72. @if ($prePost)
  73. <h4><a href="{{ route('my-page.event.show', $prePost[0]['Id']) }}">{{ $prePost[0]['C2'] }}</a></h4>
  74. <a class="nav-arrow" href="{{ route('my-page.event.show', $prePost[0]['Id']) }}"><i class="icofont-arrow-left"></i>이전</a>
  75. @endif
  76. </div>
  77. </div>
  78. <div class="col-md-6 col-lg-6">
  79. <div class="blog-details-next">
  80. @if ($nextPost)
  81. <h4><a href="{{ route('my-page.event.show', $nextPost[0]['Id']) }}">{{ $nextPost[0]['C2'] }}</a></h4>
  82. <a class="nav-arrow" href="{{ route('my-page.event.show', $nextPost[0]['Id']) }}">다음<i class="icofont-arrow-right"></i></a>
  83. @endif
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </section>
  92. <!--=====================================
  93. BLOG GRID PART END
  94. =======================================-->
  95. @endsection