<?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/SubscribedEvents/Timeline/ipadded.html.php */
class __TwigTemplate_7fe11ce9c8a57debc20cf10e5cb937e8 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
 */
\$ip = \$event['extra']['ipDetails'];

if (!is_object(\$ip)) {
    // Somehow the IP entity wasn't found

    return;
}

\$details = \$ip->getIpDetails();
?>

<?php if (!empty(\$details['organization'])): ?>
    <i class=\"fa fa-building\"> <?php echo \$details['organization']; ?></i><br />
<?php endif; ?>

<?php
\$locations = [];
if (!empty(\$details['city'])):
    \$locations[] = \$details['city'];
endif;
if (!empty(\$details['region'])):
    \$locations[] = \$details['region'];
endif;
if (!empty(\$details['country'])):
    \$locations[] = \$details['country'];
endif;
\$location = implode(', ', \$locations);
";
    }

    public function getTemplateName()
    {
        return "@bundles/LeadBundle/Views/SubscribedEvents/Timeline/ipadded.html.php";
    }

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

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