templates/pages/tarif_choice/tarif_choice.html.twig line 1

Open in your IDE?
  1. {% extends '@App/base.html.twig' %}
  2. {% block content %}
  3.     {% if isMobile %}
  4.     <figure class="mt-[10px] lg:mt-[40px]">
  5.         {% include '@App/shared/ui/backButton/backButton.html.twig' %}
  6.         {% include '@App/components/header/header.html.twig' with {
  7.             operator: true,
  8.             operatorName: operator.name,
  9.             operatorType: operator.type
  10.         } %}
  11.         <div class="mt-[14px] p-[18px] max-w-full md:max-w-[600px] mx-auto rounded-[24px] bg-white">
  12.             <div class="text-[24px] font-semibold text-[#1B2028]"
  13.                  style="{{ inlineStyles(app.request.get('companyInner'), constant('App\\Constants\\SettingConstants::BLOCK_TITLE_STYLES')) }}"
  14.             >{% trans from 'tarif_choice' %}Тарифні плани{% endtrans %} {{ operator.name }}</div>
  15.             <div class="text-[16px] font-medium text-[#A0A4AE] mb-[20px] text-{{ companyStyles.descriptionTextAlign }}">
  16.                 {% if is_granted('ROLE_FRONT_USER') %}{% trans from 'register' %}Крок 1/3{% endtrans %}{% else %}{% trans from 'register' %}Крок 1/5{% endtrans %}{% endif %}
  17.             </div>
  18.             <div class="flex flex-col gap-[10px]">
  19.                 {% if esimPresence is defined and esimPresence is not null and esimPresence == false %}
  20.                     <div class="rounded-[16px] p-[18px] border border-[#E2E2E9] bg-[#F7F7FA] mt-[40px]">
  21.                         <div class="text-[24px] font-semibold text-[#1B2028] mx-auto text-{{ companyStyles.descriptionTextAlign }} {% if companyStyles.descriptionTextAlign == 'center' %}max-w-[360px]{% endif %}"
  22.                     >{% trans from 'tarif_choice' %}На жаль, наразі немає доступних номерів. Спробуйте пізніше{% endtrans %}</div>
  23.                     </div>
  24.                 {% else %}
  25.                     {% for item in tariffs %}
  26.                         <div class="rounded-[16px] p-[18px] border border-[#E2E2E9] bg-[#F7F7FA]">
  27.                             <div class="flex items-center content-start gap-[6px]">
  28.                                 {% if item.mainImage is not empty %}
  29.                                     <div class="w-[48px] h-[48px]">
  30.                                         {{ sonata_media(item.mainImage, 'reference') }}
  31.                                     </div>
  32.                                 {% elseif item.imageLink %}
  33.                                     <div class="w-[48px] h-[48px]">
  34.                                         <img src="{{ item.imageLink }}"  alt="{{ item.name }}"/>
  35.                                     </div>
  36.                                 {% endif %}
  37.                                 <div class="flex flex-col content-start">
  38.                                     <div class="text-[20px] text-[#1B2028] font-medium">{{ item.name }}</div>
  39.                                     {% if operator.priceText is not empty %}
  40.                                         {% if operator.type == operatorLifecellType() %}{% else %}
  41.                                             <div class="text-[14px] text-[#5B5B5B] font-medium">{{ operator.priceText }} <span class="text-[#1B2028]">{{ item.price }}₴</span></div>
  42.                                         {% endif %}
  43.                                     {% else %}
  44.                                         {% if operator.type == operatorLifecellType() %}{% else %}
  45.                                             <div class="text-[14px] text-[#5B5B5B] font-medium">{% trans from 'tarif_choice' %}Вартість за перші 4 тижні:{% endtrans %} <span class="text-[#1B2028]">{{ item.price }}₴</span></div>
  46.                                         {% endif %}
  47.                                     {% endif %}
  48.                                 </div>
  49.                                 {% if item.detailsButtonText is not empty and item.detailsButtonUrl is not empty %}
  50.                                     <a href="/{{ item.detailsButtonUrl }}" class="text-[14px] ml-auto underline" style="color: {{ companyStyles.linkTextColor }}">{{ item.detailsButtonText }}</a>
  51.                                 {% endif %}
  52.                             </div>
  53.                             <hr class="h-px my-[8px] bg-[#E2E2E9] border-0 ">
  54.                             <article class="prose mb-[10px]">
  55.                                 {{ item.bottomDescription | raw}}
  56.                             </article>
  57.                             <span class="inline-block min-h-[32px] bg-white text-[#909299] text-[14px] font-medium px-[12px] py-[6px] rounded-full text-balance w-fit border border-[#E2E2E9]">
  58.                                 {% if operator.type == operatorLifecellType() %}
  59.                                     {% trans from 'register' %}Вартість послуг на 4 тижні: {% endtrans %}
  60.                                 {% else %}
  61.                                     {% trans from 'tarif_choice' %}Абонплата за наступні 4 тижні: {% endtrans %}
  62.                                 {% endif %}
  63.                                 <span class="text-[#1B2028]">
  64.                                     {{ item.subscription }}
  65.                                     {% if operator.type == operatorLifecellType() %}{% else %} ₴{% endif %}
  66.                                 </span>
  67.                             </span>
  68.                             <a href="{{ path('tariff_selected_page',{tariff:item.id}) }}"
  69.                                class="drop-shadow-[0_7px_5px_rgba(0,0,0,0.25)] hover:drop-shadow-none disabled:drop-shadow-none transition ease-in-out duration-150 w-full text-center py-[6px] block h-[36px] bg-transparent border rounded-[10px] focus:ring-4 focus:ring-blue-300 font-semibold text-[16px] mt-[12px] focus:outline-none"
  70.                                style="{{ inlineStyles(app.request.get('companyInner'), constant('App\\Constants\\SettingConstants::NOT_FILLED_BUTTON_STYLES')) }}"
  71.                             >{% trans with {'%price%': item.price} from 'tarif_choice' %}Купити за %price%₴{% endtrans %}</a>
  72.                         </div>
  73.                     {% endfor %}
  74.                 {% endif %}
  75.                 <!-- modal-window fixed hidden top-0 left-0 right-0 z-50 show:opacity-100 w-full p-4 overflow-x-hidden overflow-y-auto mx-auto md:inset-0 max-h-full -->
  76.                 {% for modal in operator.tariffs %}
  77.                     {% if modal.description is not empty %}
  78.                         {% include '@App/shared/ui/modal/modal.html.twig' with {
  79.                             id: modal.id,
  80.                             name: modal.name,
  81.                             image: modal.mainImage,
  82.                             imageLink: modal.imageLink,
  83.                             description: modal.description | raw,
  84.                             showButton: true,
  85.                         } %}
  86.                     {% endif %}
  87.                 {% endfor %}
  88.             </div>
  89.             {% if faqs is defined and faqs is not empty %}
  90.             {#                <a href="{{ path('how_it_works') }}" class="font-medium text-[#E64829] text-[16px] text-center block hover:underline mt-[30px]">{% trans from 'main' %}Як працює eSIM?{% endtrans %}</a>#}
  91.                 <button data-modal="#modal_faq" class="js--modal hover:underline transition ease-in-out duration-150 w-full block text-center p-[12px] h-[48px] bg-transparent border rounded-[10px] border-none font-semibold text-[16px] mt-[25px] focus:outline-none" style="color: {{ companyStyles.linkTextColor }}">{% trans from 'tarif_choice' %}Поширені питаня та відповіді{% endtrans %}</button>
  92.             {% endif %}
  93.         </div>
  94.     </figure>
  95.     {% else %}
  96.         {% include '@App/pages/tarif_choice/tarif_choice_web.html.twig' %}
  97.     {% endif %}
  98. {% endblock %}