<?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/index.html.php */
class __TwigTemplate_6d1dc0087190e35c186110b9adbaefe98e769c2489a8f02e3d41750c44286e58 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
 */
\$view->extend('MauticCoreBundle:Default:content.html.php');
\$view['slots']->set('mauticContent', 'lead');
\$view['slots']->set('headerTitle', \$view['translator']->trans('mautic.lead.leads'));

\$pageButtons = [];
if (\$permissions['lead:leads:create']) {
    \$pageButtons[] = [
        'attr' => [
            'class'       => 'btn btn-default btn-nospin quickadd',
            'data-toggle' => 'ajaxmodal',
            'data-target' => '#MauticSharedModal',
            'href'        => \$view['router']->path('mautic_contact_action', ['objectAction' => 'quickAdd']),
            'data-header' => \$view['translator']->trans('mautic.lead.lead.menu.quickadd'),
        ],
        'iconClass' => 'fa fa-bolt',
        'btnText'   => 'mautic.lead.lead.menu.quickadd',
        'primary'   => true,
    ];

    if (\$permissions['lead:imports:create']) {
        \$pageButtons[] = [
            'attr' => [
                'href' => \$view['router']->path('mautic_import_action', ['object' => 'contacts', 'objectAction' => 'new']),
            ],
            'iconClass' => 'fa fa-upload',
            'btnText'   => 'mautic.lead.lead.import',
        ];
    }

    if (\$permissions['lead:imports:view']) {
        \$pageButtons[] = [
            'attr' => [
                'href' => \$view['router']->path('mautic_import_index', ['object' => 'contacts']),
            ],
            'iconClass' => 'fa fa-history',
            'btnText'   => 'mautic.lead.lead.import.index',
        ];
    }
}

// Only show toggle buttons for accessibility
\$extraHtml = <<<button
<div class=\"btn-group ml-5 sr-only \">
    <span data-toggle=\"tooltip\" title=\"{\$view['translator']->trans(
    'mautic.lead.tooltip.list'
)}\" data-placement=\"left\"><a id=\"table-view\" href=\"{\$view['router']->path('mautic_contact_index', ['page' => \$page, 'view' => 'list'])}\" data-toggle=\"ajax\" class=\"btn btn-default\"><i class=\"fa fa-fw fa-table\"></i></span></a>
    <span data-toggle=\"tooltip\" title=\"{\$view['translator']->trans(
    'mautic.lead.tooltip.grid'
)}\" data-placement=\"left\"><a id=\"card-view\" href=\"{\$view['router']->path('mautic_contact_index', ['page' => \$page, 'view' => 'grid'])}\" data-toggle=\"ajax\" class=\"btn btn-default\"><i class=\"fa fa-fw fa-th-large\"></i></span></a>
</div>
button;

\$view['slots']->set(
    'actions',
    \$view->render(
        'MauticCoreBundle:Helper:page_actions.html.php',
        [
            'templateButtons' => [
                'new' => \$permissions['lead:leads:create'],
            ],
            'routeBase'     => 'contact',
            'langVar'       => 'lead.lead',
            'customButtons' => \$pageButtons,
            'extraHtml'     => \$extraHtml,
        ]
    )
);

\$toolbarButtons = [
    [
        'attr' => [
            'class'       => 'hidden-xs btn btn-default btn-sm btn-nospin',
            'href'        => 'javascript: void(0)',
            'onclick'     => 'Mautic.toggleLiveLeadListUpdate();',
            'id'          => 'liveModeButton',
            'data-toggle' => false,
            'data-max-id' => \$maxLeadId,
        ],
        'tooltip'   => \$view['translator']->trans('mautic.lead.lead.live_update'),
        'iconClass' => 'fa fa-bolt',
    ],
];

if ('list' == \$indexMode) {
    \$toolbarButtons[] = [
        'attr' => [
            'class'          => 'hidden-xs btn btn-default btn-sm btn-nospin'.((\$anonymousShowing) ? ' btn-primary' : ''),
            'href'           => 'javascript: void(0)',
            'onclick'        => 'Mautic.toggleAnonymousLeads();',
            'id'             => 'anonymousLeadButton',
            'data-anonymous' => \$view['translator']->trans('mautic.lead.lead.searchcommand.isanonymous'),
        ],
        'tooltip'   => \$view['translator']->trans('mautic.lead.lead.anonymous_leads'),
        'iconClass' => 'fa fa-user-secret',
    ];
}
?>

<div class=\"panel panel-default bdr-t-wdh-0 mb-0\">
    <?php echo \$view->render(
        'MauticCoreBundle:Helper:list_toolbar.html.php',
        [
            'searchValue'   => \$searchValue,
            'searchHelp'    => 'mautic.lead.lead.help.searchcommands',
            'action'        => \$currentRoute,
            'customButtons' => \$toolbarButtons,
        ]
    ); ?>
    <div class=\"page-list\">
        <?php \$view['slots']->output('_content'); ?>
    </div>
</div>
";
    }

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

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

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