<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* admin/invoice/invoices.html.twig */
class __TwigTemplate_80558bf31c35f0dd00e075cfdf1d2974 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
'addJs' => [$this, 'block_addJs'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "admin/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/invoice/invoices.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/invoice/invoices.html.twig"));
$this->parent = $this->loadTemplate("admin/base.html.twig", "admin/invoice/invoices.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield "Счета на оплату";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 5
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
yield " <h1 class=\"h3 mb-2 text-gray-800\">Счета на оплату</h1>
<div class=\"card shadow mb-4 mt-4\">
<div class=\"card-header py-3\">
<h6 class=\"m-0 font-weight-bold text-primary\">Список счетов на оплату</h6>
</div>
<div class=\"card-body\">
<div id=\"invoices-table-filters\" class=\"mb-4 d-flex align-items-center\" style=\"gap: 20px; flex-wrap: wrap;\">
";
// line 15
yield from $this->loadTemplate("components/calendar_events_component.html.twig", "admin/invoice/invoices.html.twig", 15)->unwrap()->yield($context);
// line 16
yield "
";
// line 17
yield from $this->loadTemplate("components/table_filter.html.twig", "admin/invoice/invoices.html.twig", 17)->unwrap()->yield(CoreExtension::merge($context, ["options" => ["labelText" => "Мероприятие", "dropdownIdPrefix" => "calendarEvent", "allItemsButtonText" => "Все мероприятия"]]));
// line 22
yield "
";
// line 23
yield from $this->loadTemplate("components/table_filter.html.twig", "admin/invoice/invoices.html.twig", 23)->unwrap()->yield(CoreExtension::merge($context, ["options" => ["labelText" => "Уровень учащегося", "dropdownIdPrefix" => "level", "allItemsButtonText" => "Все уровни"]]));
// line 28
yield "
";
// line 29
yield from $this->loadTemplate("components/table_filter.html.twig", "admin/invoice/invoices.html.twig", 29)->unwrap()->yield(CoreExtension::merge($context, ["options" => ["labelText" => "Статус учащегося", "dropdownIdPrefix" => "status", "allItemsButtonText" => "Все статусы"]]));
// line 34
yield "
";
// line 35
yield from $this->loadTemplate("components/table_filter.html.twig", "admin/invoice/invoices.html.twig", 35)->unwrap()->yield(CoreExtension::merge($context, ["options" => ["labelText" => "Статус счёта", "dropdownIdPrefix" => "invoiceStatus", "allItemsButtonText" => "Все статусы счёта"]]));
// line 40
yield "
";
// line 41
yield from $this->loadTemplate("components/table_filter.html.twig", "admin/invoice/invoices.html.twig", 41)->unwrap()->yield(CoreExtension::merge($context, ["options" => ["labelText" => "Статья финансов", "dropdownIdPrefix" => "financeCategory", "allItemsButtonText" => "Все статьи финансов"]]));
// line 46
yield " </div>
<div class=\"table-responsive\">
<table class=\"table table-bordered\" id=\"invoices-data-table\">
<thead>
<tr>
<th data-table-type=\"num\">Номер п/п</th>
<th data-table-type=\"date-d-m-Y\">Дата создания</th>
<th>Имя</th>
<th data-table-dropdown-id=\"levelDropdown\"
data-table-badge-id=\"levelBadge\"
data-table-dropdown-text-for-all=\"Все уровни\">Уровень учащегося</th>
<th data-export-exclude-col>Статус учащегося</th>
<th data-table-hide-col
data-table-dropdown-id=\"statusDropdown\"
data-table-badge-id=\"statusBadge\"
data-table-dropdown-text-for-all=\"Все статусы\">Статус учащегося (текст)</th>
<th data-table-dropdown-id=\"calendarEventDropdown\"
data-table-badge-id=\"calendarEventBadge\"
data-table-dropdown-text-for-all=\"Все мероприятия\">Мероприятие</th>
<th>Сумма</th>
<th data-export-exclude-col
data-table-dropdown-id=\"invoiceStatusDropdown\"
data-table-badge-id=\"invoiceStatusBadge\"
data-table-dropdown-text-for-all=\"Все статусы счёта\">Статус счёта</th>
<th data-table-hide-col
data-table-dropdown-id=\"invoiceStatusDropdown\"
data-table-badge-id=\"invoiceStatusBadge\"
data-table-dropdown-text-for-all=\"Все статусы счёта\">Статус счёта (текст)</th>
<th data-table-dropdown-id=\"financeCategoryDropdown\"
data-table-badge-id=\"financeCategoryBadge\"
data-table-dropdown-text-for-all=\"Все статьи\">Статья финансов</th>
</tr>
</thead>
<tbody>
";
// line 81
$context["i"] = 0;
// line 82
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 82, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 83
yield " ";
$context["i"] = ((isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 83, $this->source); })()) + 1);
// line 84
yield " ";
$context["person"] = CoreExtension::getAttribute($this->env, $this->source, $context["item"], "person", [], "any", false, false, false, 84);
// line 85
yield " ";
$context["student"] = (((isset($context["person"]) || array_key_exists("person", $context) ? $context["person"] : (function () { throw new RuntimeError('Variable "person" does not exist.', 85, $this->source); })())) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["person"]) || array_key_exists("person", $context) ? $context["person"] : (function () { throw new RuntimeError('Variable "person" does not exist.', 85, $this->source); })()), "student", [], "any", false, false, false, 85)) : (null));
// line 86
yield " ";
$context["calendarEvent"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "candidate", [], "any", false, false, false, 86)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "candidate", [], "any", false, false, false, 86), "calendarEvent", [], "any", false, false, false, 86)) : (null));
// line 87
yield " <tr>
<td>";
// line 88
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 88, $this->source); })()), "html", null, true);
yield "</td>
<td>";
// line 89
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "createdAt", [], "any", false, false, false, 89), "d.m.Y"), "html", null, true);
yield "</td>
<td>";
// line 90
(((isset($context["person"]) || array_key_exists("person", $context) ? $context["person"] : (function () { throw new RuntimeError('Variable "person" does not exist.', 90, $this->source); })())) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["person"]) || array_key_exists("person", $context) ? $context["person"] : (function () { throw new RuntimeError('Variable "person" does not exist.', 90, $this->source); })()), "name", [], "any", false, false, false, 90), "html", null, true)) : (yield "–"));
yield "</td>
<td>";
// line 91
(((isset($context["student"]) || array_key_exists("student", $context) ? $context["student"] : (function () { throw new RuntimeError('Variable "student" does not exist.', 91, $this->source); })())) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["student"]) || array_key_exists("student", $context) ? $context["student"] : (function () { throw new RuntimeError('Variable "student" does not exist.', 91, $this->source); })()), "level", [], "any", false, false, false, 91), "html", null, true)) : (yield "–"));
yield "</td>
<td>
";
// line 93
if ((isset($context["student"]) || array_key_exists("student", $context) ? $context["student"] : (function () { throw new RuntimeError('Variable "student" does not exist.', 93, $this->source); })())) {
// line 94
yield " <span class=\"btn btn-";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["student"]) || array_key_exists("student", $context) ? $context["student"] : (function () { throw new RuntimeError('Variable "student" does not exist.', 94, $this->source); })()), "statusCssClass", [], "any", false, false, false, 94), "html", null, true);
yield " btn-icon-split w-max cursor-default\">
<span class=\"icon text-white-50\"><i class=\"fas fa-tag\"></i></span>
<span class=\"text\">";
// line 96
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["student"]) || array_key_exists("student", $context) ? $context["student"] : (function () { throw new RuntimeError('Variable "student" does not exist.', 96, $this->source); })()), "statusText", [], "any", false, false, false, 96), "html", null, true);
yield "</span>
</span>
";
} else {
// line 99
yield " –
";
}
// line 101
yield " </td>
<td>";
// line 102
(((isset($context["student"]) || array_key_exists("student", $context) ? $context["student"] : (function () { throw new RuntimeError('Variable "student" does not exist.', 102, $this->source); })())) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["student"]) || array_key_exists("student", $context) ? $context["student"] : (function () { throw new RuntimeError('Variable "student" does not exist.', 102, $this->source); })()), "statusText", [], "any", false, false, false, 102), "html", null, true)) : (yield "–"));
yield "</td>
<td>";
// line 103
(((isset($context["calendarEvent"]) || array_key_exists("calendarEvent", $context) ? $context["calendarEvent"] : (function () { throw new RuntimeError('Variable "calendarEvent" does not exist.', 103, $this->source); })())) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["calendarEvent"]) || array_key_exists("calendarEvent", $context) ? $context["calendarEvent"] : (function () { throw new RuntimeError('Variable "calendarEvent" does not exist.', 103, $this->source); })()), "getText", [], "method", false, false, false, 103), "html", null, true)) : (yield "–"));
yield "</td>
<td>";
// line 104
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "amount", [], "any", false, false, false, 104), "html", null, true);
yield "</td>
<td>
";
// line 106
yield from $this->loadTemplate("components/status_button.html.twig", "admin/invoice/invoices.html.twig", 106)->unwrap()->yield(CoreExtension::merge($context, ["options" => ["buttonClass" => CoreExtension::getAttribute($this->env, $this->source, // line 107
$context["item"], "statusCssClass", [], "any", false, false, false, 107), "text" => CoreExtension::getAttribute($this->env, $this->source, // line 108
$context["item"], "statusText", [], "any", false, false, false, 108)]]));
// line 110
yield " </td>
<td>";
// line 111
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "statusText", [], "any", false, false, false, 111), "html", null, true);
yield "</td>
<td>";
// line 112
((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "financeCategory", [], "any", false, false, false, 112)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "financeCategory", [], "any", false, false, false, 112), "name", [], "any", false, false, false, 112), "html", null, true)) : (yield "–"));
yield "</td>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 114
yield " </tbody>
</table>
</div>
<div class=\"mt-4 d-flex\">
<button id=\"download-csv-btn\" class=\"btn btn-primary\">Скачать таблицу</button>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 125
public function block_addJs($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "addJs"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "addJs"));
// line 126
yield " <script>
let table = new CustomDataTable('#invoices-data-table', {
drawRowNumbersForColIndex: 0,
});
table.initDataTable();
\$('#download-csv-btn').click(function() {
table.downloadCsv();
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "admin/invoice/invoices.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 309 => 126, 299 => 125, 279 => 114, 263 => 112, 259 => 111, 256 => 110, 254 => 108, 253 => 107, 252 => 106, 247 => 104, 243 => 103, 239 => 102, 236 => 101, 232 => 99, 226 => 96, 220 => 94, 218 => 93, 213 => 91, 209 => 90, 205 => 89, 201 => 88, 198 => 87, 195 => 86, 192 => 85, 189 => 84, 186 => 83, 168 => 82, 166 => 81, 129 => 46, 127 => 41, 124 => 40, 122 => 35, 119 => 34, 117 => 29, 114 => 28, 112 => 23, 109 => 22, 107 => 17, 104 => 16, 102 => 15, 91 => 6, 81 => 5, 61 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'admin/base.html.twig' %}
{% block title %}Счета на оплату{% endblock %}
{% block content %}
<h1 class=\"h3 mb-2 text-gray-800\">Счета на оплату</h1>
<div class=\"card shadow mb-4 mt-4\">
<div class=\"card-header py-3\">
<h6 class=\"m-0 font-weight-bold text-primary\">Список счетов на оплату</h6>
</div>
<div class=\"card-body\">
<div id=\"invoices-table-filters\" class=\"mb-4 d-flex align-items-center\" style=\"gap: 20px; flex-wrap: wrap;\">
{% include 'components/calendar_events_component.html.twig' %}
{% include 'components/table_filter.html.twig' with { options: {
labelText: 'Мероприятие',
dropdownIdPrefix: 'calendarEvent',
allItemsButtonText: 'Все мероприятия',
}} %}
{% include 'components/table_filter.html.twig' with { options: {
labelText: 'Уровень учащегося',
dropdownIdPrefix: 'level',
allItemsButtonText: 'Все уровни',
}} %}
{% include 'components/table_filter.html.twig' with { options: {
labelText: 'Статус учащегося',
dropdownIdPrefix: 'status',
allItemsButtonText: 'Все статусы',
}} %}
{% include 'components/table_filter.html.twig' with { options: {
labelText: 'Статус счёта',
dropdownIdPrefix: 'invoiceStatus',
allItemsButtonText: 'Все статусы счёта',
}} %}
{% include 'components/table_filter.html.twig' with { options: {
labelText: 'Статья финансов',
dropdownIdPrefix: 'financeCategory',
allItemsButtonText: 'Все статьи финансов',
}} %}
</div>
<div class=\"table-responsive\">
<table class=\"table table-bordered\" id=\"invoices-data-table\">
<thead>
<tr>
<th data-table-type=\"num\">Номер п/п</th>
<th data-table-type=\"date-d-m-Y\">Дата создания</th>
<th>Имя</th>
<th data-table-dropdown-id=\"levelDropdown\"
data-table-badge-id=\"levelBadge\"
data-table-dropdown-text-for-all=\"Все уровни\">Уровень учащегося</th>
<th data-export-exclude-col>Статус учащегося</th>
<th data-table-hide-col
data-table-dropdown-id=\"statusDropdown\"
data-table-badge-id=\"statusBadge\"
data-table-dropdown-text-for-all=\"Все статусы\">Статус учащегося (текст)</th>
<th data-table-dropdown-id=\"calendarEventDropdown\"
data-table-badge-id=\"calendarEventBadge\"
data-table-dropdown-text-for-all=\"Все мероприятия\">Мероприятие</th>
<th>Сумма</th>
<th data-export-exclude-col
data-table-dropdown-id=\"invoiceStatusDropdown\"
data-table-badge-id=\"invoiceStatusBadge\"
data-table-dropdown-text-for-all=\"Все статусы счёта\">Статус счёта</th>
<th data-table-hide-col
data-table-dropdown-id=\"invoiceStatusDropdown\"
data-table-badge-id=\"invoiceStatusBadge\"
data-table-dropdown-text-for-all=\"Все статусы счёта\">Статус счёта (текст)</th>
<th data-table-dropdown-id=\"financeCategoryDropdown\"
data-table-badge-id=\"financeCategoryBadge\"
data-table-dropdown-text-for-all=\"Все статьи\">Статья финансов</th>
</tr>
</thead>
<tbody>
{% set i = 0 %}
{% for item in items %}
{% set i = i + 1 %}
{% set person = item.person %}
{% set student = person ? person.student : null %}
{% set calendarEvent = item.candidate ? item.candidate.calendarEvent : null %}
<tr>
<td>{{ i }}</td>
<td>{{ item.createdAt|date('d.m.Y') }}</td>
<td>{{ person ? person.name : '–' }}</td>
<td>{{ student ? student.level : '–' }}</td>
<td>
{% if student %}
<span class=\"btn btn-{{ student.statusCssClass }} btn-icon-split w-max cursor-default\">
<span class=\"icon text-white-50\"><i class=\"fas fa-tag\"></i></span>
<span class=\"text\">{{ student.statusText }}</span>
</span>
{% else %}
–
{% endif %}
</td>
<td>{{ student ? student.statusText : '–' }}</td>
<td>{{ calendarEvent ? calendarEvent.getText() : '–' }}</td>
<td>{{ item.amount }}</td>
<td>
{% include 'components/status_button.html.twig' with { options: {
buttonClass: item.statusCssClass,
text: item.statusText,
}} %}
</td>
<td>{{ item.statusText }}</td>
<td>{{ item.financeCategory ? item.financeCategory.name : '–' }}</td>
{% endfor %}
</tbody>
</table>
</div>
<div class=\"mt-4 d-flex\">
<button id=\"download-csv-btn\" class=\"btn btn-primary\">Скачать таблицу</button>
</div>
</div>
</div>
{% endblock %}
{% block addJs %}
<script>
let table = new CustomDataTable('#invoices-data-table', {
drawRowNumbersForColIndex: 0,
});
table.initDataTable();
\$('#download-csv-btn').click(function() {
table.downloadCsv();
});
</script>
{% endblock %}
", "admin/invoice/invoices.html.twig", "/home/sariato/www/dev.centr.sariato.ru/templates/admin/invoice/invoices.html.twig");
}
}