<?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/WebhookBundle/Views/Webhook/list.html.php */
class __TwigTemplate_5a74148900c7002be408ee33fb32495c2153edbee4aeed0ba7611dfa85b26d29 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('MauticWebhookBundle:Webhook:index.html.php');
}
?>

<?php if (count(\$items)): ?>
    <div class=\"table-responsive panel-collapse pull out webhook-list\">
        <table class=\"table table-hover table-striped table-bordered webhook-list\" id=\"webhookTable\">
            <thead>
            <tr>
                <?php
                echo \$view->render(
                    'MauticCoreBundle:Helper:tableheader.html.php',
                    [
                        'checkall'        => 'true',
                        'target'          => '#webhookTable',
                        'routeBase'       => 'webhook',
                        'templateButtons' => [
                            'delete' => \$permissions['webhook:webhooks:deleteown'] || \$permissions['webhook:webhooks:deleteother'],
                        ],
                    ]
                );

                echo \$view->render(
                    'MauticCoreBundle:Helper:tableheader.html.php',
                    [
                        'sessionVar' => 'mautic_webhook',
                        'orderBy'    => 'e.name',
                        'text'       => 'mautic.core.name',
                        'class'      => 'col-webhook-name',
                        'default'    => true,
                    ]
                );

                echo \$view->render(
                    'MauticCoreBundle:Helper:tableheader.html.php',
                    [
                        'sessionVar' => 'mautic_webhook',
                        'orderBy'    => 'e.webhookUrl',
                        'text'       => 'mautic.webhook.webhook_url',
                        'class'      => 'col-webhook-id visible-md visible-lg',
                    ]
                );

                echo \$view->render(
                    'MauticCoreBundle:Helper:tableheader.html.php',
                    [
                        'sessionVar' => 'mautic_webhook',
                        'orderBy'    => 'e.id',
                        'text'       => 'mautic.core.id',
                        'class'      => 'col-webhook-id visible-md visible-lg',
                    ]
                );
                ?>
            </tr>
            </thead>
            <tbody>
            <?php /** @var \\Mautic\\WebhookBundle\\Entity\\Webhook \$item */ ?>
            <?php foreach (\$items as \$item): ?>
                <tr>
                    <td>
                        <?php
                        echo \$view->render(
                            'MauticCoreBundle:Helper:list_actions.html.php',
                            [
                                'item'            => \$item,
                                'templateButtons' => [
                                    'edit' => \$view['security']->hasEntityAccess(
                                        \$permissions['webhook:webhooks:editown'],
                                        \$permissions['webhook:webhooks:editother'],
                                        \$item->getCreatedBy()
                                    ),
                                    'clone'  => \$permissions['webhook:webhooks:create'],
                                    'delete' => \$view['security']->hasEntityAccess(
                                        \$permissions['webhook:webhooks:deleteown'],
                                        \$permissions['webhook:webhooks:deleteother'],
                                        \$item->getCreatedBy()
                                    ),
                                ],
                                'routeBase' => 'webhook',
                            ]
                        );
                        ?>
                    </td>
                    <td>
                        <div>
                            <?php echo \$view->render(
                                'MauticCoreBundle:Helper:publishstatus_icon.html.php',
                                ['item' => \$item, 'model' => 'webhook']
                            ); ?>
                            <a data-toggle=\"ajax\" href=\"<?php echo \$view['router']->path(
                                'mautic_webhook_action',
                                ['objectId' => \$item->getId(), 'objectAction' => 'view']
                            ); ?>\">
                                <?php echo \$item->getName(); ?>
                            </a>
                            <?php if (\$description = \$item->getDescription()): ?>
                                <div class=\"text-muted mt-4\">
                                    <small><?php echo \$description; ?></small>
                                </div>
                            <?php endif; ?>
                        </div>
                    </td>
                    <td class=\"visible-md visible-lg\"><?php echo \$item->getWebhookUrl(); ?></td>
                    <td class=\"visible-md visible-lg\"><?php echo \$item->getId(); ?></td>
                </tr>
            <?php endforeach; ?>
            </tbody>
        </table>
    </div>

    <div class=\"panel-footer\">
        <?php echo \$view->render(
            'MauticCoreBundle:Helper:pagination.html.php',
            [
                'totalItems' => count(\$items),
                'page'       => \$page,
                'limit'      => \$limit,
                'menuLinkId' => 'mautic_webhook_index',
                'baseUrl'    => \$view['router']->path('mautic_webhook_index'),
                'sessionVar' => 'mautic_webhook',
            ]
        ); ?>
    </div>
<?php else: ?>
    <?php echo \$view->render('MauticCoreBundle:Helper:noresults.html.php'); ?>
<?php endif; ?>
";
    }

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

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

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