templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>EFS portál - {% block title %}Vítejte!{% endblock %}</title>
  6.     <link rel="icon"
  7.           href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
  8.     <meta name="msapplication-TileColor" content="#ffffff">
  9.     <meta name="theme-color" content="#ffffff">
  10.     {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  11.     {% block stylesheets %}
  12.         {{ encore_entry_link_tags('styles') }}
  13.     {% endblock %}
  14. </head>
  15. <body>
  16. <div id="modal" class="modal fade show" tabindex="-1" role="dialog" aria-labelledby="modal-default" aria-hidden="true">
  17.     <div class="modal-dialog modal-dialog-centered modal-xl" role="document">
  18.         <div class="modal-content">
  19.             <div class="modal-header border-0" >
  20.                 <h1 class="h4 modal-title"></h1>
  21.                 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  22.             </div>
  23.             <div class="modal-body">
  24.             </div>
  25.             <div class="modal-footer d-none">
  26.                 <button type="button" class="btn btn-link text-gray ms-auto no" data-bs-dismiss="modal">Zrušit</button>
  27.                 <button type="button" class="btn btn-secondary yes" >Ano</button>
  28.             </div>
  29.         </div>
  30.     </div>
  31. </div>
  32. <div id="loading">
  33.     <div style="color: #ffffff; margin-top: -40px;margin-left: -40px;width: 80px;height: 80px;position: fixed;left: 50%;top: 50%;z-index: 10000000000;"><i class="fa fa-spinner fa-spin fa-3x fa-fw"></i></div>
  34. </div>
  35. {% if app.user %}
  36. <nav class="navbar navbar-dark navbar-theme-primary px-4 col-12 d-lg-none">
  37.     <a class="navbar-brand me-lg-5" href="{{ path('app_homepage') }}">
  38.         <img class="navbar-brand-dark" src="/assets/img/footer-logo.svg" alt="EFS GROUP"> <img class="navbar-brand-light" src="/assets/img/footer-logo.svg" alt="EFS GROUP" />
  39.     </a>
  40.     <div class="d-flex align-items-center">
  41.         <button class="navbar-toggler d-lg-none collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
  42.             <span class="navbar-toggler-icon"></span>
  43.         </button>
  44.     </div>
  45. </nav>
  46. <nav id="sidebarMenu" class="sidebar d-lg-block bg-gray-800 text-white collapse" data-simplebar="init">
  47.         <div class="sidebar-inner px-4 pt-3 d-flex flex-column">
  48.             {% if app.user %}
  49.                 <div class="user-card d-flex justify-content-between justify-content-md-center pb-4 d-lg-none">
  50. {#                    <div class="d-flex align-items-center">#}
  51. {#                        <div class="avatar-lg me-4">#}
  52. {#                            <img src="../assets/img/team/profile-picture-3.jpg"#}
  53. {#                                 class="card-img-top rounded-circle border-white" alt="{{ app.user.username }}">#}
  54. {#                        </div>#}
  55. {#                        <div class="d-block">#}
  56. {#                            <h2 class="h5 mb-3">Vítejte</h2>#}
  57. {#                            <a href="{{ path('app_logout') }}"#}
  58. {#                               class="btn btn-secondary btn-sm d-inline-flex align-items-center">#}
  59. {#                                <svg class="icon icon-xxs me-1" fill="none" stroke="currentColor" viewBox="0 0 24 24"#}
  60. {#                                     xmlns="http://www.w3.org/2000/svg">#}
  61. {#                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"#}
  62. {#                                          d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"></path>#}
  63. {#                                </svg>#}
  64. {#                                Odhlásit#}
  65. {#                            </a>#}
  66. {#                        </div>#}
  67. {#                    </div>#}
  68. {#                    <div class="collapse-close d-md-none">#}
  69. {#                        <a href="#sidebarMenu" data-bs-toggle="collapse"#}
  70. {#                           data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="true"#}
  71. {#                           aria-label="Toggle navigation">#}
  72. {#                            <svg class="icon icon-xs" fill="currentColor" viewBox="0 0 20 20"#}
  73. {#                                 xmlns="http://www.w3.org/2000/svg">#}
  74. {#                                <path fill-rule="evenodd"#}
  75. {#                                      d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"#}
  76. {#                                      clip-rule="evenodd"></path>#}
  77. {#                            </svg>#}
  78. {#                        </a>#}
  79. {#                    </div>#}
  80.                     <img src="/assets/img/footer-logo.svg"
  81.                          class="card-img-top border-white" alt="EFS System">
  82.                 </div>
  83.             {% endif %}
  84.             <ul class="nav flex-column pt-3 pt-md-0">
  85.                 <li class="nav-item ">
  86.                     <a href="{{ path('app_homepage') }}"
  87.                        class="nav-link d-flex align-items-center justify-content-between">
  88.                     <span>
  89.                     <span class="sidebar-icon">
  90.                     <svg class="icon icon-xs me-2" fill="currentColor" viewBox="0 0 20 20"
  91.                          xmlns="http://www.w3.org/2000/svg"><path
  92.                                 d="M2 10a8 8 0 018-8v8h8a8 8 0 11-16 0z"></path><path
  93.                                 d="M12 2.252A8.014 8.014 0 0117.748 8H12V2.252z"></path></svg>
  94.                     </span>
  95.                     <span class="sidebar-text">Nástěnka</span>
  96.                     </span>
  97.                     </a>
  98.                 </li>
  99.                 {% if is_granted('ROLE_COMPANY_ADMIN') or is_granted('ROLE_ADMIN') %}
  100.                     <li class="nav-item {% if app.request.attributes.get( '_route' ) starts with 'app_company' %}active{% endif %}">
  101.                         <a href="{{ path('app_company_group_index') }}" class="nav-link">
  102.                             <span class="sidebar-icon">
  103.                                 <svg class="icon icon-xs me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M2 5a2 2 0 012-2h8a2 2 0 012 2v10a2 2 0 002 2H4a2 2 0 01-2-2V5zm3 1h6v4H5V6zm6 6H5v2h6v-2z" clip-rule="evenodd"></path><path d="M15 7h1a2 2 0 012 2v5.5a1.5 1.5 0 01-3 0V7z"></path></svg>
  104.                             </span>
  105.                             <span class="sidebar-text">Skupiny</span>
  106.                         </a>
  107.                     </li>
  108.                 {% endif %}
  109.                 {% if is_granted('ROLE_COMPANY_ADMIN') or is_granted('ROLE_ADMIN') %}
  110.                     <li class="nav-item {% if app.request.attributes.get( '_route' ) starts with 'app_product' %}active{% endif %}">
  111.                         <a href="{{ path('app_product_index') }}" class="nav-link">
  112.                         <span class="sidebar-icon">
  113.                             <svg class="icon icon-xs me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 3a2 2 0 100 4h12a2 2 0 100-4H4z"></path><path fill-rule="evenodd" d="M3 8h14v7a2 2 0 01-2 2H5a2 2 0 01-2-2V8zm5 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z" clip-rule="evenodd"></path></svg>
  114.                         </span>
  115.                             <span class="sidebar-text">Produkty</span>
  116.                         </a>
  117.                     </li>
  118.                 {% endif %}
  119.                 {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_MERCHANT') %}
  120.                     <li class="nav-item {% if app.request.attributes.get( '_route' ) starts with 'app_eshop_index' %}active{% endif %}">
  121.                         <a href="{{ path('app_eshop_index') }}" class="nav-link">
  122.                                 <span class="sidebar-icon">
  123.                                     <svg class="icon icon-xs me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
  124.                                       <path d="M3.5 2.75a.75.75 0 00-1.5 0v14.5a.75.75 0 001.5 0v-4.392l1.657-.348a6.449 6.449 0 014.271.572 7.948 7.948 0 005.965.524l2.078-.64A.75.75 0 0018 12.25v-8.5a.75.75 0 00-.904-.734l-2.38.501a7.25 7.25 0 01-4.186-.363l-.502-.2a8.75 8.75 0 00-5.053-.439l-1.475.31V2.75z"></path>
  125.                                     </svg>
  126.                                     </span>
  127.                             <span class="sidebar-text">Investiční kovy</span>
  128.                         </a>
  129.                     </li>
  130.                 {% endif %}
  131.                 {% if is_granted('ROLE_COMPANY_USER') or is_granted('ROLE_ADMIN') or is_granted("ROLE_MERCHANT") %}
  132.                     <li class="nav-item {% if app.request.attributes.get( '_route' ) starts with 'app_order' %}active{% endif %}">
  133.                         <a href="{{ path('app_order_index') }}" class="nav-link">
  134.                         <span class="sidebar-icon">
  135.                             <svg class="icon icon-xs me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"></path><path fill-rule="evenodd" d="M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm3 4a1 1 0 000 2h.01a1 1 0 100-2H7zm3 0a1 1 0 000 2h3a1 1 0 100-2h-3zm-3 4a1 1 0 100 2h.01a1 1 0 100-2H7zm3 0a1 1 0 100 2h3a1 1 0 100-2h-3z" clip-rule="evenodd"></path></svg>
  136.                         </span>
  137.                             <span class="sidebar-text">Objednávky</span>
  138.                         </a>
  139.                     </li>
  140.                 {% endif %}
  141.                 {% if is_granted('ROLE_COMPANY_USER') or is_granted("ROLE_MERCHANT") %}
  142.                 <li class="nav-item {% if app.request.attributes.get( '_route' ) starts with 'app_users' %}active{% endif %}">
  143.                     <a href="{{ path('app_users')}}" class="nav-link">
  144.                         <span class="sidebar-icon">
  145.                         <svg class="icon icon-xs me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path
  146.                                     d="M9 6a3 3 0 11-6 0 3 3 0 016 0zM17 6a3 3 0 11-6 0 3 3 0 016 0zM12.93 17c.046-.327.07-.66.07-1a6.97 6.97 0 00-1.5-4.33A5 5 0 0119 16v1h-6.07zM6 11a5 5 0 015 5v1H1v-1a5 5 0 015-5z"></path></svg>
  147.                         </span>
  148.                         <span class="sidebar-text">Uživatelé</span>
  149.                     </a>
  150.                 </li>
  151.                 {% endif %}
  152.                 {% if is_granted('ROLE_COMPANY_ADMIN') or is_granted('ROLE_ADMIN') %}
  153.                     <li class="nav-item">
  154.                         <span class="nav-link {% if app.request.attributes.get( '_route' ) starts with not 'app_company' %}collapsed{% endif %} d-flex justify-content-between align-items-center" data-bs-toggle="collapse" data-bs-target="#reporting-app">
  155.                           <span>
  156.                             <span class="sidebar-icon">
  157.                                 <svg class="icon icon-xs me-2" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
  158.                                   <path stroke-linecap="round" stroke-linejoin="round" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
  159.                                 </svg>
  160.                             </span>
  161.                             <span class="sidebar-text">Reporting</span>
  162.                           </span>
  163.                           <span class="link-arrow">
  164.                             <svg class="icon icon-sm" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"></path></svg>
  165.                           </span>
  166.                         </span>
  167.                         <div class="multi-level collapse " role="list" id="reporting-app" aria-expanded="false">
  168.                             <ul class="flex-column nav">
  169.                                 <li class="nav-item ">
  170.                                     <a href="{{ path('app_reporting_index') }}" class="nav-link">
  171.                                         <span class="sidebar-text-contracted">D</span>
  172.                                         <span class="sidebar-text">Výplata výnosů<br/>(dluhopisy)</span>
  173.                                     </a>
  174.                                 </li>
  175.                             </ul>
  176.                         </div>
  177.                     </li>
  178.                 {% endif %}
  179.                 {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_MERCHANT') %}
  180.                     <li class="nav-item {% if app.request.attributes.get( '_route' ) starts with 'app_index_calendar' %}active{% endif %}">
  181.                         <a href="{{ path('app_index_calendar') }}" class="nav-link">
  182.                             <span class="sidebar-icon">
  183.                                 <svg class="icon icon-xs me-2" data-slot="icon" fill="none" stroke-width="1.5" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
  184.                                   <path stroke-linecap="round" stroke-linejoin="round" d="M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z"></path>
  185.                                 </svg>
  186.                             </span>
  187.                             <span class="sidebar-text">Kalendář akcí</span>
  188.                         </a>
  189.                     </li>
  190.                 {% endif %}
  191.                 <li role="separator" class="dropdown-divider mt-4 mb-3 border-gray-700"></li>
  192.             </ul>
  193.             <ul class="nav flex-column pt-3 pt-md-0 mt-auto mb-3">
  194.                 <li class="nav-item">
  195.                     <a href="{{ path('app_index_kontakty') }}" target="_blank" class="nav-link d-flex align-items-center ajax" data-modal="show">
  196.                         <span class="sidebar-icon">
  197.                           <svg class="icon icon-xs me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>
  198.                         </span>
  199.                         <span class="sidebar-text">Kontakty</span>
  200.                     </a>
  201.                 </li>
  202.             </ul>
  203.         </div>
  204.     </nav>
  205. {% endif %}
  206. <main class="{% if app.user %}content{% endif %}" data-controller="app-common">
  207.     {% if app.user %}
  208.     <nav class="navbar navbar-top navbar-expand navbar-dashboard navbar-dark ps-0 pe-2 pb-0">
  209.         <div class="container-fluid px-0">
  210.             <div class="d-flex justify-content-between w-100" id="navbarSupportedContent">
  211.                 <div class="d-flex align-items-center">
  212.                     <button id="sidebar-toggle" class="sidebar-toggle me-3 btn btn-icon-only d-none d-lg-inline-block align-items-center justify-content-center">
  213.                         <svg class="toggle-icon" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h6a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z" clip-rule="evenodd"></path></svg>
  214.                     </button>
  215.                 </div>
  216.                 <!-- Navbar links -->
  217.                 <ul class="navbar-nav align-items-center" id="nav-block">
  218.                     <li class="nav-item dropdown">
  219.                         <a href="{{ path("app_basket_step_1") }}" class="nav-link text-dark notification-bell dropdown-toggle pricing-reload" id="p-nav-total" role="button" data-bs-toggle="dropdown" data-bs-display="static" aria-expanded="false">
  220.                             <svg class="icon icon-sm text-gray-900" style="margin-top: -6px" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
  221.                                 <path d="M1 1.75A.75.75 0 011.75 1h1.628a1.75 1.75 0 011.734 1.51L5.18 3a65.25 65.25 0 0113.36 1.412.75.75 0 01.58.875 48.645 48.645 0 01-1.618 6.2.75.75 0 01-.712.513H6a2.503 2.503 0 00-2.292 1.5H17.25a.75.75 0 010 1.5H2.76a.75.75 0 01-.748-.807 4.002 4.002 0 012.716-3.486L3.626 2.716a.25.25 0 00-.248-.216H1.75A.75.75 0 011 1.75zM6 17.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM15.5 19a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"></path>
  222.                             </svg>
  223.                             ({{ basket.totalInclVat|number_format(2, ',', '&nbsp;')|raw }}&nbsp;Kč)
  224.                         </a>
  225.                         <div class="dropdown-menu dropdown-menu-lg dropdown-menu-center mt-2 py-0">
  226.                             <div class="list-group list-group-flush">
  227.                                 <a href="{{ path("app_basket_step_1") }}" class="dropdown-item text-center fw-bold rounded-bottom py-3">
  228.                                     <strong>Nákupní košík</strong>
  229.                                 </a>
  230.                                 {% for item in basket.items(true) %}
  231.                                     <a href="#" class="list-group-item list-group-item-action border-bottom">
  232.                                         <div class="row align-items-center">
  233.                                             <div class="col-auto">
  234.                                                 {% if item.entity.photos|length > 0 %}
  235.                                                     <img src="{{ item.entity.primaryPhoto.url }}" class="avatar-md rounded" alt="{{ item.entity.name }}">
  236.                                                 {% endif %}
  237.                                             </div>
  238.                                             <div class="col ps-0 ms-2 pricing-reload" id="p-nav-{{ item.entity.id }}-line">
  239.                                                 <div class="d-flex justify-content-between align-items-center">
  240.                                                     <div>
  241.                                                         <small>{{ item.count }}x {{ item.entity.name }}</small>
  242.                                                     </div>
  243.                                                     <div class="text-end">
  244.                                                         <small class="fw-bold">{{ item.entity|priceExclVat|number_format(2, ',', '&nbsp;')|raw }}&nbsp;Kč</small>
  245.                                                     </div>
  246.                                                 </div>
  247.                                             </div>
  248.                                         </div>
  249.                                     </a>
  250.                                 {% else %}
  251.                                     <a href="#" class="list-group-item list-group-item-action border-bottom">Jsem tak prázdný!</a>
  252.                                 {% endfor %}
  253.                                 <div class="list-group list-group-flush text-center pt-3 pricing-reload" id="p-nav-total">
  254.                                     <small>CELKEM s DPH</small>
  255.                                     <h5>{{ basket.totalInclVat|number_format(2, ',', '&nbsp;')|raw }}&nbsp;Kč</h5>
  256.                                 </div>
  257.                                 <a href="{{ path("app_basket_step_1") }}" class="dropdown-item text-center fw-bold rounded-bottom py-3">
  258.                                     <svg class="icon icon-xxs text-gray-400 me-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 12a2 2 0 100-4 2 2 0 000 4z"></path><path fill-rule="evenodd" d="M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z" clip-rule="evenodd"></path></svg>
  259.                                     Zobrazit přehled objednávky
  260.                                 </a>
  261.                             </div>
  262.                         </div>
  263.                     </li>
  264.                     <li class="nav-item dropdown">
  265. {#                        <a class="nav-link text-dark notification-bell unread dropdown-toggle" data-unread-notifications="true" href="#" role="button" data-bs-toggle="dropdown" data-bs-display="static" aria-expanded="false">#}
  266. {#                            <svg class="icon icon-sm text-gray-900" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z"></path></svg>#}
  267. {#                        </a>#}
  268. {#                        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-center mt-2 py-0">#}
  269. {#                            <div class="list-group list-group-flush">#}
  270. {#                                <a href="#" class="text-center text-primary fw-bold border-bottom border-light py-3">Notifications</a>#}
  271. {#                                <a href="../pages/calendar.html" class="list-group-item list-group-item-action border-bottom">#}
  272. {#                                    <div class="row align-items-center">#}
  273. {#                                        <div class="col-auto">#}
  274. {#                                            <!-- Avatar -->#}
  275. {#                                            <img alt="Image placeholder" src="../assets/img/team/profile-picture-1.jpg" class="avatar-md rounded">#}
  276. {#                                        </div>#}
  277. {#                                        <div class="col ps-0 ms-2">#}
  278. {#                                            <div class="d-flex justify-content-between align-items-center">#}
  279. {#                                                <div>#}
  280. {#                                                    <h4 class="h6 mb-0 text-small">Jose Leos</h4>#}
  281. {#                                                </div>#}
  282. {#                                                <div class="text-end">#}
  283. {#                                                    <small class="text-danger">a few moments ago</small>#}
  284. {#                                                </div>#}
  285. {#                                            </div>#}
  286. {#                                            <p class="font-small mt-1 mb-0">Added you to an event "Project stand-up" tomorrow at 12:30 AM.</p>#}
  287. {#                                        </div>#}
  288. {#                                    </div>#}
  289. {#                                </a>#}
  290. {#                                <a href="../pages/tasks.html" class="list-group-item list-group-item-action border-bottom">#}
  291. {#                                    <div class="row align-items-center">#}
  292. {#                                        <div class="col-auto">#}
  293. {#                                            <!-- Avatar -->#}
  294. {#                                            <img alt="Image placeholder" src="../assets/img/team/profile-picture-2.jpg" class="avatar-md rounded">#}
  295. {#                                        </div>#}
  296. {#                                        <div class="col ps-0 ms-2">#}
  297. {#                                            <div class="d-flex justify-content-between align-items-center">#}
  298. {#                                                <div>#}
  299. {#                                                    <h4 class="h6 mb-0 text-small">Neil Sims</h4>#}
  300. {#                                                </div>#}
  301. {#                                                <div class="text-end">#}
  302. {#                                                    <small class="text-danger">2 hrs ago</small>#}
  303. {#                                                </div>#}
  304. {#                                            </div>#}
  305. {#                                            <p class="font-small mt-1 mb-0">You've been assigned a task for "Awesome new project".</p>#}
  306. {#                                        </div>#}
  307. {#                                    </div>#}
  308. {#                                </a>#}
  309. {#                                <a href="../pages/tasks.html" class="list-group-item list-group-item-action border-bottom">#}
  310. {#                                    <div class="row align-items-center">#}
  311. {#                                        <div class="col-auto">#}
  312. {#                                            <!-- Avatar -->#}
  313. {#                                            <img alt="Image placeholder" src="../assets/img/team/profile-picture-3.jpg" class="avatar-md rounded">#}
  314. {#                                        </div>#}
  315. {#                                        <div class="col ps-0 m-2">#}
  316. {#                                            <div class="d-flex justify-content-between align-items-center">#}
  317. {#                                                <div>#}
  318. {#                                                    <h4 class="h6 mb-0 text-small">Roberta Casas</h4>#}
  319. {#                                                </div>#}
  320. {#                                                <div class="text-end">#}
  321. {#                                                    <small>5 hrs ago</small>#}
  322. {#                                                </div>#}
  323. {#                                            </div>#}
  324. {#                                            <p class="font-small mt-1 mb-0">Tagged you in a document called "Financial plans",</p>#}
  325. {#                                        </div>#}
  326. {#                                    </div>#}
  327. {#                                </a>#}
  328. {#                                <a href="../pages/single-message.html" class="list-group-item list-group-item-action border-bottom">#}
  329. {#                                    <div class="row align-items-center">#}
  330. {#                                        <div class="col-auto">#}
  331. {#                                            <!-- Avatar -->#}
  332. {#                                            <img alt="Image placeholder" src="../assets/img/team/profile-picture-4.jpg" class="avatar-md rounded">#}
  333. {#                                        </div>#}
  334. {#                                        <div class="col ps-0 ms-2">#}
  335. {#                                            <div class="d-flex justify-content-between align-items-center">#}
  336. {#                                                <div>#}
  337. {#                                                    <h4 class="h6 mb-0 text-small">Joseph Garth</h4>#}
  338. {#                                                </div>#}
  339. {#                                                <div class="text-end">#}
  340. {#                                                    <small>1 d ago</small>#}
  341. {#                                                </div>#}
  342. {#                                            </div>#}
  343. {#                                            <p class="font-small mt-1 mb-0">New message: "Hey, what's up? All set for the presentation?"</p>#}
  344. {#                                        </div>#}
  345. {#                                    </div>#}
  346. {#                                </a>#}
  347. {#                                <a href="../pages/single-message.html" class="list-group-item list-group-item-action border-bottom">#}
  348. {#                                    <div class="row align-items-center">#}
  349. {#                                        <div class="col-auto">#}
  350. {#                                            <!-- Avatar -->#}
  351. {#                                            <img alt="Image placeholder" src="../assets/img/team/profile-picture-5.jpg" class="avatar-md rounded">#}
  352. {#                                        </div>#}
  353. {#                                        <div class="col ps-0 ms-2">#}
  354. {#                                            <div class="d-flex justify-content-between align-items-center">#}
  355. {#                                                <div>#}
  356. {#                                                    <h4 class="h6 mb-0 text-small">Bonnie Green</h4>#}
  357. {#                                                </div>#}
  358. {#                                                <div class="text-end">#}
  359. {#                                                    <small>2 hrs ago</small>#}
  360. {#                                                </div>#}
  361. {#                                            </div>#}
  362. {#                                            <p class="font-small mt-1 mb-0">New message: "We need to improve the UI/UX for the landing page."</p>#}
  363. {#                                        </div>#}
  364. {#                                    </div>#}
  365. {#                                </a>#}
  366. {#                                <a href="#" class="dropdown-item text-center fw-bold rounded-bottom py-3">#}
  367. {#                                    <svg class="icon icon-xxs text-gray-400 me-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 12a2 2 0 100-4 2 2 0 000 4z"></path><path fill-rule="evenodd" d="M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z" clip-rule="evenodd"></path></svg>#}
  368. {#                                    View all#}
  369. {#                                </a>#}
  370. {#                            </div>#}
  371. {#                        </div>#}
  372.                     </li>
  373.                     <li class="nav-item dropdown ms-lg-3">
  374.                         <a class="nav-link dropdown-toggle pt-1 px-0" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
  375.                             <div class="media d-flex align-items-center">
  376. {#                                <img class="avatar rounded-circle" alt="Image placeholder" src="../assets/img/team/profile-picture-3.jpg">#}
  377.                                 <div class="avatar d-flex align-items-center justify-content-center fw-bold rounded bg-secondary me-3"><span>{{ app.user.name|first|default('F')|upper }} {{ app.user.surname|first|default('L')|upper }}</span></div>
  378.                                 <div class="media-body ms-2 text-dark align-items-center d-none d-lg-block">
  379.                                     <span class="mb-0 font-small fw-bold text-gray-900">{{ app.user.username }}</span>
  380.                                 </div>
  381.                             </div>
  382.                         </a>
  383.                         <div class="dropdown-menu dashboard-dropdown dropdown-menu-end mt-2 py-1">
  384.                             <a class="dropdown-item d-flex align-items-center ajax" data-modal="show" href="{{ path('app_users_edit', {'user': app.user.id}) }}">
  385.                                 <svg class="dropdown-icon text-gray-400 me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd"></path></svg>
  386.                                 Můj účet
  387.                             </a>
  388.                             <a class="dropdown-item d-flex align-items-center" href="{{ path('app_invoiceautomation_index') }}">
  389.                                 <svg class="dropdown-icon text-gray-400 me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd"></path></svg>
  390.                                 Fakturace
  391.                             </a>
  392.                             {% if is_granted('ROLE_COMPANY_ADMIN', app.user) and not is_granted('ROLE_ADMIN', app.user) %}
  393.                                 <a class="dropdown-item d-flex align-items-center ajax" data-modal="show" href="{{ path('app_company_group_edit', {'company': app.user.company.id }) }}">
  394.                                     <svg class="dropdown-icon text-gray-400 me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z" clip-rule="evenodd"></path></svg>
  395.                                     Nastavení
  396.                                 </a>
  397.                             {% endif %}
  398.                             <a class="dropdown-item d-flex align-items-center ajax" data-modal="show" href="{{ path('app_index_kontakty') }}">
  399.                                 <svg class="dropdown-icon text-gray-400 me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-2 0c0 .993-.241 1.929-.668 2.754l-1.524-1.525a3.997 3.997 0 00.078-2.183l1.562-1.562C15.802 8.249 16 9.1 16 10zm-5.165 3.913l1.58 1.58A5.98 5.98 0 0110 16a5.976 5.976 0 01-2.516-.552l1.562-1.562a4.006 4.006 0 001.789.027zm-4.677-2.796a4.002 4.002 0 01-.041-2.08l-.08.08-1.53-1.533A5.98 5.98 0 004 10c0 .954.223 1.856.619 2.657l1.54-1.54zm1.088-6.45A5.974 5.974 0 0110 4c.954 0 1.856.223 2.657.619l-1.54 1.54a4.002 4.002 0 00-2.346.033L7.246 4.668zM12 10a2 2 0 11-4 0 2 2 0 014 0z" clip-rule="evenodd"></path></svg>
  400.                                 Pomoc
  401.                             </a>
  402.                             <div role="separator" class="dropdown-divider my-1"></div>
  403.                             <a href="{{ path('app_logout') }}" class="dropdown-item d-flex align-items-center">
  404.                                 <svg class="dropdown-icon text-danger me-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"></path></svg>
  405.                                 Odhlásit
  406.                             </a>
  407.                         </div>
  408.                     </li>
  409.                 </ul>
  410.             </div>
  411.         </div>
  412.     </nav>
  413.     {% endif %}
  414.     {% block body %}{% endblock %}
  415. </main>
  416. {% block javascripts %}
  417.     <script type="text/html" id="modal-added">
  418.         <div class="modal fade" id="modal2" tabindex="-1" role="dialog" aria-labelledby="modal2" style="display: none;" aria-hidden="true">
  419.             <div class="modal-dialog modal-info modal-dialog-centered" role="document">
  420.                 <div class="modal-content bg-gradient-secondary">
  421.                     <button type="button" class="btn-close theme-settings-close fs-6 ms-auto" data-bs-dismiss="modal" aria-label="Close"></button>
  422.                     <div class="modal-body text-white">
  423.                         <div class="pt-3 text-center">
  424.                             <span class="modal-icon">
  425.                                 <svg class="icon icon-xl text-gray-200" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
  426.                                     <path d="M1 8.25a1.25 1.25 0 112.5 0v7.5a1.25 1.25 0 11-2.5 0v-7.5zM11 3V1.7c0-.268.14-.526.395-.607A2 2 0 0114 3c0 .995-.182 1.948-.514 2.826-.204.54.166 1.174.744 1.174h2.52c1.243 0 2.261 1.01 2.146 2.247a23.864 23.864 0 01-1.341 5.974C17.153 16.323 16.072 17 14.9 17h-3.192a3 3 0 01-1.341-.317l-2.734-1.366A3 3 0 006.292 15H5V8h.963c.685 0 1.258-.483 1.612-1.068a4.011 4.011 0 012.166-1.73c.432-.143.853-.386 1.011-.814.16-.432.248-.9.248-1.388z"></path>
  427.                                 </svg>
  428.                             </span>
  429.                             <h2 class="h4 modal-title my-3">Zboží bylo přidáno do košíku!</h2>
  430.                             <p>Přejete si pokračovat v nákupu nebo přejít k objednávce?</p>
  431.                         </div>
  432.                     </div>
  433.                     <div class="modal-footer" style="justify-content: center;">
  434.                         <button type="button" class="btn btn-sm btn-white" data-bs-dismiss="modal">Pokračovat v nákupu</button>
  435.                         <a href="{{ path("app_basket_step_1") }}" class="btn btn-sm btn-primary" >Přejít k objednávce</a>
  436.                     </div>
  437.                 </div>
  438.             </div>
  439.         </div>
  440.     </script>
  441.     <!-- Core -->
  442.     <script src="/vendor/@popperjs/core/dist/umd/popper.min.js"></script>
  443.             <script src="/vendor/bootstrap/dist/js/bootstrap.js"></script>
  444.     <!-- Vendor JS -->
  445.     <script src="/vendor/onscreen/dist/on-screen.umd.min.js"></script>
  446.     <!-- Slider -->
  447.     <script src="/vendor/nouislider/distribute/nouislider.min.js"></script>
  448.     <!-- Smooth scroll -->
  449.     <script src="/vendor/smooth-scroll/dist/smooth-scroll.polyfills.min.js"></script>
  450.     <!-- Count up -->
  451.     <script src="/vendor/countup.js/dist/countUp.umd.js"></script>
  452.     <!-- Apex Charts -->
  453.     <script src="/vendor/apexcharts/dist/apexcharts.min.js"></script>
  454.     <!-- Datepicker -->
  455.     <script src="/vendor/vanillajs-datepicker/dist/js/datepicker.min.js"></script>
  456.     <!-- DataTables -->
  457.     <script src="/vendor/simple-datatables/dist/umd/simple-datatables.js"></script>
  458.     <!-- Sweet Alerts 2 -->
  459.     <script src="/vendor/sweetalert2/dist/sweetalert2.min.js"></script>
  460.     <!-- Moment JS -->
  461.     <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/moment.min.js"></script>
  462.     <!-- Vanilla JS Datepicker -->
  463.     <script src="/vendor/vanillajs-datepicker/dist/js/datepicker.min.js"></script>
  464.     <!-- Full Calendar -->
  465.     <script src="/vendor/fullcalendar/main.min.js"></script>
  466.     <!-- Dropzone -->
  467.     <script src="/vendor/dropzone/dist/min/dropzone.min.js"></script>
  468.     <!-- Choices.js -->
  469.     <script src="/vendor/choices.js/public/assets/scripts/choices.min.js"></script>
  470.     <!-- Notyf -->
  471.     <script src="/vendor/notyf/notyf.min.js"></script>
  472.     <!-- Mapbox & Leaflet.js -->
  473.     <script src="/vendor/leaflet/dist/leaflet.js"></script>
  474.     <!-- SVG Map -->
  475.     <script src="/vendor/svg-pan-zoom/dist/svg-pan-zoom.min.js"></script>
  476.     <script src="/vendor/svgmap/dist/svgMap.min.js"></script>
  477.     <!-- Simplebar -->
  478.     <script src="/vendor/simplebar/dist/simplebar.min.js"></script>
  479.     <!-- Sortable Js -->
  480.     <script src="/vendor/sortablejs/Sortable.min.js"></script>
  481.     <!-- Github buttons -->
  482.     <script async defer src="https://buttons.github.io/buttons.js"></script>
  483.     {% if app.user %}
  484.         <script src="/js/sidebar-toggle.js"></script>
  485.     {% endif %}
  486. {#    <script src="/vendor/bootstrap/dist/js/bootstrap.bundle.min.js"></script>#}
  487.     <!-- Volt JS -->
  488.     <script src="/js/volt.js"></script>
  489.     {{ encore_entry_script_tags('app') }}
  490. {% endblock %}
  491. {% block js %}{% endblock %}
  492. </body>
  493. </html>