2016-11-06 01:11:43 -06:00
|
|
|
{% extends "./layout/default" %}
|
2015-06-19 13:59:14 -05:00
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2017-12-23 13:46:52 -06:00
|
|
|
{{ Breadcrumbs.render }}
|
2015-06-19 13:59:14 -05:00
|
|
|
{% endblock %}
|
2015-05-01 11:44:49 -05:00
|
|
|
{% block content %}
|
2016-11-06 07:52:48 -06:00
|
|
|
{% include 'partials.boxes' %}
|
2015-06-27 01:06:24 -05:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 col-md-12 col-sm-12">
|
2017-03-03 11:19:25 -06:00
|
|
|
{# ACCOUNTS #}
|
2015-06-27 01:06:24 -05:00
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
2017-10-22 11:39:09 -05:00
|
|
|
<h3 class="box-title"><a href="{{ route('accounts.index',['asset']) }}" title="{{ 'yourAccounts'|_ }}">{{ 'yourAccounts'|_ }}</a></h3>
|
2015-06-27 01:06:24 -05:00
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2016-04-10 03:20:15 -05:00
|
|
|
<canvas id="accounts-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
|
2015-06-20 00:29:25 -05:00
|
|
|
</div>
|
2015-05-01 11:44:49 -05:00
|
|
|
</div>
|
2015-06-19 13:59:14 -05:00
|
|
|
|
2017-03-03 11:19:25 -06:00
|
|
|
{# BUDGETS #}
|
2015-06-27 01:06:24 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2017-10-22 11:15:12 -05:00
|
|
|
<h3 class="box-title"><a href="{{ route('budgets.index') }}" title="{{ 'budgetsAndSpending'|_ }}">{{ 'budgetsAndSpending'|_ }}</a></h3>
|
2015-06-20 00:29:25 -05:00
|
|
|
</div>
|
2015-06-27 01:06:24 -05:00
|
|
|
<div class="box-body">
|
2017-04-29 01:56:08 -05:00
|
|
|
<canvas id="budgets-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
|
2015-06-20 00:29:25 -05:00
|
|
|
</div>
|
2015-05-01 11:44:49 -05:00
|
|
|
</div>
|
2017-07-15 14:40:42 -05:00
|
|
|
{# CATEGORIES #}
|
2015-06-27 01:06:24 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2017-10-22 11:15:12 -05:00
|
|
|
<h3 class="box-title"><a href="{{ route('categories.index') }}" title="{{ 'categories'|_ }}">{{ 'categories'|_ }}</a></h3>
|
2015-05-01 11:44:49 -05:00
|
|
|
|
2015-06-27 01:06:24 -05:00
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2017-04-29 01:56:08 -05:00
|
|
|
<canvas id="categories-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
|
2015-06-20 00:29:25 -05:00
|
|
|
</div>
|
2015-05-01 11:44:49 -05:00
|
|
|
</div>
|
2015-08-02 00:35:09 -05:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-4 col-md-6 col-sm-12">
|
2017-07-15 14:40:42 -05:00
|
|
|
{# TRANSACTIONS #}
|
2017-07-16 00:35:08 -05:00
|
|
|
<div id="all_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>
|
|
|
|
|
|
|
|
<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">
|
2017-08-13 01:24:58 -05:00
|
|
|
<li><a href="{{ route('transactions.create','withdrawal') }}"><i
|
2017-07-16 00:35:08 -05:00
|
|
|
class="fa fa-long-arrow-left fa-fw"></i> {{ 'newWithdrawal'|_ }}</a></li>
|
2017-08-13 01:24:58 -05:00
|
|
|
<li><a href="{{ route('transactions.create','deposit') }}"><i
|
2017-07-16 00:35:08 -05:00
|
|
|
class="fa fa-long-arrow-right fa-fw"></i> {{ 'newDeposit'|_ }}</a></li>
|
2017-08-13 01:24:58 -05:00
|
|
|
<li><a href="{{ route('transactions.create','transfer') }}"><i
|
2017-07-16 00:35:08 -05:00
|
|
|
class="fa fa-fw fa-exchange"></i> {{ 'newTransfer'|_ }}</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2015-08-02 00:35:09 -05:00
|
|
|
</div>
|
|
|
|
|
2015-06-27 01:06:24 -05:00
|
|
|
|
2016-11-25 09:55:04 -06:00
|
|
|
</div>
|
|
|
|
|
2017-07-16 00:35:08 -05:00
|
|
|
{% if data[0].count > 0 %}
|
|
|
|
<div class="box-body no-padding">
|
|
|
|
{% include 'list.journals-tiny' 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"
|
2017-11-17 22:45:58 -06:00
|
|
|
href="{{ route('accounts.show',data[1].id) }}">{{ formatAmountByAccount(data[1], data[1]|balance, false) }}</a>
|
2017-07-16 00:35:08 -05:00
|
|
|
</div>
|
2015-08-02 00:35:09 -05:00
|
|
|
</div>
|
2017-07-16 00:35:08 -05:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2017-10-22 11:15:12 -05:00
|
|
|
|
|
|
|
{% if billCount > 0 %}
|
|
|
|
{# BILLS #}
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title"><a href="{{ route('bills.index') }}" title="{{ 'bills'|_ }}">{{ 'bills'|_ }}</a></h3>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<div style="width:100%;margin:0 auto;">
|
|
|
|
<canvas id="bills-chart" style="width:100%;height:200px;" height="200"></canvas>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{# box for piggy bank data (JSON) #}
|
|
|
|
<div id="piggy_bank_overview">
|
|
|
|
|
|
|
|
</div>
|
2015-08-02 00:35:09 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
2017-07-15 14:40:42 -05:00
|
|
|
{# EXPENSE ACCOUNTS #}
|
2015-08-01 00:04:41 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2017-12-29 02:05:35 -06:00
|
|
|
<h3 class="box-title"><a href="{{ route('accounts.index',['expense']) }}" title="{{ 'expense_accounts'|_ }}">{{ 'expense_accounts'|_ }}</a>
|
|
|
|
</h3>
|
2015-08-01 00:04:41 -05:00
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2017-04-29 01:56:08 -05:00
|
|
|
<canvas id="expense-accounts-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
|
2015-08-01 00:04:41 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-07-15 14:40:42 -05:00
|
|
|
{# OPTIONAL REVENUE ACCOUNTS #}
|
2017-09-16 02:24:48 -05:00
|
|
|
{% if showDeps %}
|
2016-10-14 13:01:17 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2017-12-29 02:05:35 -06:00
|
|
|
<h3 class="box-title"><a href="{{ route('accounts.index',['revenue']) }}"
|
|
|
|
title="{{ 'revenue_accounts'|_ }}">{{ 'revenue_accounts'|_ }}</a></h3>
|
2016-10-14 13:01:17 -05:00
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2017-04-29 01:56:08 -05:00
|
|
|
<canvas id="revenue-accounts-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
|
2016-10-14 13:01:17 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2015-08-02 00:35:09 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-05-01 11:44:49 -05:00
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
2015-07-12 05:45:41 -05:00
|
|
|
<script type="text/javascript">
|
2016-11-22 12:10:38 -06:00
|
|
|
var billCount = {{ billCount }};
|
2016-12-05 23:52:17 -06:00
|
|
|
var accountFrontpageUri = '{{ route('chart.account.frontpage') }}';
|
|
|
|
var accountRevenueUri = '{{ route('chart.account.revenue') }}';
|
|
|
|
var accountExpenseUri = '{{ route('chart.account.expense') }}';
|
2017-10-22 11:15:12 -05:00
|
|
|
var piggyInfoUri = '{{ route('json.fp.piggy-banks') }}';
|
2017-12-01 23:29:06 -06:00
|
|
|
var todayText = ' {{ trans('firefly.today')|escape('js') }}';
|
2017-11-17 12:31:48 -06:00
|
|
|
|
|
|
|
<!-- render vertical line with text "today" -->
|
|
|
|
{% if start.lte(today) and end.gte(today) %}
|
2017-12-29 02:05:35 -06:00
|
|
|
var today = {{ today.diffInDays(start) + 1 }};
|
2017-11-17 12:31:48 -06:00
|
|
|
{% else %}
|
2017-12-29 02:05:35 -06:00
|
|
|
var today = -1;
|
2017-11-17 12:31:48 -06:00
|
|
|
{% endif %}
|
2015-07-12 05:45:41 -05:00
|
|
|
</script>
|
|
|
|
|
2017-09-12 12:59:07 -05:00
|
|
|
<script type="text/javascript" src="js/lib/Chart.bundle.min.js?v={{ FF_VERSION }}"></script>
|
|
|
|
<script type="text/javascript" src="js/ff/charts.defaults.js?v={{ FF_VERSION }}"></script>
|
|
|
|
<script type="text/javascript" src="js/ff/charts.js?v={{ FF_VERSION }}"></script>
|
|
|
|
<script type="text/javascript" src="js/ff/index.js?v={{ FF_VERSION }}"></script>
|
2015-05-05 05:51:57 -05:00
|
|
|
{% endblock %}
|
2015-06-27 09:00:50 -05:00
|
|
|
{% block styles %}
|
2015-06-28 01:24:12 -05:00
|
|
|
{% endblock %}
|