2015-05-02 11:26:55 -05:00
|
|
|
{% extends "./layout/default.twig" %}
|
2015-06-19 13:59:14 -05:00
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2015-12-28 13:04:54 -06:00
|
|
|
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, start, end, reportType, accountIds) }}
|
2015-06-19 13:59:14 -05:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2015-05-15 13:38:39 -05:00
|
|
|
|
2015-05-15 15:00:00 -05:00
|
|
|
<div class="row">
|
2015-07-09 22:39:35 -05:00
|
|
|
<div class="col-lg-8 col-md-8 col-sm-12">
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2015-06-21 03:50:45 -05:00
|
|
|
<h3 class="box-title">{{ 'incomeVsExpenses'|_ }}</h3>
|
2015-05-15 15:00:00 -05:00
|
|
|
</div>
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box-body">
|
2015-12-14 14:12:10 -06:00
|
|
|
<canvas id="income-expenses-chart" style="width:100%;height:400px;"></canvas>
|
2015-05-15 15:00:00 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-05-02 11:26:55 -05:00
|
|
|
</div>
|
2015-07-09 22:39:35 -05:00
|
|
|
<div class="col-lg-4 col-md-4 col-sm-12">
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2015-06-21 03:50:45 -05:00
|
|
|
<h3 class="box-title">{{ 'incomeVsExpenses'|_ }}</h3>
|
2015-05-15 15:00:00 -05:00
|
|
|
</div>
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box-body">
|
2015-12-14 14:12:10 -06:00
|
|
|
<canvas id="income-expenses-sum-chart" style="width:100%;height:400px;"></canvas>
|
2015-05-15 15:00:00 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-05-02 11:26:55 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-05-15 15:00:00 -05:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
2015-12-13 02:01:17 -06:00
|
|
|
{% include 'reports/partials/accounts.twig' %}
|
|
|
|
{% include 'reports/partials/income-vs-expenses.twig' %}
|
2015-05-02 11:26:55 -05:00
|
|
|
|
2015-05-15 15:00:00 -05:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-3 col-md-3 col-sm-3">
|
2015-12-13 02:01:17 -06:00
|
|
|
{% include 'reports/partials/income.twig' %}
|
2015-05-02 11:26:55 -05:00
|
|
|
</div>
|
2015-05-15 15:00:00 -05:00
|
|
|
<div class="col-lg-3 col-md-3 col-sm-3">
|
2015-12-13 02:01:17 -06:00
|
|
|
{% include 'reports/partials/expenses.twig' %}
|
2015-05-02 11:26:55 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-05-16 00:28:58 -05:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2015-07-31 07:20:18 -05:00
|
|
|
<h3 class="box-title">{{ 'categories_spent_in_year'|_ }}</h3>
|
2015-05-16 00:28:58 -05:00
|
|
|
</div>
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box-body">
|
2015-12-25 00:42:00 -06:00
|
|
|
<canvas id="categories-spent-in-period" style="width:100%;height:400px;"></canvas>
|
2015-05-16 00:28:58 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-07-31 07:20:18 -05:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">{{ 'categories_earned_in_year'|_ }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2015-12-25 00:42:00 -06:00
|
|
|
<canvas id="categories-earned-in-period" style="width:100%;height:400px;"></canvas>
|
2015-07-31 07:20:18 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-05-15 15:00:00 -05:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2015-06-21 03:50:45 -05:00
|
|
|
<h3 class="box-title">{{ 'budgets'|_ }}</h3>
|
2015-05-15 15:00:00 -05:00
|
|
|
</div>
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box-body">
|
2015-12-27 01:57:51 -06:00
|
|
|
<canvas id="budgets" style="width:100%;height:400px;"></canvas>
|
2015-05-15 15:00:00 -05:00
|
|
|
</div>
|
2015-05-02 11:26:55 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
2015-12-18 09:37:02 -06:00
|
|
|
<script type="text/javascript" src="js/Chart.min.js"></script>
|
|
|
|
<script type="text/javascript" src="js/Chart.StackedBar.js"></script>
|
|
|
|
<script type="text/javascript" src="js/charts.js"></script>
|
2015-05-15 15:00:00 -05:00
|
|
|
<script type="text/javascript">
|
2015-12-18 09:37:45 -06:00
|
|
|
var year = '{{ start.year }}';
|
2015-12-12 12:04:30 -06:00
|
|
|
|
|
|
|
// to report another URL:
|
|
|
|
var startDate = '{{ start.format('Ymd') }}';
|
|
|
|
var endDate = '{{ end.format('Ymd') }}';
|
2015-12-28 13:04:54 -06:00
|
|
|
var reportType = '{{ reportType }}';
|
2015-12-12 12:04:30 -06:00
|
|
|
var accountIds = '{{ accountIds }}';
|
|
|
|
|
|
|
|
|
2015-05-16 00:28:58 -05:00
|
|
|
var incomeTopLength = {{ incomeTopLength }};
|
|
|
|
var expenseTopLength = {{ expenseTopLength }};
|
|
|
|
var incomeRestShow = false; // starts hidden.
|
|
|
|
var expenseRestShow = false; // starts hidden.
|
|
|
|
var showTheRest = '{{ trans('firefly.showTheRest',{number:incomeTopLength}) }}';
|
|
|
|
var hideTheRest = '{{ trans('firefly.hideTheRest',{number:incomeTopLength}) }}';
|
|
|
|
var showTheRestExpense = '{{ trans('firefly.showTheRest',{number:expenseTopLength}) }}';
|
|
|
|
var hideTheRestExpense = '{{ trans('firefly.hideTheRest',{number:expenseTopLength}) }}';
|
2015-05-15 15:00:00 -05:00
|
|
|
</script>
|
2015-05-02 11:26:55 -05:00
|
|
|
|
2015-12-14 13:33:50 -06:00
|
|
|
<script type="text/javascript" src="js/reports/default/year.js"></script>
|
2015-05-02 11:26:55 -05:00
|
|
|
|
|
|
|
{% endblock %}
|