templates/website/page/ticket.html.twig line 1

  1. {% extends '@web/base.html.twig' %}
  2. {% if page is defined and page is not empty %}
  3.     {% set metaParams = {
  4.         'title': ticket.title,
  5.         'metaDescription': ticket.metaDescription,
  6.         'metaKeywords': ticket.metaKeywords,
  7.         'image':(page.metaImage is defined ? page.metaImage : page.image is defined ? page.image : null)
  8.     } %}
  9. {% else %}
  10.     {% set metaParams = {} %}
  11. {% endif %}
  12. {% block content %}
  13.     <section class="content-tickets">
  14.         <div class="container-fluid">
  15.             {% block header %}
  16.                 {% include '@web/parts/header.html.twig' %}
  17.             {% endblock %}
  18.             <div class="wrapper-tickets skeleton">
  19.                 <div class="wrapper-types">
  20.                     <div class="header header-ticket">
  21.                         <div class="wrapper-name">
  22.                             <h1>{{ ticket.title }}</h1>
  23.                             <div class="price price-desktop">
  24.                                 <div class="cutout"></div>
  25.                                 <span>
  26.                                    {% if ticket.isFree %}
  27.                                        {{ 'ԱՆՎՃԱՐ'|trans }}
  28.                                    {% else %}
  29.                                        {{ ticket.discountedPrice == 0 ? ticket.price : ticket.discountedPrice }}֏
  30.                                    {% endif %}
  31.                                 </span>
  32.                             </div>
  33.                         </div>
  34.                         <div class="ticket-description">
  35.                             <p>{{ ticket.description|raw }}</p>
  36.                         </div>
  37.                         {% if isCharity == false %}
  38.                         <div class="options">
  39.                             <div class="date-pick">
  40.                                 <span>{{ 'Ընտրել նախընտրելի օրը'|trans }}</span>
  41.                                 <div class="calendar">
  42.                                     <label for="checkin" class="date-picker">
  43.                                         <img src="{{ asset('static_images/calendar.png') }}" width="32px" height="32px"
  44.                                              alt="calendar">
  45.                                         <span id="selectedDate"></span>
  46.                                     </label>
  47.                                     <input type="text" style="height: 0!important;border: unset!important; "
  48.                                            class=" datepicker datepicker-click checkin" id="checkin">
  49.                                 </div>
  50.                             </div>
  51.                             {#                            <div class="promo"> #}
  52.                             {#                                <span>{{ 'Պրոմոկոդ (եթե ունեք)'|trans }}</span> #}
  53.                             {#                                <div class="promo-place"> #}
  54.                             {#                                    <img src="{{ asset('static_images/promo-logo.png') }}" width="32px"  height="32px" alt=""> #}
  55.                             {#                                    <input type="text" placeholder="123456789" width="10px" class ="promo-input"> #}
  56.                             {#                                </div> #}
  57.                             {#                            </div> #}
  58.                         </div>
  59.                         {% endif %}
  60.                     </div>
  61.                     <div class="header header-ticket-mobile ">
  62.                         <div class="wrapper-name">
  63.                             <h1>{{ ticket.title }}</h1>
  64.                         </div>
  65.                         <div class="options">
  66.                             <div class="options-column-top">
  67.                                 <div class="price-mobile">
  68.                                     {{ ticket.description|raw }}
  69.                                     <div class="price ">
  70.                                         <div class="cutout"></div>
  71.                                         <span>
  72.                                            {% if ticket.isFree %}
  73.                                                {{ 'ԱՆՎՃԱՐ'|trans }}
  74.                                            {% else %}
  75.                                                {{ ticket.discountedPrice == 0 ? ticket.price : ticket.discountedPrice }}֏
  76.                                            {% endif %}
  77.                                         </span>
  78.                                     </div>
  79.                                 </div>
  80.                             </div>
  81.                             {% if isCharity == false %}
  82.                             <div class="options-column-bottom">
  83.                                 <div class="date-pick">
  84.                                     <span>{{ 'Ընտրել նախընտրելի օրը'|trans }}</span>
  85.                                     <div class="calendar">
  86.                                         <label for="checkin-mobile" class="date-picker">
  87.                                             <img src="{{ asset('static_images/calendar.png') }}" width="32px"
  88.                                                  height="32px" alt="calendar">
  89.                                             <span id="selectedDateMobile">10.02.2024</span>
  90.                                         </label>
  91.                                         <input type="text" style="height: 0!important;border: unset!important; "
  92.                                                class=" datepicker datepicker-click checkin" id="checkin-mobile">
  93.                                     </div>
  94.                                 </div>
  95.                                 {#                                <div class="promo"> #}
  96.                                 {#                                    <span>{{ 'Պրոմոկոդ (եթե ունեք)'|trans }}</span> #}
  97.                                 {#                                    <div class="promo-place"> #}
  98.                                 {#                                        <img src="{{ asset('static_images/promo-logo.png') }}" width="32px" #}
  99.                                 {#                                             height="32px" alt="promo"> #}
  100.                                 {#                                        <input type="text" placeholder="123456789" width="10px" class="promo-input"> #}
  101.                                 {#                                    </div> #}
  102.                                 {#                                </div> #}
  103.                             </div>
  104.                             {% endif %}
  105.                         </div>
  106.                     </div>
  107.                     <div class="body">
  108.                         {% if isCharity %}
  109.                             <div class="tickets mt-5 isCharity" id="tickets">
  110.                                 <div class="item">
  111.                                     <div class="info">
  112.                                         <span class="name">{{ ticket.title }}</span>
  113. {#                                        <span class="description">{{ ticket.description|raw }}</span>#}
  114.                                     </div>
  115.                                     <div class="price">
  116.                                         <div class="quantity-picker">
  117.                                             <div class="quantity-picker">
  118.                                                 <button class="btn-decrease" data-item-id="{{ ticket.id }}">-</button>
  119.                                                 <input type="number" class="item-quantity count" value="1"
  120.                                                        id="item-quantity-{{ ticket.id }}"/>
  121.                                                 <button class="btn-increase" data-item-id="{{ ticket.id }}">+</button>
  122.                                             </div>
  123.                                         </div>
  124.                                         <span class="amount"> {{ ticket.price ? (ticket.price ~ '֏'|trans) : 'ԱՆՎՃԱՐ'|trans }}</span>
  125.                                     </div>
  126.                                 </div>
  127.                             </div>
  128.                         {% else %}
  129.                             <div class="wrapper-title">
  130.                                 <h2>{{ 'ԱՅԼ ՏՈՄՍԵՐ'|trans }}</h2>
  131.                             </div>
  132.                             <div class="tickets" id="tickets">
  133.                                 {% for item in tickets %}
  134.                                     <div class="item">
  135.                                         <div class="info">
  136.                                             <span class="name">{{ item.title }}</span>
  137.                                             <span class="description">{{ item.description|raw }}</span>
  138.                                         </div>
  139.                                         <div class="price">
  140.                                             <div class="quantity-picker">
  141.                                                 <div class="quantity-picker">
  142.                                                     <button class="btn-decrease" data-item-id="{{ item.id }}">-</button>
  143.                                                     <input type="number" class="item-quantity count" value="1"
  144.                                                            id="item-quantity-{{ item.id }}"/>
  145.                                                     <button class="btn-increase" data-item-id="{{ item.id }}">+</button>
  146.                                                 </div>
  147.                                                 {#                                            <span onclick="removeOne(this)">-</span> #}
  148.                                                 {#                                            <span class="count">1</span> #}
  149.                                                 {#                                            <span onclick="addOne(this)">+</span> #}
  150.                                             </div>
  151.                                             <span class="amount"> {{ item.price ? (item.price ~ '֏'|trans) : 'ԱՆՎՃԱՐ'|trans }}</span>
  152.                                         </div>
  153.                                     </div>
  154.                                 {% endfor %}
  155.                             </div>
  156.                         {% endif %}
  157.                     </div>
  158.                 </div>
  159.                 <form action="{{ path('app_checkout') }}" method="post" id="paymentFrom">
  160.                     {% block basket %}
  161.                         {% include '@web/parts/basket.html.twig' %}
  162.                     {% endblock %}
  163.                     {% block paymentModals %}
  164.                         {% include '@web/parts/payment-modal.html.twig' %}
  165.                     {% endblock %}
  166.                 </form>
  167.                 <div class="mobile-attention">
  168.                     {% if isCharity %}
  169.                         <div class="attention-message charity">
  170.                             <div>{{ 'charity1'|trans }}</div>
  171.                             <div>{{ 'charity2'|trans }}</div>
  172.                             <div>{{ 'charity3'|trans }}</div>
  173.                         </div>
  174.                         <div class="attention-message border-0 section-fragmented w-100 text-white p-4">
  175.                             <div style="display: flex;align-items: center;flex-direction: column;gap: 10px;">
  176.                                 <p class="p-0 m-0" >{{ 'BenefactorsFromRussia'|trans }}</p>
  177.                                 {% if page.file is not empty %}
  178.                                     <a class="btn-red" href="{{ page.file }}" target="_blank">
  179.                                         {{ 'հաշվեհամար'|trans }}
  180.                                     </a>
  181.                                 {% endif %}
  182.                             </div>
  183.                         </div>
  184.                     {% else %}
  185.                         <div class="attention-message">
  186.                             <ul>
  187.                                 <li>{{ 'Տոմսը վավեր է միայն նշված օրը օգտագործելու դեպքում'|trans }}</li>
  188.                                 <li>{{ '1 տոմսը նախատեսված է միայն 1 հյուրի համար'|trans }}</li>
  189.                                 {#                                    <li>{{ 'Տոմսի վերադարձ կատարվում է միայն այցելության նախորդ օրը'|trans }}</li> #}
  190.                                 <li>{{ 'Գնված տոմսը վերադարձի ենթակա չէ'|trans }}</li>
  191.                             </ul>
  192.                         </div>
  193.                         <div class="attention-message">
  194.                             <ul>
  195.                                 <li>{{ '3d-Secure'|trans }}</li>
  196.                                 <li>{{ 'rate-info'|trans }}</li>
  197.                             </ul>
  198.                         </div>
  199.                     {% endif %}
  200.                 </div>
  201.             </div>
  202.             {% if isCharity %}
  203.             <div class="attention charity">
  204.                 <div>{{ 'charity1'|trans }}</div>
  205.                 <div>{{ 'charity2'|trans }}</div>
  206.                 <div>{{ 'charity3'|trans }}</div>
  207.             </div>
  208.             <div class="attention border-0 section-fragmented w-100 text-white p-4">
  209.                 <div style="display: flex;align-items: center;justify-content: space-between">
  210.                     <p class="p-0 m-0" style="max-width: 65vw">{{ 'BenefactorsFromRussia'|trans }}</p>
  211.                     {% if page.file is not empty %}
  212.                         <a class="btn-red" href="{{ page.file }}" target="_blank">
  213.                             {{ 'հաշվեհամար'|trans }}
  214.                         </a>
  215.                     {% endif %}
  216.                 </div>
  217.             </div>
  218.             {% else %}
  219.             <div class="attention">
  220.                 <ul>
  221.                     <li>{{ 'Տոմսը վավեր է միայն նշված օրը օգտագործելու դեպքում'|trans }}</li>
  222.                     <li>{{ '1 տոմսը նախատեսված է միայն 1 հյուրի համար'|trans }}</li>
  223.                     {#                    <li>{{ 'Տոմսի վերադարձ կատարվում է միայն այցելության նախորդ օրը'|trans }}</li> #}
  224.                     <li>{{ 'Գնված տոմսը վերադարձի ենթակա չէ'|trans }}</li>
  225.                 </ul>
  226.             </div>
  227.             <div class="attention">
  228.                 <ul>
  229.                     <li>{{ '3d-Secure'|trans }}</li>
  230.                     <li>{{ 'rate-info'|trans }}</li>
  231.                 </ul>
  232.             </div>
  233.             {% endif %}
  234.         </div>
  235.         {% block footer %}
  236.             {% include '@web/parts/footer.html.twig' %}
  237.         {% endblock %}
  238.         {% block toast %}
  239.             {% include '@web/parts/toast.html.twig' %}
  240.         {% endblock %}
  241.     </section>
  242. {% endblock %}
  243. {% block javascripts %}
  244.     {{ parent() }}
  245.     <script src="{{ asset('scripts/basket.js') }}"></script>
  246. {% endblock %}