<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* @bundles/LeadBundle/Views/Lead/list.html.php */
class __TwigTemplate_91f299c565bf71f922f3ad74a08aa6ab extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<?php

/*
 * @copyright   2014 Mautic Contributors. All rights reserved
 * @author      Mautic
 *
 * @link        http://mautic.org
 *
 * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
if ('index' == \$tmpl) {
    \$view->extend('MauticLeadBundle:Lead:index.html.php');
}

\$customButtons = [];
if (\$permissions['lead:leads:editown'] || \$permissions['lead:leads:editother']) {
    \$customButtons = [
        [
            'attr' => [
                'class'       => 'btn btn-default btn-sm btn-nospin',
                'data-toggle' => 'ajaxmodal',
                'data-target' => '#MauticSharedModal',
                'href'        => \$view['router']->path('mautic_segment_batch_contact_view'),
                'data-header' => \$view['translator']->trans('mautic.lead.batch.lists'),
            ],
            'btnText'   => \$view['translator']->trans('mautic.lead.batch.lists'),
            'iconClass' => 'fa fa-pie-chart',
        ],
        [
            'attr' => [
                'class'       => 'btn btn-default btn-sm btn-nospin',
                'data-toggle' => 'ajaxmodal',
                'data-target' => '#MauticSharedModal',
                'href'        => \$view['router']->path('mautic_contact_action', ['objectAction' => 'batchStages']),
                'data-header' => \$view['translator']->trans('mautic.lead.batch.stages'),
            ],
            'btnText'   => \$view['translator']->trans('mautic.lead.batch.stages'),
            'iconClass' => 'fa fa-tachometer',
        ],
        [
            'attr' => [
                'class'       => 'btn btn-default btn-sm btn-nospin',
                'data-toggle' => 'ajaxmodal',
                'data-target' => '#MauticSharedModal',
                'href'        => \$view['router']->path('mautic_contact_action', ['objectAction' => 'batchCampaigns']),
                'data-header' => \$view['translator']->trans('mautic.lead.batch.campaigns'),
            ],
            'btnText'   => \$view['translator']->trans('mautic.lead.batch.campaigns'),
            'iconClass' => 'fa fa-clock-o',
        ],
        [
            'attr' => [
                'class'       => 'btn btn-default btn-sm btn-nospin',
                'data-toggle' => 'ajaxmodal',
                'data-target' => '#MauticSharedModal',
                'href'        => \$view['router']->path('mautic_contact_action', ['objectAction' => 'batchOwners']),
                'data-header' => \$view['translator']->trans('mautic.lead.batch.owner'),
            ],
            'btnText'   => \$view['translator']->trans('mautic.lead.batch.owner'),
            'iconClass' => 'fa fa-user',
        ],
        [
            'attr' => [
                'class'       => 'btn btn-default btn-sm btn-nospin',
                'data-toggle' => 'ajaxmodal',
                'data-target' => '#MauticSharedModal',
                'href'        => \$view['router']->path('mautic_contact_action', ['objectAction' => 'batchDnc']),
                'data-header' => \$view['translator']->trans('mautic.lead.batch.dnc'),
            ],
            'btnText'   => \$view['translator']->trans('mautic.lead.batch.dnc'),
            'iconClass' => 'fa fa-ban text-danger',
        ],
    ];
}
?>

<?php if (count(\$items)): ?>
<div class=\"table-responsive\">
    <table class=\"table table-hover table-striped table-bordered\" id=\"leadTable\">
        <thead>
            <tr>
                <?php
                echo \$view->render('MauticCoreBundle:Helper:tableheader.html.php', [
                    'checkall'        => 'true',
                    'target'          => '#leadTable',
                    'templateButtons' => [
                        'delete' => \$permissions['lead:leads:deleteown'] || \$permissions['lead:leads:deleteother'],
                    ],
                    'customButtons' => \$customButtons,
                    'langVar'       => 'lead.lead',
                    'routeBase'     => 'contact',
                    'tooltip'       => \$view['translator']->trans('mautic.lead.list.checkall.help'),
                ]);

                \$columsAliases = array_flip(\$columns);
                foreach (\$columns as \$column=>\$label) {
                    \$template = 'MauticLeadBundle:Lead\\header:'.\$column.'.html.php';
                    if (!\$view->exists(\$template)) {
                        \$template = 'MauticLeadBundle:Lead\\header:default.html.php';
                    }
                    echo \$view->render(
                        \$template,
                        [
                            'label'  => \$label,
                            'column' => \$column,
                            'class'  => array_search(\$column, \$columsAliases) > 1 ? 'hidden-xs' : '',
                        ]
                    );
                }
                ?>
            </tr>
        </thead>
        <tbody>
        <?php echo \$view->render('MauticLeadBundle:Lead:list_rows.html.php', [
            'items'         => \$items,
            'columns'       => \$columns,
            'security'      => \$security,
            'currentList'   => \$currentList,
            'permissions'   => \$permissions,
            'noContactList' => \$noContactList,
        ]); ?>
        </tbody>
    </table>
</div>
<div class=\"panel-footer\">
    <?php echo \$view->render('MauticCoreBundle:Helper:pagination.html.php', [
        'totalItems' => \$totalItems,
        'page'       => \$page,
        'limit'      => \$limit,
        'menuLinkId' => 'mautic_contact_index',
        'baseUrl'    => \$view['router']->path('mautic_contact_index'),
        'tmpl'       => \$indexMode,
        'sessionVar' => 'lead',
    ]); ?>
</div>
<?php else: ?>
<?php echo \$view->render('MauticCoreBundle:Helper:noresults.html.php'); ?>
<?php endif; ?>
";
    }

    public function getTemplateName()
    {
        return "@bundles/LeadBundle/Views/Lead/list.html.php";
    }

    public function getDebugInfo()
    {
        return array (  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@bundles/LeadBundle/Views/Lead/list.html.php", "/var/www/mautic/app/bundles/LeadBundle/Views/Lead/list.html.php");
    }
}
