event-list.blade.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. @extends('views.layouts.master')
  2. <link rel="stylesheet" href="{{ csset('/themes/pro/modunawa/resources/css/blog-grid.css') }}">
  3. @section('content')
  4. <!--=====================================
  5. BANNER PART START
  6. =======================================-->
  7. <section class="inner-section single-banner">
  8. <div class="container">
  9. <h2>이벤트</h2>
  10. <ol class="breadcrumb">
  11. <li class="breadcrumb-item"><a href="/">Home</a></li>
  12. <li class="breadcrumb-item active" aria-current="page"><a href="{{ route('my-page.event.list') }}">이벤트</a></li>
  13. </ol>
  14. </div>
  15. </section>
  16. <!--=====================================
  17. BANNER PART END
  18. =======================================-->
  19. <!--=====================================
  20. BLOG GRID PART START
  21. =======================================-->
  22. <section class="inner-section blog-grid">
  23. <div class="container">
  24. <div class="row justify-content-center">
  25. <div class="col-lg-12">
  26. <div class="row">
  27. <div class="col-lg-12">
  28. @component('views.partial.table-options', [
  29. 'filterOptions' =>
  30. [
  31. ['Value' => 'mx.status asc', 'Caption' => '진행 이벤트 순서'],
  32. ['Value' => 'mx.status desc', 'Caption' => '종료 이벤트 순서'],
  33. ]
  34. ])
  35. @endcomponent
  36. </div>
  37. </div>
  38. <div class="row row-cols-2 row-cols-md-3 row-cols-lg-3 row-cols-xl-3">
  39. @forelse ($eventPage['Page'] ?? [] as $event)
  40. <div class="col-md-6 col-lg-6 mb-4">
  41. <div class="blog-card">
  42. <div class="blog-media">
  43. <a class="blog-img" href="{{ route('my-page.event.show', $event['Id']) }}">
  44. <img class="@if ($event['C8'] === '2') end-event @endif" src="{{ env('MEDIA_URL') . $event['C1'] }}" alt="blog">
  45. </a>
  46. </div>
  47. <div class="blog-content">
  48. <ul class="blog-meta">
  49. <li>
  50. <i class="fas fa-user"></i>
  51. <span>{{ $event['C9'] }}</span>
  52. </li>
  53. <li>
  54. <i class="fas fa-calendar-alt"></i>
  55. @if (empty($event['C10']))
  56. <span>상시 이벤트</span>
  57. @else
  58. <span>{{ $event['C10'] }} ~ {{ $event['C11'] }}</span>
  59. @endif
  60. </li>
  61. <li>
  62. <i class="icofont-star"></i>
  63. <span>{{ DataConverter::execute($event['C8'], "status('post-event')") }}</span>
  64. </li>
  65. </ul>
  66. <h4 class="blog-title">
  67. <a href="{{ route('my-page.event.show', $event['Id']) }}">{{ $event['C6'] }}</a>
  68. </h4>
  69. <p class="blog-desc">
  70. {{ $event['C7'] }}
  71. </p>
  72. <a class="blog-btn" href="{{ route('my-page.event.show', $event['Id']) }}">
  73. <span>자세히보기</span>
  74. <i class="icofont-arrow-right"></i>
  75. </a>
  76. </div>
  77. </div>
  78. </div>
  79. @empty
  80. @endforelse
  81. </div>
  82. <div class="col-lg-12">
  83. <div class="bottom-paginate d-flex justify-content-end">
  84. {{ $eventPage['Page']->appends(['limit' => request('limit'), 'sort' => request('sort')])->links() }}
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </section>
  91. <!--=====================================
  92. BLOG GRID PART END
  93. =======================================-->
  94. @endsection