templates/order/view/base.html.twig line 1

Open in your IDE?
  1. {% extends app.request.xmlHttpRequest ? 'base_ajax.html.twig' : 'base.html.twig' %}
  2. {% block title %}Nová objednávka{% endblock %}
  3. {% block body %}
  4.     {% for flash_error in app.flashes('new_product') %}
  5.         <div class="alert alert-danger" role="alert">{{ flash_error }}</div>
  6.     {% endfor %}
  7.     <!-- Section -->
  8.     <section class="vh-lg- 100 mt-5 mt-lg-0 bg-soft d-flex align-items-center" data-controller="app-common">
  9.         <div class="container">
  10.             <div class="row justify-content-center form-bg-image">
  11.                 <div class="col-12 d-flex align-items-center justify-content-center">
  12.                     <div class="signin-inner my-3 my-lg-0 bg-white border-0 rounded p-4 p-lg-5 w-100 row">
  13.                         <h1 class="h3">Detail objednávky (#{{ order.hash }})</h1>
  14.                         <div class="row">
  15.                             <div class="col-12">
  16.                                 <!-- Tab Nav -->
  17.                                 <div class="nav-wrapper position-relative mb-2">
  18.                                     <ul class="nav nav-pills nav-fill d-block row" id="tabs-icons-text" role="tablist">
  19.                                         <li class="nav-item col-lg-3 d-inline-flex">
  20.                                             <a class="nav-link mb-sm-3 mb-md-0 active d-flex align-items-center justify-content-center p-2" id="order-klient-tab" data-bs-toggle="tab" href="#order-klient" role="tab" aria-controls="tabs-icons-text-1" aria-selected="true">
  21.                                                 <svg class="icon icon-xs text-gray-400 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="M8 14v3m4-3v3m4-3v3M3 21h18M3 10h18M3 7l9-4 9 4M4 10h16v11H4V10z"></path></svg>
  22.                                                 Základní údaje
  23.                                             </a>
  24.                                         </li>
  25.                                         <li class="nav-item col-lg-3 d-inline-flex">
  26.                                             <a class="nav-link mb-sm-3 mb-md-0 d-flex align-items-center justify-content-center p-2" id="order-documents-tab" data-bs-toggle="tab" href="#order-documents" role="tab" aria-controls="tabs-icons-text-2" aria-selected="false">
  27.                                                 <svg class="icon icon-xs text-gray-400 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="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg>
  28.                                                 Dokumenty
  29.                                             </a>
  30.                                         </li>
  31.                                     </ul>
  32.                                 </div>
  33.                                 <!-- End of Tab Nav -->
  34.                             </div>
  35.                             <div class="card border-0">
  36.                                 <div class="card-body p-0">
  37.                                     <div class="tab-content" id="tabcontent">
  38.                                         <div class="tab-pane fade show active" id="order-klient" role="tabpanel" aria-labelledby="order-klient">
  39.                                             <div class="row">
  40.                                                 <div class="col-6 text-start ps-3">
  41.                                                     <div class="toast show w-100 mt-2">
  42.                                                         <div class="toast-header">
  43.                                                             <svg class="icon icon-xs text-gray-400 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="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
  44.                                                             <strong class="me-auto fw-bold">Klient</strong>
  45.                                                         </div>
  46.                                                         <div class="toast-body p-0">
  47.                                                             <table class="table table-flush">
  48.                                                                 <tbody>
  49.                                                                 <tr><td>Typ:</td><td class="dt-labl">{{ order.personType }}</td></tr>
  50.                                                                 <tr><td>Jméno:</td><td class="dt-labl">{{ order.name }} {{ order.surname }}</td></tr>
  51.                                                                 {# Spolecnost #}
  52.                                                                 {% if order.personType == 'PO' %}
  53.                                                                     <tr><td>Zapsaná v:</td><td class="dt-labl">{{ order.companyRegistrationPlace }}</td></tr>
  54.                                                                     <tr><td>Zastoupena:</td><td class="dt-labl">{{ order.companyRepresentantive }}</td></tr>
  55.                                                                     <tr><td>Číslo zápisu:</td><td class="dt-labl">{{ order.companyRegistrationNumber }}</td></tr>
  56.                                                                     <tr><td>Oddíl:</td><td class="dt-labl">{{ order.companyRegistrationPartition }}</td></tr>
  57.                                                                     <tr><td>Vložka:</td><td class="dt-labl">{{ order.companyRegistrationInsertion }}</td></tr>
  58.                                                                 {% endif %}
  59.                                                                 {# FO - podnikatel #}
  60.                                                                 {% if order.personType == 'FP' %}
  61.                                                                     <tr><td>Zapsaný u:</td><td class="dt-labl">{{ order.businessmanRegistrationPlace }}</td></tr>
  62.                                                                     <tr><td>Číslo zápisu:</td><td class="dt-labl">{{ order.businessmanRegistrationNumber }}</td></tr>
  63.                                                                 {% endif %}
  64.                                                                 {% if order.personType == 'FO' %}
  65.                                                                     <tr><td>PEP:</td>
  66.                                                                         <td class="dt-labl">
  67.                                                                             {% if order.politicallyExposedPerson == true %}Ano{% else %}Ne{% endif %}
  68.                                                                         </td></tr>
  69.                                                                 {% endif %}
  70.                                                                 {% if order.personType == 'PO' or order.personType == 'FP' %}
  71.                                                                     <tr><td>Daňová residence:</td><td class="dt-labl">{{ order.taxResidency }}</td></tr>
  72.                                                                     <tr><td>Původ finančních prostředků:</td>
  73.                                                                         <td class="dt-labl">
  74.                                                                             {{ order.originOfFunds }}{% if order.originOfFundsCustom != null %}: {{ order.originOfFundsCustom }}{% endif %}
  75.                                                                         </td></tr>
  76.                                                                     {% if order.personType == 'FP' %}
  77.                                                                     <tr><td>PEP:</td>
  78.                                                                         <td class="dt-labl">
  79.                                                                             {% if order.politicallyExposedPerson == true %}Ano{% else %}Ne{% endif %}
  80.                                                                         </td></tr>
  81.                                                                     {% endif %}
  82.                                                                     <tr><td>IČO:</td><td class="dt-labl">{{ order.ic }}</td></tr>
  83.                                                                     <tr><td>DIČ:</td><td class="dt-labl">{{ order.dic }}</td></tr>
  84.                                                                 {% endif %}
  85.                                                                 {# FO #}
  86.                                                                 {% if order.birthdate is defined %}
  87.                                                                     <tr><td>Datum narození:</td><td class="dt-labl">{{ order.birthdate|date("d.m.Y") }}</td></tr>
  88.                                                                 {% endif %}
  89.                                                                 {% if order.birthnumber is defined %}
  90.                                                                     <tr><td>Rodné číslo:</td><td class="dt-labl">{{ order.birthnumber }}</td></tr>
  91.                                                                 {% endif %}
  92.                                                                 <tr><td>Email:</td><td class="dt-labl">{{ order.email }}</td></tr>
  93.                                                                 <tr><td>Telefon:</td><td class="dt-labl">{{ order.phone }}</td></tr>
  94.                                                                 </tbody>
  95.                                                             </table>
  96.                                                         </div>
  97.                                                     </div>
  98.                                                     <div class="toast show w-100 mt-2 mt-2">
  99.                                                         <div class="toast-header">
  100.                                                             <svg class="icon icon-xs text-gray-400 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="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg>
  101.                                                             <strong class="me-auto fw-bold">Adresa</strong>
  102.                                                         </div>
  103.                                                         <div class="toast-body p-0">
  104.                                                             <table class="table table-flush">
  105.                                                                 <tbody>
  106.                                                                 <tr>
  107.                                                                     <td>{% if order.personType == 'FO' %}Trvalé bydliště{% else %}Sídlo společnosti{% endif %}</td>
  108.                                                                     <td class="dt-labl">{{ order.street }}<br />{{ order.town }}<br />{{ order.postal }}</td></tr>
  109.                                                                 <tr>
  110.                                                                     <td>{% if order.personType == 'FO' %}Korespondenční adresa{% else %}Adresa místa podnikání{% endif %}</td>
  111.                                                                     <td class="dt-labl">{{ order.street2 }}<br />{{ order.town2 }}<br />{{ order.postal2 }}</td></tr>
  112.                                                                 </tbody>
  113.                                                             </table>
  114.                                                         </div>
  115.                                                     </div>
  116.                                                 </div>
  117.                                                 <div class="col-6 text-start ps-3">
  118.                                                     <div class="toast show w-100 mt-2">
  119.                                                         <div class="toast-header">
  120.                                                             <svg class="icon icon-xs text-gray-400 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="M15 5v2m0 4v2m0 4v2M5 5a2 2 0 00-2 2v3a2 2 0 110 4v3a2 2 0 002 2h14a2 2 0 002-2v-3a2 2 0 110-4V7a2 2 0 00-2-2H5z"></path></svg>
  121.                                                             <strong class="me-auto fw-bold">Osobní doklad</strong>
  122.                                                         </div>
  123.                                                         <div class="toast-body p-0">
  124.                                                             <table class="table table-flush">
  125.                                                                 <tbody>
  126.                                                                 <tr><td>Typ:</td><td class="dt-labl">{{ order.idType }}</td></tr>
  127.                                                                 <tr><td>Číslo:</td><td class="dt-labl">{{ order.idNumber }}</td></tr>
  128.                                                                 <tr><td>Vydal:</td><td class="dt-labl">{{ order.idAuthor }}</td></tr>
  129.                                                                 <tr><td>Platný do:</td><td class="dt-labl">{{ order.idValidity|date("d.m.Y") }}</td></tr>
  130.                                                                 </tbody>
  131.                                                             </table>
  132.                                                         </div>
  133.                                                     </div>
  134.                                                     <div class="toast show w-100 mt-2">
  135.                                                         <div class="toast-header">
  136.                                                             <svg class="icon icon-xs text-gray-400 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="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"></path></svg>
  137.                                                             <strong class="me-auto fw-bold">Bankovní spojení</strong>
  138.                                                         </div>
  139.                                                         <div class="toast-body p-0">
  140.                                                             <table class="table table-flush">
  141.                                                                 <tbody>
  142.                                                                 <tr><td>Banka:</td><td class="dt-labl">{{ order.bankName }}</td></tr>
  143.                                                                 <tr><td>Číslo účtu:</td><td class="dt-labl">{{ order.bankAccount }}/{{ order.bankCode }}</td></tr>
  144.                                                                 <tr><td>SWIFT:</td><td class="dt-labl">{{ order.swift }}</td></tr>
  145.                                                                 <tr><td>IBAN:</td><td class="dt-labl">{{ order.iban }}</td></tr>
  146.                                                                 </tbody>
  147.                                                             </table>
  148.                                                         </div>
  149.                                                     </div>
  150.                                                 </div>
  151.                                                 <div class="col-12 text-start ps-3">
  152.                                                     <div class="toast show w-100 mt-2">
  153.                                                         <div class="toast-header">
  154.                                                             <svg class="icon icon-xs text-gray-400 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="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></svg>
  155.                                                             <strong class="me-auto fw-bold">Produkt</strong>
  156.                                                         </div>
  157.                                                         <div class="toast-body p-0">
  158.                                                             <table class="table table-flush">
  159.                                                                 <tbody>
  160.                                                                 {% if order.company is not null %}
  161.                                                                 <tr><td>Společnost:</td><td class="dt-labl text-wrap">{{ order.company.name }}</td></tr>
  162.                                                                 <tr><td>Název:</td><td class="dt-labl text-wrap">{{ order.product.name }}</td></tr>
  163.                                                                 {% endif %}
  164.                                                                 <tr><td>Cena/ks:</td><td class="dt-labl text-wrap">{{ order.productPrice|number_format(0, ',', ' ') }} {{ order.product|p_currency }}</td></tr>
  165.                                                                 <tr><td>Počet:</td><td class="dt-labl text-wrap">{{ order.productCount }}</td></tr>
  166.                                                                 <tr><td>Celkem:</td><td class="dt-labl text-wrap">{{ order.productPriceTotal|number_format(0, ',', ' ') }}  {{ order.product|p_currency }}</td></tr>
  167.                                                                 <tr><td>Výnos:</td><td class="dt-labl text-wrap">{{ order.productInterest }}%</td></tr>
  168.                                                                 <tr><td>Daň:</td><td class="dt-labl text-wrap">{{ order.productTax }}%</td></tr>
  169.                                                                 </tbody>
  170.                                                             </table>
  171.                                                         </div>
  172.                                                     </div>
  173.                                                 </div>
  174.                                                 {% if order.merchant is defined and order.merchant is not null and is_granted(constant('App\\Security\\Voter\\OrderVoter::VIEW_MERCHANT'), order) %}
  175.                                                     <div class="col-12 text-start ps-3">
  176.                                                         <div class="toast show w-100 mt-2">
  177.                                                             <div class="toast-header">
  178.                                                                 <svg class="icon icon-xs text-gray-400 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="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
  179.                                                                 <strong class="me-auto fw-bold">Zástupce</strong>
  180.                                                             </div>
  181.                                                             <div class="toast-body p-0">
  182.                                                                 <table class="table table-flush">
  183.                                                                     <tbody>
  184.                                                                     <tr><td style="width: 125px;">Jméno:</td><td class="dt-labl">{{ order.merchant.name }} {{ order.merchant.surname }}</td></tr>
  185.                                                                     <tr><td style="width: 125px;">Email:</td><td class="dt-labl">{{ order.merchant.email }}</td></tr>
  186.                                                                     <tr><td>Affiliate kód:</td><td class="dt-labl">{{ order.merchantCode }}</td></tr>
  187.                                                                     </tbody>
  188.                                                                 </table>
  189.                                                             </div>
  190.                                                         </div>
  191.                                                     </div>
  192.                                                 {% endif %}
  193.                                                 <div class="col-12 text-start ps-3">
  194.                                                     <div class="toast show w-100 mt-2">
  195.                                                         <div class="toast-header">
  196.                                                             <svg class="icon icon-xs text-gray-400 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="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
  197.                                                             <strong class="me-auto fw-bold">Poznámka</strong>
  198.                                                         </div>
  199.                                                         <div class="toast-body p-0">
  200.                                                             <table class="table table-flush">
  201.                                                                 <tbody>
  202.                                                                 <tr><td>{{ order.message }}</td></tr>
  203.                                                                 </tbody>
  204.                                                             </table>
  205.                                                         </div>
  206.                                                     </div>
  207.                                                 </div>
  208.                                                 <div class="col-12 text-start ps-3">
  209.                                                     <div class="row">
  210.                                                         <div class="col-6">
  211.                                                             <div class="toast show w-100 mt-2">
  212.                                                                 <div class="toast-header">
  213.                                                                     <svg class="icon icon-xs text-gray-400 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="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"></path></svg>
  214.                                                                     <strong class="me-auto fw-bold">Podpis klient</strong>
  215.                                                                 </div>
  216.                                                                 <div class="toast-body p-0">
  217.                                                                     <table class="table table-flush">
  218.                                                                         <tbody>
  219.                                                                         <tr><td>Datum:</td><td class="dt-labl">{{ order.signDateUser|date("d.m.Y") }}</td></tr>
  220.                                                                         <tr><td>Místo:</td><td class="dt-labl">{{ order.signPlaceUser }}</td></tr>
  221.                                                                         </tbody>
  222.                                                                     </table>
  223.                                                                 </div>
  224.                                                             </div>
  225.                                                         </div>
  226.                                                         <div class="col-6">
  227.                                                             <div class="toast show w-100 mt-2">
  228.                                                                 <div class="toast-header">
  229.                                                                     <svg class="icon icon-xs text-gray-400 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="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"></path></svg>
  230.                                                                     <strong class="me-auto fw-bold">Podpis Emitent</strong>
  231.                                                                 </div>
  232.                                                                 <div class="toast-body p-0">
  233.                                                                     <table class="table table-flush">
  234.                                                                         <tbody>
  235.                                                                         <tr><td>Datum:</td><td class="dt-labl">{{ order.signDateCompany|date("d.m.Y") }}</td></tr>
  236.                                                                         <tr><td>Místo:</td><td class="dt-labl">{{ order.signPlaceCompany }}</td></tr>
  237.                                                                         </tbody>
  238.                                                                     </table>
  239.                                                                 </div>
  240.                                                             </div>
  241.                                                         </div>
  242.                                                     </div>
  243.                                                 </div>
  244.                                             </div>
  245.                                         </div>
  246.                                         <div class="tab-pane fade" id="order-documents" role="tabpanel" aria-labelledby="order-documents">
  247.                                             {% if is_granted("ROLE_ADMIN") or is_granted("ROLE_COMPANY_ADMIN") %}
  248.                                                 <div class="col-12">
  249.                                                     <div class="align-content-end text-end mb-2">
  250.                                                         <div class="uploader" data-app-common-target="orderFileUploader" data-complete-callback="{{ path('app_order_detail', {'order': order.id}) }}" data-reload-element="uploadedFilesTable" data-action="{{ path('app_order_uploadefile', {'id': order.id}) }}" data-action-chunk="{{ path('app_order_uploadefilechunk', {'id': order.id}) }}" data-order="{{ order.id }}">
  251.                                                             <noscript>
  252.                                                                 <p>Please enable JavaScript to use file uploader.</p>
  253.                                                                 <!-- or put a simple form for upload here -->
  254.                                                             </noscript>
  255.                                                         </div>
  256.                                                     </div>
  257.                                                 </div>
  258.                                                 <div class="col-12">
  259.                                                     <div class="toast show w-100">
  260.                                                         <div class="toast-header">
  261.                                                             <svg class="icon icon-xs text-gray-400 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="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
  262.                                                             <strong class="me-auto fw-bold">Nahrané smlouvy</strong>
  263.                                                         </div>
  264.                                                         <div class="toast-body p-0">
  265.                                                             <table class="table table-flush" id="uploadedFilesTable">
  266.                                                                 <thead class="thead-light">
  267.                                                                 <tr>
  268.                                                                     <th>Akce</th>
  269.                                                                     <th>Název</th>
  270.                                                                     <th>Vytvořeno</th>
  271.                                                                     <th>Velikost</th>
  272.                                                                 </tr>
  273.                                                                 </thead>
  274.                                                                 <tbody>
  275.                                                                 {% for file in order.files|onlySimpleFile %}
  276.                                                                     <tr>
  277.                                                                         <td>
  278.                                                                             {% if file.exists %}
  279.                                                                                 <a href="{{ path('app_order_file_download', { 'file': file.id }) }}" target="_blank" title="Otevřít soubor">
  280.                                                                                     <svg class="icon icon-xs text-gray-400 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="M10 21h7a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v11m0 5l4.879-4.879m0 0a3 3 0 104.243-4.242 3 3 0 00-4.243 4.242z"></path></svg>
  281.                                                                                 </a>
  282.                                                                             {% endif %}
  283.                                                                             <a href="{{ path('app_order_file_delete', {'file': file.id, 'order': order.id}) }}" data-action="click->app-common#delete" data-reload-element="uploadedFilesTable" data-confirm="Opravdu chcete smazat soubor?">
  284.                                                                                 <svg class="icon icon-xs text-gray-400 me-2 text-danger" 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="M9 13h6m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
  285.                                                                             </a>
  286.                                                                         </td>
  287.                                                                         <td>{{ file.name }}</td>
  288.                                                                         <td class="text-center">{{ file.created|date('d.m.Y H:i:s') }}</td>
  289.                                                                         <td class="text-center">{{ file.size|format_bytes }}</td>
  290.                                                                     </tr>
  291.                                                                 {% else %}
  292.                                                                     <tr>
  293.                                                                         <td class="text-center">Nejsou k dispozici žádné nahrané smlouvy v PDF</td>
  294.                                                                     </tr>
  295.                                                                 {% endfor %}
  296.                                                                 </tbody>
  297.                                                             </table>
  298.                                                         </div>
  299.                                                     </div>
  300.                                                 </div>
  301.                                             {% endif %}
  302.                                                 <div class="col-12 my-5">
  303.                                                     {% if is_granted("ROLE_ADMIN") or is_granted("ROLE_COMPANY_ADMIN") %}
  304.                                                         <div class="align-content-end text-end mb-2">
  305.                                                             {% if
  306.                                                                 (order.product.templateValuablePaper != null and order.product.templateValuablePaperProtocol != null)
  307.                                                                 or
  308.                                                                 (order.product.templateValuablePaperMulti != null and order.product.templateValuablePaperProtocol != null)
  309.                                                             %}
  310.                                                             <div>
  311.                                                                 <a href="#" class="btn btn-primary waves-effect waves-light" data-order-sequence-number="{{ order.sequenceNumber }}" data-target-generate-url="{{ path('app_order_valuable_paper_generate', {'order': order.id}) }}" data-target-url="{{ path('app_order_save_sequence_number', {'order': order.id}) }}" data-action="click->app-common#generateValuableProtocol">
  312.                                                                     Generovat cenný papír a předávací protokol
  313.                                                                 </a>
  314.                                                             </div>
  315.                                                             {% else %}
  316.                                                                 <div class="alert alert-danger d-inline-block">Nelze generovat cenné papíry, produkt nemá nastavené šablony.</div>
  317.                                                             {% endif %}
  318.                                                         </div>
  319.                                                     {% endif %}
  320.                                                     <div class="toast show w-100" id="handoversFilesTable">
  321.                                                         <div class="toast-header">
  322.                                                             <svg class="icon icon-xs text-gray-400 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="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
  323.                                                             <strong class="me-auto fw-bold">Cenné papíry a předávací protokoly</strong>
  324.                                                         </div>
  325.                                                         <div class="toast-body p-0">
  326.                                                             <table class="table table-flush" id="valuablePapersTable">
  327.                                                                 <thead class="thead-light">
  328.                                                                 <tr>
  329.                                                                     <th>Akce</th>
  330.                                                                     <th>Název</th>
  331.                                                                     <th>Vytvořeno</th>
  332.                                                                     <th>Velikost</th>
  333.                                                                 </tr>
  334.                                                                 </thead>
  335.                                                                 <tbody>
  336.                                                                 {% for file in order.files|onlyValuableAndProtocolFile %}
  337.                                                                     <tr>
  338.                                                                         <td>
  339.                                                                             {% if file.exists %}
  340.                                                                                 <a href="{{ path('app_order_file_download', { 'file': file.id }) }}" target="_blank" title="Otevřít soubor">
  341.                                                                                     <svg class="icon icon-xs text-gray-400 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="M10 21h7a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v11m0 5l4.879-4.879m0 0a3 3 0 104.243-4.242 3 3 0 00-4.243 4.242z"></path></svg>
  342.                                                                                 </a>
  343.                                                                             {% endif %}
  344.                                                                             {% if is_granted("ROLE_ADMIN") or is_granted("ROLE_COMPANY_ADMIN") %}
  345.                                                                                 {% if file.envelopeId is null %}
  346.                                                                                     <a href="{{ path('app_order_file_delete', {'file': file.id, 'order': order.id}) }}" data-action="click->app-common#delete" data-reload-element="handoversFilesTable" data-confirm="Opravdu chcete smazat soubor?">
  347.                                                                                         <svg class="icon icon-xs text-gray-400 me-2 text-danger" 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="M9 13h6m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
  348.                                                                                     </a>
  349.                                                                                 {% endif %}
  350.                                                                             {% endif %}
  351.                                                                         </td>
  352.                                                                         <td>{{ file.name }}</td>
  353.                                                                         <td class="text-center">{{ file.created|date('d.m.Y H:i:s') }}</td>
  354.                                                                         <td class="text-center">{{ file.size|format_bytes }}</td>
  355.                                                                     </tr>
  356.                                                                 {% else %}
  357.                                                                     <tr>
  358.                                                                         <td class="text-center">Nejsou k dispozici žádné Cenné papíry a předávací protokoly</td>
  359.                                                                     </tr>
  360.                                                                 {% endfor %}
  361.                                                                 </tbody>
  362.                                                             </table>
  363.                                                         </div>
  364.                                                     </div>
  365.                                                 </div>
  366.                                             {% if order.files|onlyContract.count > 0 %}
  367.                                                 <div class="col-12">
  368.                                                     <div class="toast show w-100 mt-2">
  369.                                                         <div class="toast-header">
  370.                                                             <svg class="icon icon-xs text-gray-400 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="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
  371.                                                             <strong class="me-auto fw-bold">Smlouvy PDF</strong>
  372.                                                         </div>
  373.                                                         <div class="toast-body p-0">
  374.                                                             <table class="table table-flush" id="pdfTable">
  375.                                                                 <thead class="thead-light">
  376.                                                                 <tr>
  377.                                                                     <th>Akce</th>
  378.                                                                     <th>Název</th>
  379.                                                                     <th>Typ dokumentu</th>
  380.                                                                     <th>Vytvořeno</th>
  381.                                                                     <th>Změněno</th>
  382.                                                                     <th>Velikost</th>
  383.                                                                     <th>Verze</th>
  384.                                                                 </tr>
  385.                                                                 </thead>
  386.                                                                 <tbody>
  387.                                                                 {% for file in order.files|onlyContract %}
  388.                                                                     <tr>
  389.                                                                         <td>
  390.                                                                             {% if is_granted('ROLE_COMPANY_ADMIN') %}
  391.                                                                                 {% if file.exists %}
  392.                                                                                     <a href="{{ path('app_order_file_download_file', { 'file': file.id }) }}" target="_blank" title="Otevřít soubor">
  393.                                                                                         <svg class="icon icon-xs text-gray-400 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="M10 21h7a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v11m0 5l4.879-4.879m0 0a3 3 0 104.243-4.242 3 3 0 00-4.243 4.242z"></path></svg>
  394.                                                                                     </a>
  395.                                                                                 {% endif %}
  396.                                                                                 <a href="{{ path('app_order_file_delete', {'file': file.id, 'order': order.id}) }}"  data-action="click->app-common#delete" data-reload-element="pdfTable" data-confirm="Opravdu chcete smazat soubor?">
  397.                                                                                     <svg class="icon icon-xs text-gray-400 me-2 text-danger" 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="M9 13h6m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
  398.                                                                                 </a>
  399.                                                                             {% endif %}
  400.                                                                         </td>
  401.                                                                         <td>{{ file.name }}</td>
  402.                                                                         <td class="text-center">Pdf</td>
  403.                                                                         <td class="text-center">{{ file.created|date('d.m.Y H:i:s') }}</td>
  404.                                                                         <td class="text-center">{{ file.changed|date('d.m.Y H:i:s') }}</td>
  405.                                                                         <td class="text-center">{{ file.size|format_bytes }}</td>
  406.                                                                         <td class="text-center">{{ file.version }}</td>
  407.                                                                     </tr>
  408.                                                                 {% endfor %}
  409.                                                                 </tbody>
  410.                                                             </table>
  411.                                                         </div>
  412.                                                     </div>
  413.                                                 </div>
  414.                                             {% endif %}
  415.                                             {% if order.files|onlySigni.count > 0 %}
  416.                                                 <div class="col-12">
  417.                                                     <div class="toast show w-100 mt-5">
  418.                                                         <div class="toast-header">
  419.                                                             <svg class="icon icon-xs text-gray-400 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="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
  420.                                                             <strong class="me-auto fw-bold">Smlouvy podepsané Signi.com</strong>
  421.                                                         </div>
  422.                                                         <div class="toast-body p-0">
  423.                                                             <table class="table table-flush" id="onlySigniTable">
  424.                                                                 <thead class="thead-light">
  425.                                                                 <tr>
  426.                                                                     <th>Akce</th>
  427.                                                                     <th>Název</th>
  428.                                                                     <th>Vytvořeno</th>
  429.                                                                     <th>Změněno</th>
  430.                                                                     <th>Velikost</th>
  431.                                                                     <th>Status</th>
  432.                                                                 </tr>
  433.                                                                 </thead>
  434.                                                                 <tbody>
  435.                                                                 {% for file in order.files|onlySigni %}
  436.                                                                     <tr>
  437.                                                                         <td>
  438.                                                                             {% if is_granted('ROLE_COMPANY_ADMIN') %}
  439.                                                                                 {% if file.signiState == 'completed' %}
  440.                                                                                     <a href="{{ path('app_order_file_download_signi', { 'signi': file.id }) }}" target="_blank" title="Otevřít soubor">
  441.                                                                                         <svg class="icon icon-xs text-gray-400 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="M10 21h7a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v11m0 5l4.879-4.879m0 0a3 3 0 104.243-4.242 3 3 0 00-4.243 4.242z"></path></svg>
  442.                                                                                     </a>
  443.                                                                                     <a href="{{ path('app_order_file_download_signi_cl', { 'signi': file.id }) }}" target="_blank" title="Otevřít Kontrolní list">
  444.                                                                                         <svg class="icon icon-xs text-gray-400 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="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path></svg>
  445.                                                                                     </a>
  446.                                                                                 {% endif %}
  447.                                                                             {% endif %}
  448.                                                                             {% if file.signiState != 'completed' %}
  449.                                                                                 {# pending #}
  450.                                                                                 <a href="{{ path('app_order_file_delete', {'file': file.id, 'order': order.id}) }}" data-action="click->app-common#delete" data-reload-element="onlySigniTable" data-confirm="Opravdu chcete smazat soubor?">
  451.                                                                                     <svg class="icon icon-xs text-gray-400 me-2 text-danger" 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="M9 13h6m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
  452.                                                                                 </a>
  453.                                                                             {% endif %}
  454.                                                                         </td>
  455.                                                                         <td>{{ file.name }}</td>
  456.                                                                         <td class="text-center">{{ file.created|date('d.m.Y H:i:s') }}</td>
  457.                                                                         <td class="text-center">{{ file.changed|date('d.m.Y H:i:s') }}</td>
  458.                                                                         <td class="text-center">{{ file.size|format_bytes }}</td>
  459.                                                                         <td class="text-center">{{ file.signiState }}</td>
  460.                                                                     </tr>
  461.                                                                 {% endfor %}
  462.                                                                 </tbody>
  463.                                                             </table>
  464.                                                         </div>
  465.                                                     </div>
  466.                                                 </div>
  467.                                             {% endif %}
  468.                                             {% if order.files|onlyDigiSign.count > 0 %}
  469.                                                 <div class="col-12">
  470.                                                     <div class="toast show w-100 mt-5">
  471.                                                         <div class="toast-header">
  472.                                                             <svg class="icon icon-xs text-gray-400 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="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
  473.                                                             <strong class="me-auto fw-bold">Dokumenty podepsané v DigiSign.org</strong>
  474.                                                         </div>
  475.                                                         <div class="toast-body p-0">
  476.                                                             <table class="table table-flush" id="onlySigniTable">
  477.                                                                 <thead class="thead-light">
  478.                                                                 <tr>
  479.                                                                     <th>Akce</th>
  480.                                                                     <th>Název</th>
  481.                                                                     <th>Vytvořeno</th>
  482.                                                                     <th>Změněno</th>
  483.                                                                     <th>Velikost</th>
  484.                                                                     <th>Status</th>
  485.                                                                 </tr>
  486.                                                                 </thead>
  487.                                                                 <tbody>
  488.                                                                 {% for file in order.files|onlyDigiSign %}
  489.                                                                     <tr>
  490.                                                                         <td>
  491.                                                                             {% if is_granted('ROLE_COMPANY_ADMIN') %}
  492.                                                                                 {% if file.signiState == 'completed' %}
  493.                                                                                     <a href="{{ path('app_order_file_download_digisign', { 'digiSign': file.id, 'output': 'combined' }) }}" target="_blank" title="Otevřít soubor">
  494.                                                                                         <svg class="icon icon-xs text-gray-400 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="M10 21h7a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v11m0 5l4.879-4.879m0 0a3 3 0 104.243-4.242 3 3 0 00-4.243 4.242z"></path></svg>
  495.                                                                                     </a>
  496.                                                                                     <a href="{{ path('app_order_file_download_digisign', { 'digiSign': file.id, 'output': 'only_log' }) }}" target="_blank" title="Otevřít Kontrolní list">
  497.                                                                                         <svg class="icon icon-xs text-gray-400 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="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path></svg>
  498.                                                                                     </a>
  499.                                                                                 {% endif %}
  500.                                                                             {% endif %}
  501.                                                                             {#                                                                            {% if file.signiState != 'completed' %}#}
  502.                                                                             {#                                                                                #}{# pending #}
  503.                                                                             {#                                                                                <a href="{{ path('app_order_file_delete', {'file': file.id, 'order': order.id}) }}" data-action="click->app-common#delete" data-reload-element="onlySigniTable" data-confirm="Opravdu chcete smazat soubor?">#}
  504.                                                                             {#                                                                                    <svg class="icon icon-xs text-gray-400 me-2 text-danger" 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="M9 13h6m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>#}
  505.                                                                             {#                                                                                </a>#}
  506.                                                                             {#                                                                            {% endif %}#}
  507.                                                                         </td>
  508.                                                                         <td>{{ file.name }}</td>
  509.                                                                         <td class="text-center">{{ file.created|date('d.m.Y H:i:s') }}</td>
  510.                                                                         <td class="text-center">{{ file.changed|date('d.m.Y H:i:s') }}</td>
  511.                                                                         <td class="text-center">{{ file.size|format_bytes }}</td>
  512.                                                                         <td class="text-center">{{ file.signiState }}</td>
  513.                                                                     </tr>
  514.                                                                 {% endfor %}
  515.                                                                 {% for file in order.files|onlyValuablePaperProtocolDigisign %}
  516.                                                                     <tr>
  517.                                                                         <td>
  518.                                                                             {% if is_granted('ROLE_COMPANY_ADMIN') %}
  519.                                                                                 {% if file.signiState == 'completed' %}
  520.                                                                                     <a href="{{ path('app_order_file_download_digisign', { 'digiSign': file.id, 'output': 'combined' }) }}" target="_blank" title="Otevřít soubor">
  521.                                                                                         <svg class="icon icon-xs text-gray-400 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="M10 21h7a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v11m0 5l4.879-4.879m0 0a3 3 0 104.243-4.242 3 3 0 00-4.243 4.242z"></path></svg>
  522.                                                                                     </a>
  523.                                                                                     <a href="{{ path('app_order_file_download_digisign', { 'digiSign': file.id, 'output': 'only_log' }) }}" target="_blank" title="Otevřít Kontrolní list">
  524.                                                                                         <svg class="icon icon-xs text-gray-400 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="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path></svg>
  525.                                                                                     </a>
  526.                                                                                 {% endif %}
  527.                                                                             {% endif %}
  528.                                                                             {#                                                                            {% if file.signiState != 'completed' %}#}
  529.                                                                             {#                                                                                #}{# pending #}
  530.                                                                             {#                                                                                <a href="{{ path('app_order_file_delete', {'file': file.id, 'order': order.id}) }}" data-action="click->app-common#delete" data-reload-element="onlySigniTable" data-confirm="Opravdu chcete smazat soubor?">#}
  531.                                                                             {#                                                                                    <svg class="icon icon-xs text-gray-400 me-2 text-danger" 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="M9 13h6m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>#}
  532.                                                                             {#                                                                                </a>#}
  533.                                                                             {#                                                                            {% endif %}#}
  534.                                                                         </td>
  535.                                                                         <td>{{ file.name }}</td>
  536.                                                                         <td class="text-center">{{ file.created|date('d.m.Y H:i:s') }}</td>
  537.                                                                         <td class="text-center">{{ file.changed|date('d.m.Y H:i:s') }}</td>
  538.                                                                         <td class="text-center">{{ file.size|format_bytes }}</td>
  539.                                                                         <td class="text-center">{{ file.signiState }}</td>
  540.                                                                     </tr>
  541.                                                                 {% endfor %}
  542.                                                                 </tbody>
  543.                                                             </table>
  544.                                                         </div>
  545.                                                     </div>
  546.                                                 </div>
  547.                                             {% endif %}
  548.                                         </div>
  549.                                     </div>
  550.                                 </div>
  551.                             </div>
  552.                         </div>
  553.                         <!-- End of Tab Content -->
  554.                     </div>
  555.                 </div>
  556.             </div>
  557.         </div>
  558.     </section>
  559. {% endblock %}