templates/course_detail/price.html.twig line 1

Open in your IDE?
  1. <!-- Accordion START -->
  2. <div class="row g-4">
  3.     <!-- Category item -->
  4.     <div class="col-sm-6 col-lg-12 col-xl-12">
  5.         <h2>Modele Płatności</h2>
  6.         {% if course.price.quarterly matches '/^\\d+$/' %}
  7.             <p>Cały roczny kurs składa się z 30 zajęć. Dla Państwa wygody, stworzyliśmy 3 modele płatności:</p>
  8.         {%  endif %}
  9.     </div>
  10.     {% if course.price.yearly matches '/^\\d+$/' %}
  11.         <!-- Category item -->
  12.         <div class="col-sm-6 col-lg-4 col-xl-4">
  13.             <div class="card card-body shadow h-100">
  14.                 <!-- Title and image -->
  15.                 <div class="d-flex align-items-center">
  16.                     <img src="{{ asset('../../assets/images/element/12.svg') }}" class="h-60px mb-2" alt="">
  17.                     <div class="ms-3">
  18.                         <h5 class="mb-0"><a href="#">Całość</a></h5>
  19.                         <p class="mb-2 small">{{ (course.price.yearly/100)|round(2, 'floor') }} zł za lekcję</p>
  20.                     </div>
  21.                 </div>
  22.                 <h2 class="text-center mt-3">{{ (course.lessons * course.price.yearly/100)|round(2, 'floor') }} zł</h2>
  23.             </div>
  24.         </div>
  25.     {% endif %}
  26.     {% if course.price.quarterly matches '/^\\d+$/' %}
  27.         <!-- Category item -->
  28.         <div class="col-sm-6 col-lg-4 col-xl-4">
  29.             <div class="card card-body shadow h-100">
  30.                 <!-- Title and image -->
  31.                 <div class="d-flex align-items-center">
  32.                     <img src="{{ asset('../../assets/images/element/29.svg') }}" class="h-60px mb-2" alt="">
  33.                     <div class="ms-3">
  34.                         <h5 class="mb-0"><a href="#">Kwartalny</a></h5>
  35.                         <p class="mb-0 small">{{ (course.price.quarterly/100)|round(2, 'floor') }} zł za lekcję</p>
  36.                     </div>
  37.                 </div>
  38.                 <h2 class="text-center mt-3">{{ (course.lessons * course.price.quarterly/100)|round(2, 'floor') }} zł</h2>
  39.             </div>
  40.         </div>
  41.     {% endif %}
  42.     {% if course.price.monthly matches '/^\\d+$/' %}
  43.         <!-- Category item -->
  44.         <div class="col-sm-6 col-lg-4 col-xl-4">
  45.             <div class="card card-body shadow h-100">
  46.                 <!-- Title and image -->
  47.                 <div class="d-flex align-items-center">
  48.                     <img src="{{ asset('../../assets/images/element/19.svg') }}" class="h-60px mb-2" alt="">
  49.                     <div class="ms-3">
  50.                         <h5 class="mb-0"><a href="#">Miesięczny</a></h5>
  51.                         <p class="mb-0 small">{{ (course.price.monthly/100)|round(2, 'floor') }} zł za lekcję</p>
  52.                     </div>
  53.                 </div>
  54.                 <h2 class="text-center mt-3">{{ (4 * course.price.monthly/100)|round(2, 'floor') }} zł</h2>
  55.             </div>
  56.         </div>
  57.     {% endif %}
  58. </div>
  59. <!-- Accordion END -->