public function block_content($context, array $blocks = array()) { // line 10 echo "\n"; // line 11 $context["unpaid_invoices"] = $this->getAttribute(isset($context["client"]) ? $context["client"] : null, "invoice_get_list", array(0 => array("status" => "unpaid", "per_page" => 100)), "method"); // line 12 $context["paid_invoices"] = $this->getAttribute(isset($context["client"]) ? $context["client"] : null, "invoice_get_list", array(0 => array("per_page" => 10, "page" => $this->getAttribute(isset($context["request"]) ? $context["request"] : null, "page"), "status" => "paid")), "method"); // line 13 echo "\n<div class=\"row\">\n <article class=\"span12 data-block\">\n <div class=\"data-container\">\n <header>\n <h1>"; // line 18 echo gettext("List of invoices"); echo "</h1><br/>\n "; // line 19 echo gettext("All of your invoices can be found here. You can choose to see either paid or unpaid invoices by clicking corresponding button."); // line 20 echo " <ul class=\"data-header-actions\">\n <li class=\"demoTabs active\"><a href=\"#unpaid\" class=\"btn btn-alt btn-inverse\" data-toggle=\"tab\">"; // line 21 echo gettext("Unpaid"); echo "</a></li>\n <li class=\"demoTabs\" ><a href=\"#paid\" class=\"btn btn-alt btn-inverse\" data-toggle=\"tab\">"; // line 22 echo gettext("Paid"); echo "</a></li>\n </ul>\n </header>\n <section class=\"tab-content\">\n <div class=\"tab-pane active\" id=\"unpaid\">\n <h3>"; // line 27 echo gettext("Unpaid"); echo "</h3>\n\n <table class=\"table table-hover table-striped\">\n <thead>\n <tr>\n <th>"; // line 32 echo gettext("Title"); echo "</th>\n <th>"; // line 33 echo gettext("Issue Date"); echo "</th>\n <th>"; // line 34 echo gettext("Due Date"); echo "</th>\n <th>"; // line 35 echo gettext("Total"); echo "</th>\n <th> </th>\n </tr>\n </thead>\n <tbody>\n "; // line 40 if ($this->getAttribute(isset($context["unpaid_invoices"]) ? $context["unpaid_invoices"] : null, "total") > 0) { // line 41 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["unpaid_invoices"]) ? $context["unpaid_invoices"] : null, "list")); foreach ($context['_seq'] as $context["i"] => $context["invoice"]) { // line 42 echo " <tr class=\""; echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), isset($context["i"]) ? $context["i"] : null), "html", null, true); echo "\">\n <td>"; // line 43 echo twig_escape_filter($this->env, sprintf("Proforma invoice #%05s", $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "id")), "html", null, true); echo "</td>\n <td>"; // line 44 echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "created_at")), "html", null, true); echo "</td>\n <td>"; // line 45 echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "due_at")), "html", null, true); echo "</td>\n <td>"; // line 46 echo twig_money($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "total"), $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "currency")); echo "</td>\n <td><a class=\"btn btn-small btn-primary\" href=\""; // line 47 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("invoice"); echo "/"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "hash"), "html", null, true); echo "\">"; echo gettext("Pay"); echo "</a></td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['invoice'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 50 echo " "; } else { // line 51 echo " <tr>\n <td colspan=\"5\" >"; // line 52 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } // line 55 echo "\n </tbody>\n </table>\n\n </div>\n\n <div class=\"tab-pane\" id=\"paid\">\n <h3>"; // line 62 echo gettext("Paid"); echo "</h3>\n\n <table class=\"table table-hover table-striped\">\n <thead>\n <tr>\n <th>"; // line 67 echo gettext("Title"); echo "</th>\n <th>"; // line 68 echo gettext("Issue Date"); echo "</th>\n <th>"; // line 69 echo gettext("Paid at"); echo "</th>\n <th>"; // line 70 echo gettext("Total"); echo "</th>\n <th> </th>\n </tr>\n </thead>\n\n <tbody>\n "; // line 76 if ($this->getAttribute(isset($context["paid_invoices"]) ? $context["paid_invoices"] : null, "total") > 0) { // line 77 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["paid_invoices"]) ? $context["paid_invoices"] : null, "list")); foreach ($context['_seq'] as $context["i"] => $context["invoice"]) { // line 78 echo "\n <tr class=\""; // line 79 echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), isset($context["i"]) ? $context["i"] : null), "html", null, true); echo "\">\n <td>"; // line 80 echo twig_escape_filter($this->env, sprintf("Proforma invoice #%05s", $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "id")), "html", null, true); echo "</td>\n <td>"; // line 81 echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "created_at")), "html", null, true); echo "</td>\n <td>"; // line 82 echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "paid_at")), "html", null, true); echo "</td>\n <td>"; // line 83 echo twig_money($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "total"), $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "currency")); echo "</td>\n <td><a href=\""; // line 84 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("invoice"); echo "/"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "hash"), "html", null, true); echo "\" class=\"btn btn-primary btn-small\">"; echo gettext("View"); echo "</a></td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['invoice'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 87 echo " "; } else { // line 88 echo " <tr>\n <td colspan=\"7\">"; // line 89 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } // line 92 echo " </tbody>\n </table>\n\n </div>\n </section>\n <footer>\n <p>"; // line 98 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["unpaid_invoices"]) ? $context["unpaid_invoices"] : null, "total"), "html", null, true); echo " unpaid invoices and "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paid_invoices"]) ? $context["paid_invoices"] : null, "total"), "html", null, true); echo " paid invoices</p>\n </footer>\n </div>\n </article>\n </div>\n"; }
public function block_content($context, array $blocks = array()) { // line 18 echo "\n"; // line 19 if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } if ($this->getAttribute($_settings_, "showcase_enabled")) { // line 20 echo "<div class=\"hero-unit\">\n <h1>"; // line 21 if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_settings_, "showcase_heading"), "html", null, true); echo "</h1>\n <p>"; // line 22 if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_settings_, "showcase_text"), "html", null, true); echo "</p>\n <p><a class=\"btn btn-alt btn-primary btn-large\" href=\""; // line 23 if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_settings_, "showcase_button_url"), "html", null, true); echo "\">"; if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_settings_, "showcase_button_title"), "html", null, true); echo "</a></p>\n</div>\n"; } // line 26 echo "\n"; // line 27 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if ($_client_) { // line 28 echo "\n"; // line 29 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } $context["tickets"] = $this->getAttribute($_client_, "support_ticket_get_list", array(0 => array("status" => "on_hold")), "method"); // line 30 if (isset($context["tickets"])) { $_tickets_ = $context["tickets"]; } else { $_tickets_ = null; } if ($this->getAttribute($_tickets_, "total") > 0) { // line 31 echo "<div class=\"row\">\n<article class=\"span12 data-block\">\n<div class=\"data-container\">\n<header>\n <h2>"; // line 35 echo gettext("Tickets waiting your reply"); echo "</h2>\n</header>\n<section id=\"slimScroll1\">\n <table class=\"table table-striped table-bordered table-condensed table-hover\">\n <thead>\n <tr>\n <th>"; // line 41 echo gettext("Id"); echo "</th>\n <th>"; // line 42 echo gettext("Subject"); echo "</th>\n <th>"; // line 43 echo gettext("Help desk"); echo "</th>\n <th>"; // line 44 echo gettext("Status"); echo "</th>\n <th>"; // line 45 echo gettext("Submitted"); echo "</th>\n <th>"; // line 46 echo gettext("Actions"); echo "</th>\n </tr>\n </thead>\n <tbody>\n "; // line 50 if (isset($context["tickets"])) { $_tickets_ = $context["tickets"]; } else { $_tickets_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_tickets_, "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["i"] => $context["ticket"]) { // line 51 echo "\n <tr class=\""; // line 52 if (isset($context["i"])) { $_i_ = $context["i"]; } else { $_i_ = null; } echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $_i_), "html", null, true); echo "\">\n <td>"; // line 53 if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "id"), "html", null, true); echo "</td>\n <td><a href=\""; // line 54 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("support/ticket"); echo "/"; if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "id"), "html", null, true); echo "\">"; if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "subject"), "html", null, true); echo "</a></td>\n <td>"; // line 55 if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_ticket_, "helpdesk"), "name"), "html", null, true); echo "</td>\n <td><span class=\"label\">"; // line 56 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo $_mf_->getstatus_name($this->getAttribute($_ticket_, "status")); echo "</span></td>\n <td>"; // line 57 if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute($_ticket_, "created_at")), "html", null, true); echo "</td>\n <td><a href=\""; // line 58 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("support/ticket"); echo "/"; if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "id"), "html", null, true); echo "\" class=\"btn btn-small btn-inverse\">"; echo gettext("Reply"); echo "</a></td>\n </tr>\n\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 62 echo "\n <tr>\n <td colspan=\"5\">"; // line 64 echo gettext("The list is empty"); echo "</td>\n </tr>\n\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['ticket'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 68 echo "\n </tbody>\n </table>\n</section>\n</div>\n</article>\n</div>\n"; } // line 76 echo "\n<div class=\"row\">\n"; // line 78 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } $context["profile"] = $this->getAttribute($_client_, "client_get"); // line 79 echo "<article class=\"span6 data-block decent\">\n <div class=\"data-container\">\n <header>\n <h2>"; // line 82 echo gettext("Profile"); echo "</h2>\n <ul class=\"data-header-actions\">\n <li>\n <a class=\"btn btn-alt btn-inverse\" href=\""; // line 85 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("client/me"); echo "\">"; echo gettext("Update"); echo "</a>\n </li>\n </ul>\n </header>\n <section>\n <dl class=\"dl-horizontal\">\n <dt>"; // line 91 echo gettext("ID"); echo "</dt>\n <dd>#"; // line 92 if (isset($context["profile"])) { $_profile_ = $context["profile"]; } else { $_profile_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_profile_, "id"), "html", null, true); echo "</dd>\n <dt>"; // line 93 echo gettext("Email"); echo "</dt>\n <dd>"; // line 94 if (isset($context["profile"])) { $_profile_ = $context["profile"]; } else { $_profile_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_profile_, "email"), "html", null, true); echo "</dd>\n <dt>"; // line 95 echo gettext("Balance"); echo "</dt>\n <dd>"; // line 96 if (isset($context["profile"])) { $_profile_ = $context["profile"]; } else { $_profile_ = null; } echo twig_money($this->env, $this->getAttribute($_profile_, "balance"), $this->getAttribute($_profile_, "currency")); echo "</dd>\n </dl>\n </section>\n </div>\n</article>\n\n<article class=\"span6 data-block decent\">\n <div class=\"data-container\">\n <header>\n <h2>"; // line 105 echo gettext("Invoices"); echo "</h2>\n <ul class=\"data-header-actions\">\n <li>\n <a class=\"btn btn-alt btn-inverse\" href=\""; // line 108 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("invoice"); echo "\">"; echo gettext("All Invoices"); echo "</a>\n </li>\n </ul>\n </header>\n <section>\n <dl class=\"dl-horizontal\">\n <dt>"; // line 114 echo gettext("Total"); echo "</dt>\n <dd>"; // line 115 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "invoice_get_list", array(), "method"), "total"), "html", null, true); echo "</dd>\n <dt>"; // line 116 echo gettext("Paid"); echo "</dt>\n <dd>"; // line 117 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "invoice_get_list", array(0 => array("status" => "paid")), "method"), "total"), "html", null, true); echo "</dd>\n <dt>"; // line 118 echo gettext("Unpaid"); echo "</dt>\n <dd>"; // line 119 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "invoice_get_list", array(0 => array("status" => "unpaid")), "method"), "total"), "html", null, true); echo "</dd>\n </dl>\n </section>\n </div>\n</article>\n</div>\n\n<div class=\"row\">\n\n<article class=\"span6 data-block decent\">\n <div class=\"data-container\">\n <header>\n <h2>"; // line 131 echo gettext("Orders"); echo "</h2>\n <ul class=\"data-header-actions\">\n <li>\n <a class=\"btn btn-alt btn-info order-button\" href=\""; // line 134 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("order"); echo "\">"; echo gettext("New order"); echo "</a>\n <a class=\"btn btn-alt btn-inverse\" href=\""; // line 135 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("order/service"); echo "\">"; echo gettext("All orders"); echo "</a>\n </li>\n </ul>\n </header>\n <section>\n <dl class=\"dl-horizontal\">\n <dt>"; // line 141 echo gettext("Total"); echo "</dt>\n <dd>"; // line 142 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "order_get_list", array(0 => array("hide_addons" => 1)), "method"), "total"), "html", null, true); echo "</dd>\n <dt>"; // line 143 echo gettext("Active"); echo "</dt>\n <dd>"; // line 144 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "order_get_list", array(0 => array("hide_addons" => 1, "status" => "active")), "method"), "total"), "html", null, true); echo "</dd>\n <dt>"; // line 145 echo gettext("Expiring"); echo "</dt>\n <dd>"; // line 146 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "order_get_list", array(0 => array("expiring" => 1)), "method"), "total"), "html", null, true); echo "</dd>\n </dl>\n </section>\n </div>\n</article>\n\n<article class=\"span6 data-block decent\">\n <div class=\"data-container\">\n <header>\n <h2>"; // line 155 echo gettext("Tickets"); echo "</h2>\n <ul class=\"data-header-actions\">\n <li>\n <a class=\"btn btn-alt btn-info\" href=\""; // line 158 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("support", array("ticket" => 1)); echo "\">"; echo gettext("New ticket"); echo "</a>\n <a class=\"btn btn-alt btn-inverse\" href=\""; // line 159 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("support"); echo "\">"; echo gettext("All tickets"); echo "</a>\n </li>\n </ul>\n </header>\n <section>\n <dl class=\"dl-horizontal\">\n <dt>"; // line 165 echo gettext("Total"); echo "</dt>\n <dd>"; // line 166 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "support_ticket_get_list", array(), "method"), "total"), "html", null, true); echo "</dd>\n <dt>"; // line 167 echo gettext("Open"); echo "</dt>\n <dd>"; // line 168 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "support_ticket_get_list", array(0 => array("status" => "open")), "method"), "total"), "html", null, true); echo "</dd>\n <dt>"; // line 169 echo gettext("On Hold"); echo "</dt>\n <dd>"; // line 170 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "support_ticket_get_list", array(0 => array("status" => "on_hold")), "method"), "total"), "html", null, true); echo "</dd>\n </dl>\n </section>\n </div>\n</article>\n</div>\n\n<div class=\"row\">\n\n<article class=\"span6 data-block decent\">\n <div class=\"data-container\">\n <header>\n <h2>"; // line 182 echo gettext("Recent orders"); echo "</h2>\n </header>\n <section>\n <table class=\"table table-striped table-bordered table-condensed table-hover\">\n <tbody>\n "; // line 187 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($_client_, "order_get_list", array(0 => array("per_page" => 5, "page" => $this->getAttribute($_request_, "page"), "hide_addons" => 1)), "method"), "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["i"] => $context["order"]) { // line 188 echo " <tr class=\""; if (isset($context["i"])) { $_i_ = $context["i"]; } else { $_i_ = null; } echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $_i_), "html", null, true); echo "\">\n <td><a href=\""; // line 189 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("order/service/manage"); echo "/"; if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_order_, "id"), "html", null, true); echo "\">"; if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_order_, "title"), 30), "html", null, true); echo "</a></td>\n <td><span class=\"label "; // line 190 if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } if ($this->getAttribute($_order_, "status") == "active") { echo "label-success"; } elseif ($this->getAttribute($_order_, "status") == "pending_setup") { echo "label-warning"; } echo "\">"; if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo $_mf_->getstatus_name($this->getAttribute($_order_, "status")); echo "</span></td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 193 echo " <tr>\n <td colspan=\"3\">"; // line 194 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['order'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 197 echo " </tbody>\n </table>\n </section>\n </div>\n</article>\n\n<article class=\"span6 data-block decent\">\n <div class=\"data-container\">\n <header>\n <h2>"; // line 206 echo gettext("Recent emails"); echo "</h2>\n </header>\n <section>\n <table class=\"table table-striped table-bordered table-condensed table-hover\">\n <tbody>\n "; // line 211 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($_client_, "email_get_list", array(0 => array("per_page" => 5)), "method"), "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["i"] => $context["email"]) { // line 212 echo " <tr class=\""; if (isset($context["i"])) { $_i_ = $context["i"]; } else { $_i_ = null; } echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $_i_), "html", null, true); echo "\">\n <td><a href=\""; // line 213 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("email"); echo "/"; if (isset($context["email"])) { $_email_ = $context["email"]; } else { $_email_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_email_, "id"), "html", null, true); echo "\">"; if (isset($context["email"])) { $_email_ = $context["email"]; } else { $_email_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_email_, "subject"), 30), "html", null, true); echo "</a></td>\n <td title=\""; // line 214 if (isset($context["email"])) { $_email_ = $context["email"]; } else { $_email_ = null; } echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute($_email_, "created_at")), "html", null, true); echo "\">"; if (isset($context["email"])) { $_email_ = $context["email"]; } else { $_email_ = null; } echo twig_escape_filter($this->env, twig_timeago_filter($this->getAttribute($_email_, "created_at")), "html", null, true); echo " "; echo gettext("ago"); echo "</td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 217 echo " <tr>\n <td colspan=\"2\">"; // line 218 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['email'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 221 echo " </tbody>\n </table>\n </section>\n </div>\n</article>\n\n</div>\n\n"; } }
public function block_content($context, array $blocks = array()) { // line 8 echo "<div class=\"row\">\n<article class=\"span12 data-block\">\n <div class=\"data-container\">\n\n <header>\n <h1>"; // line 13 echo gettext("Payments history"); echo "</h1>\n <p>"; // line 14 echo gettext("Here you can track what you have been charged for and add more funds to your account"); echo "</p>\n </header>\n\n <section>\n <table class=\"table table-striped table-bordered table-condensed table-hover\">\n <thead>\n <tr>\n <th>"; // line 21 echo gettext("Description"); echo "</th>\n <th>"; // line 22 echo gettext("Date"); echo "</th>\n <th>"; // line 23 echo gettext("Amount"); echo "</th>\n </tr>\n </thead>\n <tbody>\n "; // line 27 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } $context["transactions"] = $this->getAttribute($_client_, "client_balance_get_list", array(0 => array("per_page" => 10, "page" => $this->getAttribute($_request_, "page"))), "method"); // line 28 echo " "; if (isset($context["transactions"])) { $_transactions_ = $context["transactions"]; } else { $_transactions_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_transactions_, "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["i"] => $context["tx"]) { // line 29 echo " <tr class=\""; if (isset($context["i"])) { $_i_ = $context["i"]; } else { $_i_ = null; } echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $_i_), "html", null, true); echo "\">\n <td>"; // line 30 if (isset($context["tx"])) { $_tx_ = $context["tx"]; } else { $_tx_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_tx_, "description"), "html", null, true); echo "</td>\n <td>"; // line 31 if (isset($context["tx"])) { $_tx_ = $context["tx"]; } else { $_tx_ = null; } echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute($_tx_, "created_at")), "html", null, true); echo "</td>\n <td>"; // line 32 if (isset($context["tx"])) { $_tx_ = $context["tx"]; } else { $_tx_ = null; } echo twig_money($this->env, $this->getAttribute($_tx_, "amount"), $this->getAttribute($_tx_, "currency")); echo "</td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 35 echo " <tr>\n <td colspan=\"3\">"; // line 36 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['tx'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 39 echo " </tbody>\n <tfoot>\n <tr>\n <td colspan=\"2\">"; // line 42 echo gettext("Total:"); echo "</td>\n <td><strong>"; // line 43 if (isset($context["profile"])) { $_profile_ = $context["profile"]; } else { $_profile_ = null; } echo twig_money($this->env, $this->getAttribute($_profile_, "balance"), $this->getAttribute($_profile_, "currency")); echo "</strong></td>\n </tr>\n </tfoot>\n </table>\n "; // line 47 if (isset($context["transactions"])) { $_transactions_ = $context["transactions"]; } else { $_transactions_ = null; } $this->env->loadTemplate("partial_pagination.phtml")->display(array_merge($context, array("list" => $_transactions_))); // line 48 echo "\n <div class=\"row-fluid\">\n\n <div class=\"span3\">\n <form action=\"\" method=\"post\" class=\"form-inline api-form\" data-api-url=\""; // line 52 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/client/invoice/funds_invoice"); echo "\" data-api-jsonp=\"onAfterInvoiceCreated\">\n <fieldset>\n <div class=\"control-group\">\n <div class=\"form-controls\">\n <div class=\"input-append\">\n <input id=\"appendedPrependedInput\" class=\"span4\" type=\"text\" name=\"amount\" placeholder=\"0\" required=\"required\"><button class=\"btn\" type=\"submit\">"; // line 57 echo gettext("Add funds!"); echo "</button>\n </div>\n </div>\n </div>\n </fieldset>\n </form>\n </div>\n\n </div>\n\n </section>\n\n</article>\n</div>\n\n"; }
public function getcurrency_format($_price = null, $_currency = null) { $context = $this->env->mergeGlobals(array("price" => $_price, "currency" => $_currency)); $blocks = array(); ob_start(); try { // line 20 echo " "; echo twig_money($this->env, isset($context["price"]) ? $context["price"] : null, isset($context["currency"]) ? $context["currency"] : null); echo "\n"; } catch (Exception $e) { ob_end_clean(); throw $e; } return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); }
public function block_body($context, array $blocks = array()) { // line 47 if (!(isset($context["client"]) ? $context["client"] : null)) { // line 48 echo "<script type=\"text/javascript\">\$(function(){bb.redirect('"; echo $this->env->getExtension('bb')->twig_bb_client_link_filter("login"); echo "');});</script>\n"; } else { // line 50 $context["profile"] = $this->getAttribute(isset($context["client"]) ? $context["client"] : null, "client_get"); // line 51 $context["company"] = $this->getAttribute(isset($context["guest"]) ? $context["guest"] : null, "system_company"); // line 52 echo "\n<div id=\"wrapper\">\n <header class=\"container\" id=\"header\">\n "; // line 55 if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "show_page_header")) { // line 56 echo " <nav>\n <ul class=\"f16\">\n "; // line 58 $context["languages"] = $this->getAttribute(isset($context["guest"]) ? $context["guest"] : null, "extension_languages"); // line 59 echo " "; if (twig_length_filter($this->env, isset($context["languages"]) ? $context["languages"] : null) > 1) { // line 60 echo " "; $context["currentLang"] = $this->getAttribute(isset($context["guest"]) ? $context["guest"] : null, "system_locale"); // line 61 echo " "; $context["countryCode"] = twig_slice($this->env, isset($context["currentLang"]) ? $context["currentLang"] : null, 3, 2); // line 62 echo " <li>\n <div class=\"btn-group\">\n <a class=\"btn dropdown-toggle\" data-toggle=\"dropdown\" href=\"#\">\n <span class=\"flag "; // line 65 echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["countryCode"]) ? $context["countryCode"] : null), "html", null, true); echo "\"></span>\n "; // line 66 echo twig_escape_filter($this->env, isset($context["countryCode"]) ? $context["countryCode"] : null, "html", null, true); echo "\n <span class=\"caret\"></span>\n </a>\n <ul class=\"dropdown-menu\">\n "; // line 70 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["languages"]) ? $context["languages"] : null); foreach ($context['_seq'] as $context["_key"] => $context["lang"]) { // line 71 echo " "; $context["countryCode"] = twig_slice($this->env, isset($context["lang"]) ? $context["lang"] : null, 3, 2); // line 72 echo " "; if ((isset($context["lang"]) ? $context["lang"] : null) != (isset($context["currentLang"]) ? $context["currentLang"] : null)) { // line 73 echo " <li class=\"language_selector\" data-language-code=\""; echo twig_escape_filter($this->env, isset($context["lang"]) ? $context["lang"] : null, "html", null, true); echo "\"><a href=\"javascript:;\"> <span class=\"flag "; echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["countryCode"]) ? $context["countryCode"] : null), "html", null, true); echo "\"></span> "; echo twig_escape_filter($this->env, gettext(isset($context["lang"]) ? $context["lang"] : null), "html", null, true); echo "</a></li>\n "; } // line 75 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lang'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 76 echo " </ul>\n </div>\n </li>\n\n "; } // line 81 echo "\n "; // line 82 if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "top_menu_dashboard")) { // line 83 echo " <li>\n <a href=\""; // line 84 echo $this->env->getExtension('bb')->twig_bb_client_link_filter(""); echo "\" class=\"show-tip\" title=\""; echo gettext("Dashboard"); echo "\">"; echo gettext("Dashboard"); echo "</a>\n </li>\n "; } // line 87 echo " "; if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "top_menu_order")) { // line 88 echo " <li class=\"order-button\">\n <a href=\"#\" class=\"show-tip\" title=\""; // line 89 echo gettext("Order"); echo "\">"; echo gettext("Order services"); echo "</a>\n </li>\n "; } // line 92 echo " "; if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "top_menu_profile")) { // line 93 echo " <li>\n <a href=\""; // line 94 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("client/me"); echo "\" class=\"show-tip\" title=\""; echo gettext("Profile"); echo "\">"; echo gettext("Profile"); echo "</a>\n </li>\n "; } // line 97 echo "\n "; // line 98 if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "top_menu_signout")) { // line 99 echo " <li>\n <a href=\""; // line 100 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("client/logout"); echo "\" class=\"show-tip\" title=\""; echo gettext("Sign out"); echo "\">"; echo gettext("Sign out"); echo "</a>\n </li>\n "; } // line 103 echo " </ul>\n </nav>\n\n "; // line 106 if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "show_company_logo")) { // line 107 echo " "; if ($this->getAttribute(isset($context["company"]) ? $context["company"] : null, "logo_url")) { // line 108 echo " <h1>\n <a href=\""; // line 109 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("/"); echo "\">\n <img src=\""; // line 110 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["company"]) ? $context["company"] : null, "logo_url"), "html", null, true); echo "\" alt=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["company"]) ? $context["company"] : null, "name"), "html", null, true); echo "\" title=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["company"]) ? $context["company"] : null, "name"), "html", null, true); echo "\" style=\"max-height: 75px\"/>\n </a>\n <p></p>\n </h1>\n "; } // line 115 echo " "; } // line 116 echo "\n "; // line 117 if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "show_company_name")) { // line 118 echo " <p>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["company"]) ? $context["company"] : null, "name"), "html", null, true); echo "</p>\n "; } // line 120 echo " "; } // line 121 echo " </header>\n <section class=\"container\" role=\"main\">\n <div class=\"navigation-block\">\n\n <div class=\"navbar\">\n <a class=\"btn btn-navbar btn-block btn-large\" data-toggle=\"collapse\" data-target=\".nav-collapse\"><span class=\"awe-user\"></span> "; // line 126 echo gettext("User profile"); echo "</a>\n </div>\n\n <nav class=\"main-navigation nav-collapse collapse\" role=\"navigation\">\n "; // line 130 $this->env->loadTemplate("partial_menu.phtml")->display($context); // line 131 echo " </nav>\n\n "; // line 133 if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "show_client_details")) { // line 134 echo " <section class=\"user-profile\">\n <figure>\n <img alt=\""; // line 136 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["profile"]) ? $context["profile"] : null, "first_name"), "html", null, true); echo " "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["profile"]) ? $context["profile"] : null, "last_name"), "html", null, true); echo " gravatar\" src=\""; echo twig_escape_filter($this->env, twig_gravatar_filter($this->getAttribute(isset($context["profile"]) ? $context["profile"] : null, "email"), 60), "html", null, true); echo "\">\n <figcaption>\n <strong><a href=\""; // line 138 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("client/profile"); echo "\" class=\"\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["profile"]) ? $context["profile"] : null, "first_name"), "html", null, true); echo " "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["profile"]) ? $context["profile"] : null, "last_name"), "html", null, true); echo "</a></strong>\n <em>"; // line 139 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["profile"]) ? $context["profile"] : null, "company"), "html", null, true); echo "</em>\n <ul>\n <li><a class=\"btn btn-primary btn-flat\" href=\""; // line 141 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("client/profile"); echo "\">"; echo gettext("profile"); echo "</a></li>\n <li><a class=\"btn btn-primary btn-flat\" href=\""; // line 142 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("client/logout"); echo "\">"; echo gettext("sign out"); echo "</a></li>\n </ul>\n </figcaption>\n </figure>\n </section>\n "; } // line 148 echo "\n "; // line 149 if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "sidebar_balance_enabled")) { // line 150 echo " <section class=\"balance\">\n <h2>"; // line 151 echo gettext("Account balance"); echo "</h2>\n <strong>"; // line 152 echo twig_money($this->env, $this->getAttribute(isset($context["profile"]) ? $context["profile"] : null, "balance"), $this->getAttribute(isset($context["profile"]) ? $context["profile"] : null, "currency")); echo "</strong>\n </section>\n "; } // line 155 echo "\n "; // line 156 if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "sidebar_note_enabled")) { // line 157 echo " <section class=\"side-note\">\n <div class=\"side-note-container\">\n <h2>"; // line 159 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "sidebar_note_title"), "html", null, true); echo "</h2>\n <p>"; // line 160 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "sidebar_note_content"), "html", null, true); echo "</p>\n </div>\n <div class=\"side-note-bottom\"></div>\n </section>\n "; } // line 165 echo " </div>\n\n <div class=\"content-block\" role=\"main\">\n\n "; // line 169 if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "show_breadcrumb")) { // line 170 echo " "; $this->displayBlock('breadcrumbs', $context, $blocks); // line 178 echo " "; } // line 179 echo "\n "; // line 180 if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "show_page_header")) { // line 181 echo " "; // line 187 echo " "; } // line 188 echo "\n "; // line 189 $this->env->loadTemplate("partial_message.phtml")->display($context); // line 190 echo "\n "; // line 191 $this->displayBlock('content_before', $context, $blocks); // line 192 echo " "; $this->displayBlock('content', $context, $blocks); // line 193 echo " "; $this->displayBlock('content_after', $context, $blocks); // line 194 echo " </div>\n </section>\n <div id=\"push\"></div>\n</div>\n\n"; // line 199 if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_enabled")) { // line 200 echo "<footer id=\"footer\" class=\"container\">\n <p>© "; // line 201 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, isset($context["now"]) ? $context["now"] : null, "Y"), "html", null, true); echo " "; echo $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_signature", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_signature"), $this->getAttribute(isset($context["company"]) ? $context["company"] : null, "signature")) : $this->getAttribute(isset($context["company"]) ? $context["company"] : null, "signature"); echo "</p>\n <ul>\n "; // line 203 if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_1_enabled")) { // line 204 echo " <li>\n "; // line 205 if (twig_in_filter("http://", $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_1_page")) || twig_in_filter("https://", $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_1_page"))) { // line 206 echo " <a href=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_1_page"), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_1_title"), "html", null, true); echo "</a>\n "; } else { // line 208 echo " <a href=\""; echo $this->env->getExtension('bb')->twig_bb_client_link_filter($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_1_page")); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_1_title"), "html", null, true); echo "</a>\n "; } // line 210 echo " </li>\n "; } // line 212 echo " "; if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_2_enabled")) { // line 213 echo " <li>\n "; // line 214 if (twig_in_filter("http://", $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_2_page")) || twig_in_filter("https://", $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_2_page"))) { // line 215 echo " <a href=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_2_page"), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_2_title"), "html", null, true); echo "</a>\n "; } else { // line 217 echo " <a href=\""; echo $this->env->getExtension('bb')->twig_bb_client_link_filter($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_2_page")); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_2_title"), "html", null, true); echo "</a>\n "; } // line 219 echo " </li>\n "; } // line 221 echo " "; if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_3_enabled")) { // line 222 echo " <li>\n "; // line 223 if (twig_in_filter("http://", $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_3_page")) || twig_in_filter("https://", $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_3_page"))) { // line 224 echo " <a href=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_3_page"), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_3_title"), "html", null, true); echo "</a>\n "; } else { // line 226 echo " <a href=\""; echo $this->env->getExtension('bb')->twig_bb_client_link_filter($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_3_page")); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_3_title"), "html", null, true); echo "</a>\n\n "; } // line 229 echo " </li>\n "; } // line 231 echo " "; if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_4_enabled")) { // line 232 echo " <li>\n "; // line 233 if (twig_in_filter("http://", $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_4_page")) || twig_in_filter("https://", $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_4_page"))) { // line 234 echo " <a href=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_4_page"), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_4_title"), "html", null, true); echo "</a>\n "; } else { // line 236 echo " <a href=\""; echo $this->env->getExtension('bb')->twig_bb_client_link_filter($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_4_page")); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_4_title"), "html", null, true); echo "</a>\n "; } // line 238 echo " </li>\n "; } // line 240 echo " "; if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_5_enabled")) { // line 241 echo " <li>\n "; // line 242 if (twig_in_filter("http://", $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_5_page")) || twig_in_filter("https://", $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_5_page"))) { // line 243 echo " <a href=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_5_page"), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_5_title"), "html", null, true); echo "</a>\n "; } else { // line 245 echo " <a href=\""; echo $this->env->getExtension('bb')->twig_bb_client_link_filter($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_5_page")); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_link_5_title"), "html", null, true); echo "</a>\n "; } // line 247 echo " </li>\n "; } // line 249 echo "\n "; // line 251 echo " "; if ($this->getAttribute(isset($context["guest"]) ? $context["guest"] : null, "extension_is_on", array(0 => array("mod" => "branding")), "method")) { // line 252 echo " <li>\n <a href=\"http://www.boxbilling.com\" title=\"Billing Software\" target=\"_blank\">"; // line 253 echo gettext("Powered by BoxBilling"); echo "</a>\n </li>\n "; } // line 256 echo " </ul>\n "; // line 257 if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : null, "footer_to_top_enabled")) { // line 258 echo " <a href=\"#top\" class=\"btn btn-primary btn-flat pull-right\"><span class=\"awe-arrow-up\"></span> "; echo gettext("Top"); echo "</a>\n "; } // line 260 echo "</footer>\n"; } // line 262 echo "\n<div class=\"wait\" style=\"display:none\" onclick=\"\$(this).hide();\">\n <div class=\"popup_block\" style=\"position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: black; opacity: 0.5; -webkit-opacity: 0.5; -moz-opacity: 0.5; filter : alpha(opacity=50); z-index: 2000\">\n <img src=\""; // line 265 echo twig_asset_url($this->env, "img/loader.gif"); echo "\" style=\"position: absolute; display: block; margin-left: auto; margin-right: auto; position: relative; top: 50%; opacity: 1; filter: alpha(opacity=100); z-index: 1003\">\n </div>\n</div>\n<noscript>NOTE: Many features on BoxBilling require Javascript and cookies. You can enable both via your browser's preference settings.</noscript>\n\n"; } }
public function block_content($context, array $blocks = array()) { // line 14 echo "\n"; // line 15 $context["seller"] = $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "seller"); // line 16 $context["buyer"] = $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "buyer"); // line 17 $context["company"] = $this->getAttribute(isset($context["guest"]) ? $context["guest"] : null, "system_company"); // line 18 echo "\n"; // line 19 if ($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "status") == "unpaid") { // line 20 echo "<div class=\"row\">\n<article class=\"span12 data-block decent\">\n<div class=\"data-container\">\n\n\n<header>\n <h2>"; // line 26 echo gettext("Payment methods"); echo "</h2>\n <p>"; // line 27 echo gettext("Please choose payment type and pay for your chosen products."); echo "</p>\n</header>\n<form method=\"post\" action=\""; // line 29 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/guest/invoice/payment"); echo "\" class=\"api-form\" data-api-redirect=\""; echo $this->env->getExtension('bb')->twig_bb_client_link_filter("invoice/" . $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "hash"), array("auto_redirect" => 1)); echo "\">\n <input type=\"hidden\" name=\"hash\" value=\""; // line 30 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "hash"), "html", null, true); echo "\"/>\n "; // line 31 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["guest"]) ? $context["guest"] : null, "invoice_gateways")); foreach ($context['_seq'] as $context["_key"] => $context["gtw"]) { // line 32 echo " "; if (twig_in_filter($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "currency"), $this->getAttribute(isset($context["gtw"]) ? $context["gtw"] : null, "accepted_currencies"))) { // line 33 echo " "; $context["banklink"] = $this->env->getExtension('bb')->twig_bb_client_link_filter("invoice/banklink"); // line 34 echo " <button type=\"button\" class=\"logo-"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["gtw"]) ? $context["gtw"] : null, "code"), "html", null, true); echo " hover-popover\" type=\"radio\" name=\"gateway_id\" gateway_id=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["gtw"]) ? $context["gtw"] : null, "id"), "html", null, true); echo "\" data-toggle=\"tooltip\" title=\""; echo gettext("Pay with"); echo " "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["gtw"]) ? $context["gtw"] : null, "title"), "html", null, true); echo "\" onclick=\"window.location.replace('"; echo twig_escape_filter($this->env, isset($context["banklink"]) ? $context["banklink"] : null, "html", null, true); echo "/"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "hash"), "html", null, true); echo "/"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["gtw"]) ? $context["gtw"] : null, "id"), "html", null, true); echo "')\")></button>\n "; } // line 36 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['gtw'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 37 echo " <input type=\"hidden\" name=\"gateway_id\" id=\"gateway_id\">\n</form>\n</div>\n</article>\n</div>\n\n"; } // line 44 echo "\n<div class=\"row\">\n <article class=\"span12 data-block\">\n <div class=\"data-container\">\n\n <header>\n <h1>"; // line 50 echo gettext("Invoice"); echo " "; echo twig_escape_filter($this->env, isset($context["nr"]) ? $context["nr"] : null, "html", null, true); echo "</h1><br/>\n "; // line 51 echo gettext("You can print this invoice or export it to PDF file by clicking on corresponding button."); // line 52 echo " <ul class=\"data-header-actions\">\n <li><a href=\""; // line 53 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("invoice/pdf"); echo "/"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "hash"), "html", null, true); echo "\" class=\"btn btn-alt btn-inverse\">"; echo gettext("PDF"); echo "</a></li>\n <li><a href=\""; // line 54 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("invoice/print"); echo "/"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "hash"), "html", null, true); echo "\" target=\"_blank\" class=\"btn btn-alt btn-inverse\">"; echo gettext("Print"); echo "</a></li>\n </ul>\n </header>\n\n <section>\n <div class=\"row-fluid\">\n <div class=\"span4\">\n "; // line 61 if ($this->getAttribute(isset($context["company"]) ? $context["company"] : null, "logo_url")) { // line 62 echo " <img src=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["company"]) ? $context["company"] : null, "logo_url"), "html", null, true); echo "\" alt=\"Logo\">\n "; } // line 64 echo " <dl class=\"dl-horizontal\">\n <dt>"; // line 65 echo gettext("Invoice number"); echo ":</dt>\n <dd>"; // line 66 echo twig_escape_filter($this->env, isset($context["nr"]) ? $context["nr"] : null, "html", null, true); echo "</dd>\n <dt>"; // line 67 echo gettext("Invoice date"); echo ":</dt>\n <dd>"; // line 68 if ($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "paid_at")) { // line 69 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "paid_at")), "html", null, true); echo "\n "; } else { // line 71 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "created_at")), "html", null, true); echo "\n "; } // line 73 echo " </dd>\n <dt>"; // line 74 echo gettext("Due date"); echo ":</dt>\n <dd>"; // line 75 if ($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "due_at")) { // line 76 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "due_at")), "html", null, true); echo "\n "; } else { // line 78 echo " -----\n "; } // line 80 echo " </dd>\n <dt>"; // line 81 echo gettext("Invoice status"); echo ":</dt>\n <dd>\n <span class=\"label "; // line 83 if ($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "status") == "paid") { echo " label-success"; } elseif ($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "status") == "unpaid") { echo "label-warning"; } echo "\">\n "; // line 84 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "status")), "html", null, true); echo "\n </span>\n </dd>\n </dl>\n </div>\n <div class=\"span4\">\n <div class=\"well small\">\n <h4>"; // line 91 echo gettext("Company"); echo "</h4>\n <dl class=\"dl-horizontal\">\n "; // line 93 if ($this->getAttribute(isset($context["seller"]) ? $context["seller"] : null, "company")) { // line 94 echo " <dt>"; echo gettext("Name"); echo ":</dt>\n <dd>"; // line 95 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["seller"]) ? $context["seller"] : null, "company"), "html", null, true); echo "</dd>\n "; } // line 97 echo "\n "; // line 98 if ($this->getAttribute(isset($context["seller"]) ? $context["seller"] : null, "company_vat")) { // line 99 echo " <dt>"; echo gettext("VAT"); echo ":</dt>\n <dd>"; // line 100 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["seller"]) ? $context["seller"] : null, "company_vat"), "html", null, true); echo "</dd>\n "; } // line 102 echo "\n "; // line 103 if ($this->getAttribute(isset($context["seller"]) ? $context["seller"] : null, "address")) { // line 104 echo " <dt>"; echo gettext("Address"); echo ":</dt>\n <dd>"; // line 105 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["seller"]) ? $context["seller"] : null, "address"), "html", null, true); echo "</dd>\n "; } // line 107 echo "\n "; // line 108 if ($this->getAttribute(isset($context["seller"]) ? $context["seller"] : null, "phone")) { // line 109 echo " <dt>"; echo gettext("Phone"); echo ":</dt>\n <dd>"; // line 110 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["seller"]) ? $context["seller"] : null, "phone"), "html", null, true); echo "</dd>\n "; } // line 112 echo "\n "; // line 113 if ($this->getAttribute(isset($context["seller"]) ? $context["seller"] : null, "email")) { // line 114 echo " <dt>"; echo gettext("Email"); echo ":</dt>\n <dd>"; // line 115 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["seller"]) ? $context["seller"] : null, "email"), "html", null, true); echo "</dd>\n "; } // line 117 echo "\n "; // line 118 if ($this->getAttribute(isset($context["seller"]) ? $context["seller"] : null, "account_number")) { // line 119 echo " <dt>"; echo gettext("Account"); echo ":</dt>\n <dd>"; // line 120 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["seller"]) ? $context["seller"] : null, "account_number"), "html", null, true); echo "</dd>\n "; } // line 122 echo "\n "; // line 123 if ($this->getAttribute(isset($context["seller"]) ? $context["seller"] : null, "note")) { // line 124 echo " <dt>"; echo gettext("Note"); echo ":</dt>\n <dd>"; // line 125 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["seller"]) ? $context["seller"] : null, "note"), "html", null, true); echo "</dd>\n "; } // line 127 echo " </dl>\n\n </div>\n </div>\n\n\n <div class=\"span4\">\n <div class=\"well small\">\n <h4>"; // line 135 echo gettext("Billing & Delivery address"); echo "</h4>\n <dl class=\"dl-horizontal\">\n "; // line 137 if ($this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "first_name") || $this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "last_name")) { // line 138 echo " <dt>"; echo gettext("Name"); echo ":</dt>\n <dd>"; // line 139 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "first_name"), "html", null, true); echo " "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "last_name"), "html", null, true); echo "</dd>\n "; } // line 141 echo "\n "; // line 142 if ($this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "company")) { // line 143 echo " <dt>"; echo gettext("Company"); echo ":</dt>\n <dd>"; // line 144 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "company"), "html", null, true); echo "</dd>\n "; } // line 146 echo "\n "; // line 147 if ($this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "company_number")) { // line 148 echo " <dt>"; echo gettext("Company number"); echo ":</dt>\n <dd>"; // line 149 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "company_number"), "html", null, true); echo "</dd>\n "; } // line 151 echo "\n "; // line 152 if ($this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "company_vat")) { // line 153 echo " <dt>"; echo gettext("Company VAT"); echo ":</dt>\n <dd>"; // line 154 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "company_vat"), "html", null, true); echo "</dd>\n "; } // line 156 echo "\n "; // line 157 if ($this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "address")) { // line 158 echo " <dt>"; echo gettext("Address"); echo ":</dt>\n <dd>"; // line 159 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "address"), "html", null, true); echo "</dd>\n <dd>"; // line 160 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "city"), "html", null, true); echo ", "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "state"), "html", null, true); echo "</dd>\n <dd>"; // line 161 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "zip"), "html", null, true); echo ", "; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["guest"]) ? $context["guest"] : null, "system_countries"), $this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "country"), array(), "array"), "html", null, true); echo "</dd>\n "; } // line 163 echo "\n "; // line 164 if ($this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "phone")) { // line 165 echo " <dt>"; echo gettext("Phone"); echo ":</dt>\n <dd>"; // line 166 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["buyer"]) ? $context["buyer"] : null, "phone"), "html", null, true); echo "</dd>\n "; } // line 168 echo " </dl>\n </div>\n </div>\n </div>\n\n "; // line 173 if ($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "text_1")) { // line 174 echo " <div class=\"well\">\n "; // line 175 echo twig_markdown_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "text_1")); echo "\n </div>\n "; } // line 178 echo "\n <table class=\"table table-striped table-bordered table-condensed table-hover\">\n <thead>\n <tr>\n <th>"; // line 182 echo gettext("#"); echo "</th>\n <th>"; // line 183 echo gettext("Title"); echo "</th>\n <th>"; // line 184 echo gettext("Price"); echo "</th>\n <th>"; // line 185 echo gettext("Total"); echo "</th>\n </tr>\n </thead>\n <tbody>\n "; // line 189 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "lines")); foreach ($context['_seq'] as $context["i"] => $context["item"]) { // line 190 echo " <tr>\n <td>"; // line 191 echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null) + 1, "html", null, true); echo ".</td>\n <td>\n "; // line 193 if ($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "order_id")) { // line 194 echo " <a href=\""; echo $this->env->getExtension('bb')->twig_bb_client_link_filter("/order/service"); echo "/manage/"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "order_id"), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "title"), "html", null, true); echo "</a>\n "; } else { // line 196 echo " "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "title"), "html", null, true); echo "\n "; } // line 198 echo " </td>\n <td>\n "; // line 200 echo twig_money($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "price"), $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "currency")); echo "\n "; // line 201 if ($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "quantity") > 1) { // line 202 echo " x "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "quantity"), "html", null, true); echo " "; // line 203 echo " "; } // line 204 echo " </td>\n <td >"; // line 205 echo twig_money($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "total"), $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "currency")); echo "</td>\n </tr>\n\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 209 echo " </tbody>\n\n </table>\n\n <div class=\"row-fluid\">\n <div class=\"span4 offset8\">\n <table class=\"table table-bordered table-striped\">\n "; // line 216 if ($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "tax") > 0) { // line 217 echo " <tr>\n <td>"; // line 218 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "taxname"), "html", null, true); echo " "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "taxrate"), "html", null, true); echo "%</td>\n <td>"; // line 219 echo twig_money($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "tax"), $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "currency")); echo "</td>\n </tr>\n "; } // line 222 echo " "; if ($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "discount") > 0) { // line 223 echo " <tr>\n <td>"; // line 224 echo gettext("Discount"); echo "</td>\n <td>"; // line 225 echo twig_money($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "discount"), $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "currency")); echo "</td>\n </tr>\n "; } // line 228 echo "\n <tr>\n <td><strong>"; // line 230 echo gettext("Total"); echo "</strong></td>\n <td><strong>"; // line 231 echo twig_money($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "total"), $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "currency")); echo "</strong></td>\n </tr>\n </table>\n </div>\n </div>\n\n "; // line 237 if ($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "text_2")) { // line 238 echo " <div class=\"well\">\n "; // line 239 echo twig_markdown_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "text_2")); echo "\n </div>\n "; } // line 242 echo " </section>\n </div>\n </article>\n</div>\n"; }