Created
March 14, 2017 19:40
-
-
Save dfiel/8147981398a48496bff21decd153c7ab to your computer and use it in GitHub Desktop.
b5590798211453023e56a9c385d33c7cff08419c6094e1c6ea7852a97c02650f.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* /srv/web/firefly/resources/views/index.twig */ | |
class __TwigTemplate_8ca2ed93046fc5d820ac0fc2b0ee8cd10b8937a3e77e2e2dad2e6024a27aa1b6 extends TwigBridge\Twig\Template | |
{ | |
public function __construct(Twig_Environment $env) | |
{ | |
parent::__construct($env); | |
// line 1 | |
$this->parent = $this->loadTemplate("./layout/default", "/srv/web/firefly/resources/views/index.twig", 1); | |
$this->blocks = array( | |
'breadcrumbs' => array($this, 'block_breadcrumbs'), | |
'content' => array($this, 'block_content'), | |
'scripts' => array($this, 'block_scripts'), | |
'styles' => array($this, 'block_styles'), | |
); | |
} | |
protected function doGetParent(array $context) | |
{ | |
return "./layout/default"; | |
} | |
protected function doDisplay(array $context, array $blocks = array()) | |
{ | |
$this->parent->display($context, array_merge($this->blocks, $blocks)); | |
} | |
// line 3 | |
public function block_breadcrumbs($context, array $blocks = array()) | |
{ | |
// line 4 | |
echo " "; | |
echo twig_escape_filter($this->env, $this->getAttribute(($context["Breadcrumbs"] ?? null), "renderIfExists", array()), "html", null, true); | |
echo " | |
"; | |
} | |
// line 6 | |
public function block_content($context, array $blocks = array()) | |
{ | |
// line 7 | |
echo " | |
"; | |
// line 11 | |
$this->loadTemplate("partials.boxes", "/srv/web/firefly/resources/views/index.twig", 11)->display($context); | |
// line 12 | |
echo " | |
<div class=\"row\"> | |
<div class=\"col-lg-8 col-md-12 col-sm-12\"> | |
"; | |
// line 16 | |
echo " <div class=\"box box-primary\"> | |
<div class=\"box-header with-border\"> | |
<h3 class=\"box-title\">"; | |
// line 18 | |
echo call_user_func_array($this->env->getFilter('_')->getCallable(), array("yourAccounts")); | |
echo "</h3> | |
</div> | |
<div class=\"box-body\"> | |
<canvas id=\"accounts-chart\" style=\"width:100%;height:400px;\" height=\"400\" width=\"100%\"></canvas> | |
</div> | |
</div> | |
"; | |
// line 26 | |
echo " <div class=\"box\"> | |
<div class=\"box-header with-border\"> | |
<h3 class=\"box-title\">"; | |
// line 28 | |
echo call_user_func_array($this->env->getFilter('_')->getCallable(), array("budgetsAndSpending")); | |
echo "</h3> | |
</div> | |
<div class=\"box-body\"> | |
<canvas id=\"budgets-chart\" style=\"width:100%;\" height=\"400\"></canvas> | |
</div> | |
</div> | |
<!-- CATEGORIES --> | |
<div class=\"box\"> | |
<div class=\"box-header with-border\"> | |
<h3 class=\"box-title\">"; | |
// line 37 | |
echo call_user_func_array($this->env->getFilter('_')->getCallable(), array("categories")); | |
echo "</h3> | |
</div> | |
<div class=\"box-body\"> | |
<canvas id=\"categories-chart\" style=\"width:100%;\" height=\"400\"></canvas> | |
</div> | |
</div> | |
</div> | |
<div class=\"col-lg-4 col-md-6 col-sm-12\"> | |
"; | |
// line 46 | |
if ((($context["billCount"] ?? null) > 0)) { | |
// line 47 | |
echo " <!-- BILLS --> | |
<div class=\"box\"> | |
<div class=\"box-header with-border\"> | |
<h3 class=\"box-title\">"; | |
// line 50 | |
echo call_user_func_array($this->env->getFilter('_')->getCallable(), array("bills")); | |
echo "</h3> | |
</div> | |
<div class=\"box-body\"> | |
<div style=\"width:60%;margin:0 auto;\"> | |
<canvas id=\"bills-chart\" style=\"width:100%;height:175px;\" height=\"175\"></canvas> | |
</div> | |
</div> | |
</div> | |
"; | |
} | |
// line 61 | |
echo " | |
<!-- TRANSACTIONS --> | |
"; | |
// line 63 | |
$context['_parent'] = $context; | |
$context['_seq'] = twig_ensure_traversable(($context["transactions"] ?? null)); | |
$context['loop'] = array( | |
'parent' => $context['_parent'], | |
'index0' => 0, | |
'index' => 1, | |
'first' => true, | |
); | |
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) { | |
$length = count($context['_seq']); | |
$context['loop']['revindex0'] = $length - 1; | |
$context['loop']['revindex'] = $length; | |
$context['loop']['length'] = $length; | |
$context['loop']['last'] = 1 === $length; | |
} | |
foreach ($context['_seq'] as $context["_key"] => $context["data"]) { | |
// line 64 | |
echo " <div class=\"box\"> | |
<div class=\"box-header with-border\"> | |
<h3 class=\"box-title\"><a href=\""; | |
// line 66 | |
echo call_user_func_array($this->env->getFunction('route')->getCallable(), array("accounts.show", $this->getAttribute($this->getAttribute($context["data"], 1, array(), "array"), "id", array()))); | |
echo "\">"; | |
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["data"], 1, array(), "array"), "name", array()), "html", null, true); | |
echo "</a></h3> | |
<!-- ACTIONS MENU --> | |
<div class=\"box-tools pull-right\"> | |
<div class=\"btn-group\"> | |
<button class=\"btn btn-box-tool dropdown-toggle\" data-toggle=\"dropdown\"><i class=\"fa fa-ellipsis-v\"></i></button> | |
<ul class=\"dropdown-menu\" role=\"menu\"> | |
<li><a href=\""; | |
// line 73 | |
echo call_user_func_array($this->env->getFunction('route')->getCallable(), array("transactions.create", "withdrawal")); | |
echo "?account_id="; | |
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["data"], 1, array(), "array"), "id", array()), "html", null, true); | |
echo "\"><i | |
class=\"fa fa-long-arrow-left fa-fw\"></i> "; | |
// line 74 | |
echo call_user_func_array($this->env->getFilter('_')->getCallable(), array("newWithdrawal")); | |
echo "</a></li> | |
<li><a href=\""; | |
// line 75 | |
echo call_user_func_array($this->env->getFunction('route')->getCallable(), array("transactions.create", "deposit")); | |
echo "?account_id="; | |
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["data"], 1, array(), "array"), "id", array()), "html", null, true); | |
echo "\"><i | |
class=\"fa fa-long-arrow-right fa-fw\"></i> "; | |
// line 76 | |
echo call_user_func_array($this->env->getFilter('_')->getCallable(), array("newDeposit")); | |
echo "</a></li> | |
<li><a href=\""; | |
// line 77 | |
echo call_user_func_array($this->env->getFunction('route')->getCallable(), array("transactions.create", "transfer")); | |
echo "?account_from_id="; | |
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["data"], 1, array(), "array"), "id", array()), "html", null, true); | |
echo "\"><i | |
class=\"fa fa-fw fa-exchange\"></i> "; | |
// line 78 | |
echo call_user_func_array($this->env->getFilter('_')->getCallable(), array("newTransfer")); | |
echo "</a></li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
"; | |
// line 86 | |
if (($this->getAttribute($this->getAttribute($context["data"], 0, array(), "array"), "count", array()) > 0)) { | |
// line 87 | |
echo " <div class=\"box-body no-padding\"> | |
"; | |
// line 88 | |
$this->loadTemplate("list.journals-tiny-tasker", "/srv/web/firefly/resources/views/index.twig", 88)->display(array_merge($context, array("transactions" => $this->getAttribute($context["data"], 0, array(), "array"), "account" => $this->getAttribute($context["data"], 1, array(), "array")))); | |
// line 89 | |
echo " </div> | |
"; | |
} else { | |
// line 91 | |
echo " <div class=\"box-body\"> | |
<p> | |
<em> | |
"; | |
// line 94 | |
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('trans')->getCallable(), array("firefly.no_transactions_account", array("name" => $this->getAttribute($this->getAttribute($context["data"], 1, array(), "array"), "name", array())))), "html", null, true); | |
echo " | |
</em> | |
</p> | |
</div> | |
"; | |
} | |
// line 99 | |
echo " | |
<div class=\"box-footer clearfix\"> | |
<a class=\"btn btn-sm btn-default btn-flat pull-right\" | |
href=\""; | |
// line 102 | |
echo call_user_func_array($this->env->getFunction('route')->getCallable(), array("accounts.show", $this->getAttribute($this->getAttribute($context["data"], 1, array(), "array"), "id", array()))); | |
echo "\">"; | |
echo call_user_func_array($this->env->getFilter('formatAmountPlain')->getCallable(), array(call_user_func_array($this->env->getFilter('balance')->getCallable(), array($this->getAttribute($context["data"], 1, array(), "array"))))); | |
echo "</a> | |
</div> | |
</div> | |
"; | |
++$context['loop']['index0']; | |
++$context['loop']['index']; | |
$context['loop']['first'] = false; | |
if (isset($context['loop']['length'])) { | |
--$context['loop']['revindex0']; | |
--$context['loop']['revindex']; | |
$context['loop']['last'] = 0 === $context['loop']['revindex0']; | |
} | |
} | |
$_parent = $context['_parent']; | |
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['data'], $context['_parent'], $context['loop']); | |
$context = array_intersect_key($context, $_parent) + $_parent; | |
// line 106 | |
echo " </div> | |
</div> | |
<div class=\"row\"> | |
<div class=\"col-lg-12 col-md-12 col-sm-12\"> | |
<!-- EXPENSE ACCOUNTS --> | |
<div class=\"box\"> | |
<div class=\"box-header with-border\"> | |
<h3 class=\"box-title\">"; | |
// line 113 | |
echo call_user_func_array($this->env->getFilter('_')->getCallable(), array("expense_accounts")); | |
echo "</h3> | |
</div> | |
<div class=\"box-body\"> | |
<canvas id=\"expense-accounts-chart\" style=\"width:100%;\" height=\"400\"></canvas> | |
</div> | |
</div> | |
<!-- OPTIONAL REVENUE ACCOUNTS --> | |
"; | |
// line 121 | |
if (($context["showDepositsFrontpage"] ?? null)) { | |
// line 122 | |
echo " <div class=\"box\"> | |
<div class=\"box-header with-border\"> | |
<h3 class=\"box-title\">"; | |
// line 124 | |
echo call_user_func_array($this->env->getFilter('_')->getCallable(), array("revenue_accounts")); | |
echo "</h3> | |
</div> | |
<div class=\"box-body\"> | |
<canvas id=\"revenue-accounts-chart\" style=\"width:100%;\" height=\"400\"></canvas> | |
</div> | |
</div> | |
"; | |
} | |
// line 132 | |
echo " </div> | |
</div> | |
"; | |
} | |
// line 136 | |
public function block_scripts($context, array $blocks = array()) | |
{ | |
// line 137 | |
echo " <!-- show tour? --> | |
<script type=\"text/javascript\"> | |
var showTour; | |
"; | |
// line 140 | |
if (($context["showTour"] ?? null)) { | |
// line 141 | |
echo " showTour = true; | |
"; | |
} else { | |
// line 143 | |
echo " showTour = false; | |
"; | |
} | |
// line 145 | |
echo " var billCount = "; | |
echo twig_escape_filter($this->env, ($context["billCount"] ?? null), "html", null, true); | |
echo "; | |
// uri's of charts: | |
var accountFrontpageUri = '"; | |
// line 148 | |
echo call_user_func_array($this->env->getFunction('route')->getCallable(), array("chart.account.frontpage")); | |
echo "'; | |
var accountRevenueUri = '"; | |
// line 149 | |
echo call_user_func_array($this->env->getFunction('route')->getCallable(), array("chart.account.revenue")); | |
echo "'; | |
var accountExpenseUri = '"; | |
// line 150 | |
echo call_user_func_array($this->env->getFunction('route')->getCallable(), array("chart.account.expense")); | |
echo "'; | |
</script> | |
<script type=\"text/javascript\" src=\"js/lib/Chart.bundle.min.js\"></script> | |
<script type=\"text/javascript\" src=\"js/ff/charts.defaults.js\"></script> | |
<script type=\"text/javascript\" src=\"js/ff/charts.js\"></script> | |
<script type=\"text/javascript\" src=\"js/ff/index.js\"></script> | |
"; | |
} | |
// line 158 | |
public function block_styles($context, array $blocks = array()) | |
{ | |
} | |
public function getTemplateName() | |
{ | |
return "/srv/web/firefly/resources/views/index.twig"; | |
} | |
public function isTraitable() | |
{ | |
return false; | |
} | |
public function getDebugInfo() | |
{ | |
return array ( 332 => 158, 320 => 150, 316 => 149, 312 => 148, 305 => 145, 301 => 143, 297 => 141, 295 => 140, 290 => 137, 287 => 136, 280 => 132, 269 => 124, 265 => 122, 263 => 121, 252 => 113, 243 => 106, 223 => 102, 218 => 99, 210 => 94, 205 => 91, 201 => 89, 199 => 88, 196 => 87, 194 => 86, 183 => 78, 177 => 77, 173 => 76, 167 => 75, 163 => 74, 157 => 73, 145 => 66, 141 => 64, 124 => 63, 120 => 61, 106 => 50, 101 => 47, 99 => 46, 87 => 37, 75 => 28, 71 => 26, 61 => 18, 57 => 16, 52 => 12, 50 => 11, 44 => 7, 41 => 6, 34 => 4, 31 => 3, 11 => 1,); | |
} | |
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */ | |
public function getSource() | |
{ | |
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); | |
return $this->getSourceContext()->getCode(); | |
} | |
public function getSourceContext() | |
{ | |
return new Twig_Source("{% extends \"./layout/default\" %} | |
{% block breadcrumbs %} | |
{{ Breadcrumbs.renderIfExists }} | |
{% endblock %} | |
{% block content %} | |
{% include 'partials.boxes' %} | |
<div class=\"row\"> | |
<div class=\"col-lg-8 col-md-12 col-sm-12\"> | |
{# ACCOUNTS #} | |
<div class=\"box box-primary\"> | |
<div class=\"box-header with-border\"> | |
<h3 class=\"box-title\">{{ 'yourAccounts'|_ }}</h3> | |
</div> | |
<div class=\"box-body\"> | |
<canvas id=\"accounts-chart\" style=\"width:100%;height:400px;\" height=\"400\" width=\"100%\"></canvas> | |
</div> | |
</div> | |
{# BUDGETS #} | |
<div class=\"box\"> | |
<div class=\"box-header with-border\"> | |
<h3 class=\"box-title\">{{ 'budgetsAndSpending'|_ }}</h3> | |
</div> | |
<div class=\"box-body\"> | |
<canvas id=\"budgets-chart\" style=\"width:100%;\" height=\"400\"></canvas> | |
</div> | |
</div> | |
<!-- CATEGORIES --> | |
<div class=\"box\"> | |
<div class=\"box-header with-border\"> | |
<h3 class=\"box-title\">{{ 'categories'|_ }}</h3> | |
</div> | |
<div class=\"box-body\"> | |
<canvas id=\"categories-chart\" style=\"width:100%;\" height=\"400\"></canvas> | |
</div> | |
</div> | |
</div> | |
<div class=\"col-lg-4 col-md-6 col-sm-12\"> | |
{% if billCount > 0 %} | |
<!-- BILLS --> | |
<div class=\"box\"> | |
<div class=\"box-header with-border\"> | |
<h3 class=\"box-title\">{{ 'bills'|_ }}</h3> | |
</div> | |
<div class=\"box-body\"> | |
<div style=\"width:60%;margin:0 auto;\"> | |
<canvas id=\"bills-chart\" style=\"width:100%;height:175px;\" height=\"175\"></canvas> | |
</div> | |
</div> | |
</div> | |
{% endif %} | |
<!-- TRANSACTIONS --> | |
{% for data in transactions %} | |
<div class=\"box\"> | |
<div class=\"box-header with-border\"> | |
<h3 class=\"box-title\"><a href=\"{{ route('accounts.show', data[1].id) }}\">{{ data[1].name }}</a></h3> | |
<!-- ACTIONS MENU --> | |
<div class=\"box-tools pull-right\"> | |
<div class=\"btn-group\"> | |
<button class=\"btn btn-box-tool dropdown-toggle\" data-toggle=\"dropdown\"><i class=\"fa fa-ellipsis-v\"></i></button> | |
<ul class=\"dropdown-menu\" role=\"menu\"> | |
<li><a href=\"{{ route('transactions.create','withdrawal') }}?account_id={{ data[1].id }}\"><i | |
class=\"fa fa-long-arrow-left fa-fw\"></i> {{ 'newWithdrawal'|_ }}</a></li> | |
<li><a href=\"{{ route('transactions.create','deposit') }}?account_id={{ data[1].id }}\"><i | |
class=\"fa fa-long-arrow-right fa-fw\"></i> {{ 'newDeposit'|_ }}</a></li> | |
<li><a href=\"{{ route('transactions.create','transfer') }}?account_from_id={{ data[1].id }}\"><i | |
class=\"fa fa-fw fa-exchange\"></i> {{ 'newTransfer'|_ }}</a></li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
{% if data[0].count > 0 %} | |
<div class=\"box-body no-padding\"> | |
{% include 'list.journals-tiny-tasker' with {'transactions': data[0],'account': data[1]} %} | |
</div> | |
{% else %} | |
<div class=\"box-body\"> | |
<p> | |
<em> | |
{{ trans('firefly.no_transactions_account', {name: data[1].name}) }} | |
</em> | |
</p> | |
</div> | |
{% endif %} | |
<div class=\"box-footer clearfix\"> | |
<a class=\"btn btn-sm btn-default btn-flat pull-right\" | |
href=\"{{ route('accounts.show',data[1].id) }}\">{{ (data[1]|balance)|formatAmountPlain }}</a> | |
</div> | |
</div> | |
{% endfor %} | |
</div> | |
</div> | |
<div class=\"row\"> | |
<div class=\"col-lg-12 col-md-12 col-sm-12\"> | |
<!-- EXPENSE ACCOUNTS --> | |
<div class=\"box\"> | |
<div class=\"box-header with-border\"> | |
<h3 class=\"box-title\">{{ 'expense_accounts'|_ }}</h3> | |
</div> | |
<div class=\"box-body\"> | |
<canvas id=\"expense-accounts-chart\" style=\"width:100%;\" height=\"400\"></canvas> | |
</div> | |
</div> | |
<!-- OPTIONAL REVENUE ACCOUNTS --> | |
{% if showDepositsFrontpage %} | |
<div class=\"box\"> | |
<div class=\"box-header with-border\"> | |
<h3 class=\"box-title\">{{ 'revenue_accounts'|_ }}</h3> | |
</div> | |
<div class=\"box-body\"> | |
<canvas id=\"revenue-accounts-chart\" style=\"width:100%;\" height=\"400\"></canvas> | |
</div> | |
</div> | |
{% endif %} | |
</div> | |
</div> | |
{% endblock %} | |
{% block scripts %} | |
<!-- show tour? --> | |
<script type=\"text/javascript\"> | |
var showTour; | |
{% if showTour %} | |
showTour = true; | |
{% else %} | |
showTour = false; | |
{% endif %} | |
var billCount = {{ billCount }}; | |
// uri's of charts: | |
var accountFrontpageUri = '{{ route('chart.account.frontpage') }}'; | |
var accountRevenueUri = '{{ route('chart.account.revenue') }}'; | |
var accountExpenseUri = '{{ route('chart.account.expense') }}'; | |
</script> | |
<script type=\"text/javascript\" src=\"js/lib/Chart.bundle.min.js\"></script> | |
<script type=\"text/javascript\" src=\"js/ff/charts.defaults.js\"></script> | |
<script type=\"text/javascript\" src=\"js/ff/charts.js\"></script> | |
<script type=\"text/javascript\" src=\"js/ff/index.js\"></script> | |
{% endblock %} | |
{% block styles %} | |
{% endblock %} | |
", "/srv/web/firefly/resources/views/index.twig", ""); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment