2014-07-26 01:05:02 -05:00
|
|
|
@extends('layouts.default')
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
2014-10-09 00:24:47 -05:00
|
|
|
<div class="col-lg-8 col-md-6 col-sm-12">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2014-10-27 23:59:14 -05:00
|
|
|
<i class="fa fa-fw {{$subTitleIcon}} fa-fw"></i> {{{$account->name}}}
|
2014-10-09 00:24:47 -05:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2014-10-27 23:59:14 -05:00
|
|
|
<div id="accountTransactionsTable"></div>
|
2014-10-09 00:24:47 -05:00
|
|
|
</div>
|
2014-07-26 01:05:02 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-10-09 00:24:47 -05:00
|
|
|
<div class="col-lg-4 col-md-6 col-sm-12">
|
|
|
|
<!-- time based navigation -->
|
|
|
|
@include('partials.date_nav')
|
2014-10-27 23:59:14 -05:00
|
|
|
|
|
|
|
<!-- summary of the selected period -->
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<i class="fa fa-fw fa-align-justify"></i> Summary
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
{{--
|
|
|
|
<table class="table table-striped table-condensed">
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th>Expense / income</th>
|
|
|
|
<th>Transfers</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Out</td>
|
|
|
|
<td>
|
|
|
|
{{mf($show['statistics']['period']['out'])}}
|
|
|
|
<a href="{{route('accounts.show',$account->id)}}?type=transactions&show=expenses"><span class="glyphicon glyphicon-circle-arrow-right"></span></a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{mf($show['statistics']['period']['t_out'])}}
|
|
|
|
<a href="{{route('accounts.show',$account->id)}}?type=transfers&show=out"><span class="glyphicon glyphicon-circle-arrow-right"></span></a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>In</td>
|
|
|
|
<td>
|
|
|
|
{{mf($show['statistics']['period']['in'])}}
|
|
|
|
<a href="{{route('accounts.show',$account->id)}}?type=transactions&show=income"><span class="glyphicon glyphicon-circle-arrow-right"></span></a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{mf($show['statistics']['period']['t_in'])}}
|
|
|
|
<a href="{{route('accounts.show',$account->id)}}?type=transfers&show=in"><span class="glyphicon glyphicon-circle-arrow-right"></span></a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Difference</td>
|
|
|
|
<td>{{mf($show['statistics']['period']['diff'])}}</td>
|
|
|
|
<td>{{mf($show['statistics']['period']['t_diff'])}}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
--}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-07-27 13:29:58 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2014-10-27 23:59:14 -05:00
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
2014-10-09 00:24:47 -05:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2014-10-27 23:59:14 -05:00
|
|
|
<i class="fa fa-repeat fa-fw"></i> Transaction
|
2014-10-09 00:24:47 -05:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2014-10-27 23:59:14 -05:00
|
|
|
|
|
|
|
<table id="transactionByAccountTable" class="table table-striped table-bordered" >
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Amount (€)</th>
|
|
|
|
<th>From</th>
|
|
|
|
<th>To</th>
|
|
|
|
<th>Budget / category</th>
|
|
|
|
<th>ID</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{{--
|
2014-10-09 00:24:47 -05:00
|
|
|
<table class="table table-striped table-condensed">
|
|
|
|
@if(count($show['statistics']['accounts']) > 0)
|
|
|
|
<tr>
|
|
|
|
<td style="width:30%;">Related accounts</td>
|
|
|
|
<td>
|
|
|
|
@foreach($show['statistics']['accounts'] as $acct)
|
|
|
|
<a href="{{route('accounts.show',$acct->id)}}" class="btn btn-default btn-xs">{{{$acct->name}}}</a>
|
|
|
|
@endforeach
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
@if(isset($show['statistics']['Category']) && count($show['statistics']['Category']) > 0)
|
|
|
|
<tr>
|
|
|
|
<td>Related categories</td>
|
|
|
|
<td>
|
|
|
|
@foreach($show['statistics']['Category'] as $cat)
|
|
|
|
<a href="{{route('categories.show',$cat->id)}}" class="btn btn-default btn-xs">{{{$cat->name}}}</a>
|
|
|
|
@endforeach
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
@if(isset($show['statistics']['Budget']) && count($show['statistics']['Budget']) > 0)
|
|
|
|
<tr>
|
|
|
|
<td>Related budgets</td>
|
|
|
|
<td>
|
|
|
|
@foreach($show['statistics']['Budget'] as $bud)
|
|
|
|
<a href="{{route('budgets.show',$bud->id)}}?useSession=true" class="btn btn-default btn-xs">{{{$bud->name}}}</a>
|
|
|
|
@endforeach
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
</table>
|
2014-10-27 23:59:14 -05:00
|
|
|
--}}
|
2014-10-09 00:24:47 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-07-27 13:29:58 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2014-10-27 23:59:14 -05:00
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<i class="fa fa-repeat fa-fw"></i> Transaction
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2014-07-27 13:29:58 -05:00
|
|
|
|
2014-10-27 23:59:14 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-07-27 13:29:58 -05:00
|
|
|
|
2014-10-27 23:59:14 -05:00
|
|
|
{{--
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
2014-07-27 13:29:58 -05:00
|
|
|
<h4>Transactions <small> For selected account and period</small></h4>
|
2014-08-30 07:26:33 -05:00
|
|
|
@include('paginated.transactions',['journals' => $show['journals'],'sum' => true])
|
2014-07-26 11:53:41 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-10-27 23:59:14 -05:00
|
|
|
--}}
|
2014-07-26 01:05:02 -05:00
|
|
|
@stop
|
2014-07-27 13:29:58 -05:00
|
|
|
|
|
|
|
@section('styles')
|
2014-09-23 14:53:24 -05:00
|
|
|
{{HTML::style('assets/stylesheets/highslide/highslide.css')}}
|
2014-10-27 23:59:14 -05:00
|
|
|
{{HTML::style('assets/stylesheets/datatables/dataTables.bootstrap.css')}}
|
2014-07-27 13:29:58 -05:00
|
|
|
@stop
|
|
|
|
|
2014-07-26 01:05:02 -05:00
|
|
|
@section('scripts')
|
|
|
|
<script type="text/javascript">
|
2014-10-27 23:59:14 -05:00
|
|
|
var accountID = {{{$account->id}}};
|
|
|
|
var URL = 'bla bla bla';
|
|
|
|
var container = 'transactionByAccountTable';
|
2014-07-26 01:05:02 -05:00
|
|
|
</script>
|
2014-10-27 23:59:14 -05:00
|
|
|
{{HTML::script('assets/javascript/datatables/jquery.dataTables.min.js')}}
|
|
|
|
{{HTML::script('assets/javascript/datatables/dataTables.bootstrap.js')}}
|
|
|
|
{{HTML::script('assets/javascript/datatables/transactions.js')}}
|
2014-09-23 14:49:52 -05:00
|
|
|
{{HTML::script('assets/javascript/highcharts/highcharts.js')}}
|
|
|
|
{{HTML::script('assets/javascript/firefly/accounts.js')}}
|
2014-07-26 01:05:02 -05:00
|
|
|
@stop
|