<?php

/* DorcasTabithaBundle:Print:referredselectform.html.twig */
class __TwigTemplate_bcb2e2150e21c5f2f6c051ae2c4544e2 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        $context["clientEmailList"] = "";
        // line 2
        echo "
";
        // line 3
        if (array_key_exists("referrals", $context)) {
            // line 4
            echo "    <strong>";
            echo twig_escape_filter($this->env, $this->getContext($context, "agencyName"), "html", null, true);
            echo "</strong>
    <div id=\"referral_loop\" style=\"padding-left: 20px;\">
        ";
            // line 6
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getContext($context, "referrals"));
            foreach ($context['_seq'] as $context["_key"] => $context["referral"]) {
                // line 7
                echo "
            <div style=\"width:24%; float:left;\">
                                ";
                // line 9
                echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getContext($context, "referral"), "createddt"), "m/d/Y"), "html", null, true);
                echo " &nbsp;
            </div>
            <div style=\"width:36%; float:left;\">
                                ";
                // line 12
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "referral"), "client"), "fullname"), "html", null, true);
                echo " &nbsp;
            </div>
            <div style=\"width:36%; float:left;\">
                                ";
                // line 15
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "referral"), "client"), "email"), "html", null, true);
                echo " &nbsp;
            </div>

            ";
                // line 18
                if (((!twig_test_empty($this->getAttribute($this->getAttribute($this->getContext($context, "referral"), "client"), "email"))) && ($this->getContext($context, "agencyNumber") == 55))) {
                    echo "\t
                ";
                    // line 19
                    $context["clientEmailList"] = twig_join_filter(array(0 => $this->getContext($context, "clientEmailList"), 1 => $this->getAttribute($this->getAttribute($this->getContext($context, "referral"), "client"), "email")), "; ");
                    echo " 
            ";
                }
                // line 21
                echo "
            <br />
        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['referral'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 24
            echo "    </div>
    ";
            // line 25
            if (($this->getContext($context, "agencyNumber") == 55)) {
                // line 26
                echo "
        <input type=button onClick=\"location.href='javascript: displayemail()'\" value='Display Email' style=\"color:#00b5cb; background-color:white; font-size: 12px;\">

        <div id=\"emailList\" style=\"display:none;\">
            <br />
            <textarea rows=\"2\" cols=\"80\" readonly=true, style=\"font-size: 12px;\">";
                // line 31
                echo twig_escape_filter($this->env, $this->getContext($context, "clientEmailList"), "html", null, true);
                echo "</textarea> 
        </div>
    ";
            }
        }
        // line 35
        echo "
";
    }

    public function getTemplateName()
    {
        return "DorcasTabithaBundle:Print:referredselectform.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  92 => 35,  85 => 31,  78 => 26,  76 => 25,  73 => 24,  65 => 21,  60 => 19,  56 => 18,  50 => 15,  44 => 12,  38 => 9,  34 => 7,  30 => 6,  24 => 4,  22 => 3,  19 => 2,  17 => 1,);
    }
}
