<?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/form.html.php */
class __TwigTemplate_6053836c5f4fce4ebdbc66fe9d23a37704acb8b1d0f247a6b8434076bcbdb42d 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');
\$header = (\$lead->getId()) ?
    \$view['translator']->trans('mautic.lead.lead.header.edit',
        ['%name%' => \$view['translator']->trans(\$lead->getPrimaryIdentifier())]) :
    \$view['translator']->trans('mautic.lead.lead.header.new');
\$view['slots']->set('headerTitle', \$header);
\$view['slots']->set('mauticContent', 'lead');

\$groups = array_keys(\$fields);
sort(\$groups);

\$img = \$view['lead_avatar']->getAvatar(\$lead);
?>
<?php echo \$view['form']->start(\$form); ?>
<!-- start: box layout -->
<div class=\"box-layout\">
    <!-- step container -->
    <div class=\"col-md-3 bg-white height-auto\">
        <div class=\"pr-lg pl-lg pt-md pb-md\">
            <div class=\"media\">
                <div class=\"media-body\">
                    <img class=\"img-rounded img-bordered img-responsive media-object\" src=\"<?php echo \$img; ?>\" alt=\"\">
                </div>
            </div>

            <div class=\"row mt-xs\">
                <div class=\"col-sm-12\">
                    <?php echo \$view['form']->label(\$form['preferred_profile_image']); ?>
                    <?php echo \$view['form']->widget(\$form['preferred_profile_image']); ?>
                </div>
                <div
                    class=\"col-sm-12<?php if (\$view['form']->containsErrors(\$form['custom_avatar'])) {
    echo ' has-error';
} ?>\"
                    id=\"customAvatarContainer\"
                    style=\"<?php if ('custom' != \$form['preferred_profile_image']->vars['data']) {
    echo 'display: none;';
} ?>\">
                    <?php echo \$view['form']->widget(\$form['custom_avatar']); ?>
                    <?php echo \$view['form']->errors(\$form['custom_avatar']); ?>
                </div>
            </div>

            <hr/>

            <ul class=\"list-group list-group-tabs\">
                <?php \$step = 1; ?>
                <?php foreach (\$groups as \$g): ?>
                    <?php if (!empty(\$fields[\$g])): ?>
                        <li class=\"list-group-item <?php if (1 === \$step) {
    echo 'active';
} ?>\">
                            <a href=\"#<?php echo \$g; ?>\" class=\"steps\" data-toggle=\"tab\">
                                <?php echo \$view['translator']->trans('mautic.lead.field.group.'.\$g); ?>
                            </a>
                        </li>
                        <?php ++\$step; ?>
                    <?php endif; ?>
                <?php endforeach; ?>
            </ul>
        </div>
    </div>
    <!--/ step container -->

    <!-- container -->
    <div class=\"col-md-9 bg-auto height-auto bdr-l\">
        <div class=\"tab-content\">
            <!-- pane -->
            <?php
            foreach (\$groups as \$key => \$group):
                if (isset(\$fields[\$group])):
                    \$groupFields = \$fields[\$group];
                    if (!empty(\$groupFields)): ?>
                        <div class=\"tab-pane fade<?php if (0 === \$key): echo ' in active'; endif; ?> bdr-rds-0 bdr-w-0\"
                             id=\"<?php echo \$group; ?>\">
                            <div class=\"pa-md bg-auto bg-light-xs bdr-b\">
                                <h4 class=\"fw-sb\"><?php echo \$view['translator']->trans('mautic.lead.field.group.'.\$group); ?></h4>
                            </div>
                            <div class=\"pa-md\">
                                <?php if ('core' == \$group): ?>
                                <?php if (isset(\$form['title']) || isset(\$form['firstname']) || isset(\$form['lastname'])): ?>
                                    <div class=\"form-group mb-0\">
                                        <label
                                            class=\"control-label mb-xs\"><?php echo \$view['translator']->trans('mautic.core.name'); ?></label>
                                        <div class=\"row\">
                                            <?php if (isset(\$form['title'])): ?>
                                                <div class=\"col-sm-2\">
                                                    <?php echo \$view['form']->widget(\$form['title'], ['attr' => ['placeholder' => \$form['title']->vars['label']]]); ?>
                                                </div>
                                            <?php endif; ?>
                                            <?php if (isset(\$form['firstname'])): ?>
                                                <div class=\"col-sm-3\">
                                                    <?php echo \$view['form']->widget(\$form['firstname'], ['attr' => ['placeholder' => \$form['firstname']->vars['label']]]); ?>
                                                </div>
                                            <?php endif; ?>
                                            <?php if (isset(\$form['lastname'])): ?>
                                                <div class=\"col-sm-3\">
                                                    <?php echo \$view['form']->widget(\$form['lastname'], ['attr' => ['placeholder' => \$form['lastname']->vars['label']]]); ?>
                                                </div>
                                            <?php endif; ?>
                                        </div>
                                        <hr class=\"mnr-md mnl-md\">
                                    </div>
                                <?php endif; ?>

                                <div class=\"form-group mb-0\">
                                    <label
                                        class=\"control-label mb-xs\"><?php echo \$form['email']->vars['label']; ?></label>
                                    <div class=\"row\">
                                        <div class=\"col-sm-8\">
                                            <?php echo \$view['form']->widget(\$form['email'], ['attr' => ['placeholder' => \$form['email']->vars['label']]]); ?>
                                        </div>
                                    </div>
                                </div>
                                <hr class=\"mnr-md mnl-md\">
                                    <div class=\"form-group mb-0\">
                                        <label><?php echo \$view['translator']->trans('mautic.company.company'); ?></label>
                                        <div class=\"row\">
                                            <?php if (isset(\$form['companies'])): ?>
                                                <div class=\"col-sm-4\">
                                                    <?php echo \$view['form']->widget(\$form['companies']); ?>
                                                </div>
                                            <?php endif; ?>
                                            <?php if (isset(\$form['position'])): ?>
                                                <div class=\"col-sm-4\">
                                                    <?php echo \$view['form']->widget(\$form['position'], ['attr' => ['placeholder' => \$form['position']->vars['label']]]); ?>
                                                </div>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                    <hr class=\"mnr-md mnl-md\">

                                <?php if (isset(\$form['address1']) || isset(\$form['address2']) || isset(\$form['city']) || isset(\$form['state']) || isset(\$form['zipcode']) || isset(\$form['country'])): ?>
                                    <div class=\"form-group mb-0\">
                                        <label
                                            class=\"control-label mb-xs\"><?php echo \$view['translator']->trans('mautic.lead.field.address'); ?></label>
                                        <?php if (isset(\$form['address1'])): ?>
                                            <div class=\"row mb-xs\">
                                                <div class=\"col-sm-8\">
                                                    <?php echo \$view['form']->widget(\$form['address1'], ['attr' => ['placeholder' => \$form['address1']->vars['label']]]); ?>
                                                </div>
                                            </div>
                                        <?php endif; ?>
                                        <?php if (isset(\$form['address2'])): ?>
                                            <div class=\"row mb-xs\">
                                                <div class=\"col-sm-8\">
                                                    <?php echo \$view['form']->widget(\$form['address2'], ['attr' => ['placeholder' => \$form['address2']->vars['label']]]); ?>
                                                </div>
                                            </div>
                                        <?php endif; ?>
                                        <div class=\"row mb-xs\">
                                            <?php if (isset(\$form['city'])): ?>
                                                <div class=\"col-sm-4\">
                                                    <?php echo \$view['form']->widget(\$form['city'], ['attr' => ['placeholder' => \$form['city']->vars['label']]]); ?>
                                                </div>
                                            <?php endif; ?>
                                            <?php if (isset(\$form['state'])): ?>
                                                <div class=\"col-sm-4\">
                                                    <?php echo \$view['form']->widget(\$form['state'], ['attr' => ['placeholder' => \$form['state']->vars['label']]]); ?>
                                                </div>
                                            <?php endif; ?>
                                        </div>
                                        <div class=\"row\">
                                            <?php if (isset(\$form['zipcode'])): ?>
                                                <div class=\"col-sm-4\">
                                                    <?php echo \$view['form']->widget(\$form['zipcode'], ['attr' => ['placeholder' => \$form['zipcode']->vars['label']]]); ?>
                                                </div>
                                            <?php endif; ?>
                                            <?php if (isset(\$form['country'])): ?>
                                                <div class=\"col-sm-4\">
                                                    <?php echo \$view['form']->widget(\$form['country'], ['attr' => ['placeholder' => \$form['country']->vars['label']]]); ?>
                                                </div>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                    <hr class=\"mnr-md mnl-md\">
                                <?php endif; ?>
                                <?php if (isset(\$form['attribution']) && isset(\$form['attribution_date'])): ?>
                                    <div class=\"form-group mb-0\">
                                        <label
                                            class=\"control-label mb-xs\"><?php echo \$view['translator']->trans('mautic.lead.attribution'); ?></label>
                                        <div class=\"row\">
                                            <div class=\"col-sm-4\">
                                                <?php echo \$view['form']->widget(\$form['attribution'], ['attr' => ['placeholder' => \$form['attribution']->vars['label'], 'preaddon' => 'fa fa-money']]); ?>
                                            </div>
                                            <div class=\"col-sm-4\">
                                                <?php echo \$view['form']->widget(\$form['attribution_date'], ['attr' => ['placeholder' => \$form['attribution_date']->vars['label']]]); ?>
                                            </div>
                                        </div>
                                    </div>
                                    <hr class=\"mnr-md mnl-md\">
                                <?php endif; ?>
                                <?php endif; ?>
                                <div class=\"form-group mb-0\">
                                    <div class=\"row\">
                                        <?php foreach (\$groupFields as \$alias => \$field): ?>
                                            <?php
                                            if (\$isCompany = ('company' === \$alias) || !isset(\$form[\$alias]) || \$form[\$alias]->isRendered()):
                                                // Company rendered so that it doesn't show up at the bottom of the form
                                                if (\$isCompany):
                                                    \$form[\$alias]->setRendered();
                                                endif;
                                                continue;
                                            endif;
                                            ?>
                                            <div class=\"col-sm-8\">
                                                <?php echo \$view['form']->row(\$form[\$alias]); ?>
                                            </div>
                                        <?php endforeach; ?>
                                    </div>
                                </div>
                                <?php if ('core' == \$group): ?>
                                    <hr class=\"mnr-md mnl-md\">
                                    <div class=\"row\">
                                        <div class=\"col-sm-8\">
                                            <?php echo \$view['form']->label(\$form['stage']); ?>
                                            <?php echo \$view['form']->widget(\$form['stage']); ?>
                                        </div>
                                    </div>
                                    <hr class=\"mnr-md mnl-md\">
                                    <div class=\"form-group mb-0\">
                                        <div class=\"row\">
                                            <div class=\"col-sm-4\">
                                                <?php echo \$view['form']->label(\$form['owner']); ?>
                                                <?php echo \$view['form']->widget(\$form['owner']); ?>
                                            </div>
                                            <div class=\"col-sm-4\">
                                                <?php echo \$view['form']->label(\$form['tags']); ?>
                                                <?php echo \$view['form']->widget(\$form['tags']); ?>
                                            </div>
                                        </div>
                                    </div>
                                <?php endif; ?>
                            </div>
                        </div>
                        <?php
                    endif;
                endif;
            endforeach;
            ?>
            <!--/ #pane -->
        </div>
    </div>
    <!--/ end: container -->
</div>
<?php echo \$view['form']->end(\$form); ?>
<!--/ end: box layout -->
";
    }

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

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

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