templates/report/report.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block body %}
  3.     <h2>Юридическая чистота</h2>
  4.     <table class="block jurist">
  5.         <tbody>
  6.         {% if pledgeBYVisible %}
  7.             <tr>
  8.                 <td class="img-td">
  9.                         {% if pledgeBY %}
  10.                             <img src="/var/www/app/public/resources/img/warning.png" alt="">
  11.                         {% else %}
  12.                             <img src="/var/www/app/public/resources/img/ok.png" alt="">
  13.                         {% endif %}
  14.                 </td>
  15.                 <td>
  16.                     {% if pledgeBY %}
  17.                         <p>Может находиться в залоге на территории Республики Беларусь</p>
  18.                         <p>В "Реестре движимого имущества, обременённого залогом Республики Беларусь" есть записи о залоге на дату проверки.</p>
  19.                     {% else %}
  20.                         <p>Не зарегистрирован залог на территории Республики Беларусь</p>
  21.                         <p>Сведения о нахождении в залоге в "Реестре движимого имущества, обременённого залогом Республики Беларусь" на дату проверки не обнаружены.</p>
  22.                     {% endif %}
  23.                 </td>
  24.             </tr>
  25.         {% endif %}
  26.         {% if avtocod is defined %}
  27.             <tr>
  28.                 <td class="img-td">
  29.                     {% if avtocod.stealings.is_wanted %}
  30.                         <img src="/var/www/app/public/resources/img/warning.png" alt="">
  31.                     {% else %}
  32.                         <img src="/var/www/app/public/resources/img/ok.png" alt="">
  33.                     {% endif %}
  34.                 </td>
  35.                 <td>
  36.                     {% if avtocod.stealings.is_wanted %}
  37.                         <p>Числится в розыске на территории Российской Федерации</p>
  38.                         <p class="dark-grey-text">Обнаружены записи в официальном реестре розыска ГИБДД РФ по ТС с указанным VIN.</p>
  39.                     {% else %}
  40.                         <p>Не числится в розыске на территории Российской Федерации</p>
  41.                         <p class="dark-grey-text">Записи в официальном реестре розыска ГИБДД РФ по ТС с указанным VIN на момент проверки отсутствуют.</p>
  42.                     {% endif %}
  43.                 </td>
  44.             </tr>
  45.             <tr>
  46.                 <td class="img-td">
  47.                     {% if pledgeAvtocod %}
  48.                         <img src="/var/www/app/public/resources/img/warning.png" alt="">
  49.                     {% else %}
  50.                         <img src="/var/www/app/public/resources/img/ok.png" alt="">
  51.                     {% endif %}
  52.                 </td>
  53.                 <td>
  54.                     {% if pledgeAvtocod %}
  55.                         <p>Находится в залоге на территории Российской Федерации</p>
  56.                         <p class="dark-grey-text">Обнаружены сведения о действующих официальных обременениях, зарегистрированных Федеральной нотариальной палатой РФ или Национальным бюро кредитных историй РФ.</p>
  57.                     {% else %}
  58.                         <p>Не находится в залоге на территории Российской Федерации</p>
  59.                         <p class="dark-grey-text">Отсутствуют сведения о действующих официальных обременениях, зарегистрированных Федеральной нотариальной палатой РФ или Национальным бюро кредитных историй РФ.</p>
  60.                     {% endif %}
  61.                 </td>
  62.             </tr>
  63.             <tr>
  64.                 <td class="img-td">
  65.                     {% if avtocod.restrictions.registration_actions.count is defined and avtocod.restrictions.registration_actions.count > 0 %}
  66.                         <img src="/var/www/app/public/resources/img/warning.png" alt="">
  67.                     {% else %}
  68.                         <img src="/var/www/app/public/resources/img/ok.png" alt="">
  69.                     {% endif %}
  70.                 </td>
  71.                 <td>
  72.                     {% if avtocod.restrictions.registration_actions.count is defined and avtocod.restrictions.registration_actions.count > 0 %}
  73.                         <p>Обнаружен запрет регистрационных действий в Российской Федерации </p>
  74.                         <p class="dark-grey-text">Обнаружены действующие ограничения регистрационных действий.</p>
  75.                     {% else %}
  76.                         <p>Не обнаружен запрет регистрационных действий в Российской Федерации </p>
  77.                         <p class="dark-grey-text">Не обнаружены действующие ограничения регистрационных действий.</p>
  78.                     {% endif %}
  79.                 </td>
  80.             </tr>
  81.         {% else %}
  82.             <tr>
  83.                 <td class="img-td">
  84.                     <img src="/var/www/app/public/resources/img/question.png" alt="">
  85.                 </td>
  86.                 <td>
  87.                     <p>Розыск на территории Российской Федерации</p>
  88.                     <p class="dark-grey-text">Ожидаем получение данных из источника.</p>
  89.                 </td>
  90.             </tr>
  91.             <tr>
  92.                 <td class="img-td">
  93.                     <img src="/var/www/app/public/resources/img/question.png" alt="">
  94.                 </td>
  95.                 <td>
  96.                     <p>Залог на территории Российской Федерации</p>
  97.                     <p class="dark-grey-text">Ожидаем получение данных из источника.</p>
  98.                 </td>
  99.             </tr>
  100.         {% endif %}
  101.         </tbody>
  102.     </table>
  103.     {% if custom is defined %}
  104.         <div class="vin-custom">
  105.         <h2>Таможенное оформление в Республике Беларусь</h2>
  106.             {% if custom.description is defined and custom.description is not empty %}
  107.                 <p>{{ custom.description | raw }}</p>
  108.                 <p><strong>Дата таможенного оформления:</strong> {{ custom.customDate | format_datetime('short', 'none', locale='ru') }}</p>
  109.                 <p class="grey-text">Данные получены с сайта Государственного таможенного комитета РБ</p>
  110.             {% else %}
  111.                 <p>Отсутствуют сведения о таможенном оформление в Республике Беларусь. Если автомобиль имеет белорусские регистрационные знаки, это означает, что автомобиль был ввезен в Республику Беларусь до 1998 года, либо таможенное оформление проходило на территории страны ЕАЭС</p>
  112.             {% endif %}
  113.         </div>
  114.     {% endif %}
  115.     {% if carPictures is defined %}
  116.     <div class="car-pictures">
  117.         <h2>Фотографии автомобиля</h2>
  118.         <div class="pics">
  119.             {% for pictureUrl in carPictures %}
  120.                 <img src="{{ pictureUrl }}" alt="">
  121.             {% endfor %}
  122.         </div>
  123.     </div>
  124.     {% endif %}
  125.     <div class="vin-decode">
  126.         <h2>Декодирование VIN</h2>
  127.         <p class="grey-text">Декодирование VIN в соответствии со стандартом ISO 3779 и ISO 3780</p>
  128.         {% if vin.country %}
  129.             <p><strong>Страна производства:</strong> {{ vin.country }}</p>
  130.         {% endif %}
  131.         {% if vin.manufacturer %}
  132.             <p><strong>Производитель:</strong> {{ vin.manufacturer }}</p>
  133.         {% endif %}
  134.         {% if vin.year is not null %}
  135.             <p><strong>Год выпуска:</strong> {{ vin.year }}</p>
  136.         {% endif %}
  137.         {% if vin.checkSum is not null %}
  138.             <p><strong>Контрольная сумма:</strong> проверка {% if not vin.checkSum %}не{% endif %} пройдена</p>
  139.             {% if not vin.checkSum %}
  140.                 <p class="grey-text">Внимание! VIN либо был изменён, либо автомобиль был собран из комплекта SDK. Рекомендуем дополнительно проверить контрольную сумму номера кузова.</p>
  141.             {% endif %}
  142.         {% endif %}
  143.     </div>
  144.     {% if carHistoryRecords is defined %}
  145.     <h2 class="car-history-header">История объявлений</h2>
  146.     <table class="table car-history-records">
  147.         <thead>
  148.             <tr>
  149.                 <th>Наименование</th>
  150.                 <th>Дата объявления</th>
  151.                 <th>Пробег</th>
  152.                 <th>Цена</th>
  153.             </tr>
  154.         </thead>
  155.         <tbody>
  156.             {% for item in carHistoryRecords %}
  157.             <tr>
  158.                 <td>{{ item.name }}</td>
  159.                 <td>{{ item.date }}</td>
  160.                 <td>{{ item.mileage }}</td>
  161.                 <td>{{ item.price }}</td>
  162.             </tr>
  163.             <tr>
  164.                 <td colspan="4">  {{ item.description | raw }}</td>
  165.             </tr>
  166.             {% endfor %}
  167.         </tbody>
  168.     </table>
  169.     {% endif %}
  170.     <h2>История эксплуатации в РФ</h2>
  171.     {% if avtocod is defined %}
  172.         {% if avtocod.accidents.history.count is defined and avtocod.accidents.history.count > 0 %}
  173.             <h3>Участие в ДТП</h3>
  174.             <table class="table car-accidents">
  175.                 <thead>
  176.                     <tr>
  177.                         <th>Дата и время</th>
  178.                         <th>Тип происшествия</th>
  179.                         <th>Регион</th>
  180.                     </tr>
  181.                 </thead>
  182.                 <tbody>
  183.                 {% for item in avtocod.accidents.history.items | reverse %}
  184.                     <tr>
  185.                         <td>{{ item.accident.date | dateFormat(true) }}</td>
  186.                         <td>{{ item.type }}</td>
  187.                         <td>{{ item.geo.region }}</td>
  188.                     </tr>
  189.                     {% if item.scheme is defined %}
  190.                         <tr>
  191.                             <td class="img-td">
  192.                                 <img src={{ item.scheme }} alt="">
  193.                             </td>
  194.                         </tr>
  195.                     {% endif %}
  196.                 {% endfor %}
  197.                 </tbody>
  198.             </table>
  199.         {% else %}
  200.             <h3>Участие в ДТП</h3>
  201.             <table class="table car-accidents">
  202.                 <thead>
  203.                 <tr>
  204.                     <th>Дата и время</th>
  205.                     <th>Тип происшествия</th>
  206.                     <th>Регион</th>
  207.                 </tr>
  208.                 </thead>
  209.                 <tbody>
  210.                 <tr>
  211.                     <td colspan="3">Официально зарегистрированные ДТП с участием данного автомобиля на дату проверки не обнаружены.</td>
  212.                 </tr>
  213.                 </tbody>
  214.             </table>
  215.         {% endif %}
  216.         {% if avtocod.ownership.history.count is defined and avtocod.ownership.history.count > 0 %}
  217.             <h3>История регистрационных действий</h3>
  218.             <table class="table car-ownership">
  219.                 <thead>
  220.                     <tr>
  221.                         <th>Период</th>
  222.                         <th>Владелец</th>
  223.                         <th>Последнее действие от ГИБДД</th>
  224.                     </tr>
  225.                 </thead>
  226.                 <tbody>
  227.                 {% for item in avtocod.ownership.history.items | reverse %}
  228.                     <tr>
  229.                         <td>с {{ item.date.start | dateFormat }} по {% if item.date.end is defined %}{{ item.date.end | dateFormat }}{% else %}н.в.{% endif %}</td>
  230.                         <td>{{ item.owner.type | ownerType }}</td>
  231.                         <td>{{ item.last_operation.description | raw }}</td>
  232.                     </tr>
  233.                 {% endfor %}
  234.                 </tbody>
  235.             </table>
  236.         {% else %}
  237.             <h3>История регистрационных действий</h3>
  238.             <table class="table car-ownership">
  239.                 <thead>
  240.                 <tr>
  241.                     <th>Период</th>
  242.                     <th>Владелец</th>
  243.                 </tr>
  244.                 </thead>
  245.                 <tbody>
  246.                 <tr>
  247.                     <td colspan="2">Отсутствуют сведения о регистрационных действиях на территории РФ.</td>
  248.                 </tr>
  249.                 </tbody>
  250.             </table>
  251.         {% endif %}
  252.         {% if avtocod.mileages.count is defined and avtocod.mileages.count > 0 %}
  253.             <h3>История пробегов</h3>
  254.             <table class="table car-mileages">
  255.                 <thead>
  256.                     <tr>
  257.                         <th>Дата</th>
  258.                         <th>Пробег</th>
  259.                     </tr>
  260.                 </thead>
  261.                 <tbody>
  262.                 {% for item in avtocod.mileages.items %}
  263.                     <tr>
  264.                         <td>{{ item.date.event | dateFormat }}</td>
  265.                         <td>{{ item.mileage }} км</td>
  266.                     </tr>
  267.                 {% endfor %}
  268.                 </tbody>
  269.             </table>
  270.         {% endif %}
  271.         {% if avtocod.restrictions.registration_actions.count is defined and avtocod.restrictions.registration_actions.count > 0 %}
  272.             <h3>Действующие ограничения регистрационных действий</h3>
  273.             <table class="table car-restrictions">
  274.                 <thead>
  275.                     <tr>
  276.                         <th>Начало ограничения</th>
  277.                         <th>Вид ограничения</th>
  278.                         <th>Основание</th>
  279.                         <th>Регион</th>
  280.                         <th>Инициатор</th>
  281.                     </tr>
  282.                 </thead>
  283.                 <tbody>
  284.                 {% for item in avtocod.restrictions.registration_actions.items %}
  285.                     <tr>
  286.                         <td>{{ item.date.start | dateFormat }}</td>
  287.                         <td>{{ item.restrict.type }}</td>
  288.                         <td>{{ item.restrict.reason }}</td>
  289.                         <td>{{ item.initiator.region.name }}</td>
  290.                         <td>{{ item.initiator.name }}</td>
  291.                     </tr>
  292.                 {% endfor %}
  293.                 </tbody>
  294.             </table>
  295.         {% endif %}
  296.     {% else %}
  297.         <h3>Участие в ДТП</h3>
  298.         <table class="table car-accidents">
  299.             <thead>
  300.             <tr>
  301.                 <th>Дата и время</th>
  302.                 <th>Тип происшествия</th>
  303.                 <th>Регион</th>
  304.             </tr>
  305.             </thead>
  306.             <tbody>
  307.                 <tr>
  308.                     <td colspan="3">Ожидаем получение данных.</td>
  309.                 </tr>
  310.             </tbody>
  311.         </table>
  312.         <h3>История регистрационных действий</h3>
  313.         <table class="table car-ownership">
  314.             <thead>
  315.             <tr>
  316.                 <th>Период</th>
  317.                 <th>Владелец</th>
  318.             </tr>
  319.             </thead>
  320.             <tbody>
  321.                 <tr>
  322.                     <td colspan="2">Ожидаем получение данных.</td>
  323.                 </tr>
  324.             </tbody>
  325.         </table>
  326.     {% endif %}
  327.     <p class="footer-text">Отчет сформирован сервисом vin.kufar.by </p>
  328. {% endblock %}