Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
New and updated views.
James Coleb1ba64db1201
diff --git a/app/views/reports/budgets.blade.php b/app/views/reports/budgets.blade.phpnew file mode 100644index 0000000000..35901f7209--- /dev/null+++ b/app/views/reports/budgets.blade.php@@ -0,0 +1,104 @@+@extends('layouts.default')+@section('content')+<div class="row">+ <div class="col-lg-12 col-md-12 col-sm-12">+ <h3>Budgets</h3>+ </div>+</div>+<div class="row">+ @foreach($budgets as $budget)+ <div class="col-lg-3 col-md-4 col-sm-6">+ <div class="panel panel-default">+ <div class="panel-heading">+ {{{$budget->name}}}+ </div>+ <div class="panel-body">+ @foreach($budget->repInfo as $repetition)+ <p class="text-center">{{{$repetition['date']}}}</p>+ <div class="progress progress-striped">+ @if($repetition['overspent'])+ <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="{{$repetition['pct']}}" aria-valuemin="0" aria-valuemax="100" style="width: {{$repetition['pct']}}%;min-width:15px;">+ {{$repetition['pct_display']}}%+ </div>+ <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="{{100-$repetition['pct']}}" aria-valuemin="0" aria-valuemax="100" style="width: {{100-$repetition['pct']}}%;">+ </div>+ @else+ <div class="progress-bar" role="progressbar" aria-valuenow="{{$repetition['pct']}}" aria-valuemin="0" aria-valuemax="100" style="width: {{$repetition['pct']}}%;min-width:15px;">+ {{$repetition['pct_display']}}%+ </div>+ @endif+ </div>+ <table class="table">+ <tr>+ <td style="width:50%">Budgeted</td>+ <td>{{mf($repetition['budgeted'])}}</td>+ </tr>+ <tr>+ <td>Spent</td>+ <td>{{mf($repetition['spent'])}}</td>+ </tr>+ <tr>+ <td>Left</td>+ <td>{{mf($repetition['left'])}}</td>+ </tr>++ </table>+ @endforeach+ <!--++ Progressbar, Spent, budgeted, left+ </div>+ -->+ </div>+ </div>+ </div>+ @endforeach+</div>+<div class="row">+ <div class="col-lg-12 col-md-12 col-sm-12">+ <h3>Accounts</h3>+ </div>+</div>+<div class="row">+@foreach($accounts as $account)+ <div class="col-lg-4 col-md-6 col-sm-12">+ <div class="panel panel-default">+ <div class="panel-heading">+ {{{$account->name}}}+ </div>+ <div class="panel-body">++ List of budgets with: expenses, left in budget+ Balance at start of month.++ Balance at end of month + left in all (relevant budgets)+ </div>+ <table class="table">+ <?php $sum = 0;?>+ @foreach($account->budgetInfo as $budget)+ <?php $sum += $budget['spent'];?>+ <tr>+ <td>{{$budget['budget_name']}}</td>+ <td>{{mf($budget['budgeted'])}}</td>+ <td>{{mf($budget['spent'])}}</td>+ <td>{{mf($budget['left'])}}</td>++ </tr>+ @endforeach+ @if($sum != 0)+ <tr>+ <td><em>Sum</em></td>+ <td></td>+ <td>{{mf($sum)}}</td>+ <td></td>+ </tr>+ @endif+ </table>+ </div>+ </div>+@endforeach+</div>++@stop+@section('scripts')+@stop\ No newline at end of filediff --git a/app/views/reports/index.blade.php b/app/views/reports/index.blade.phpindex 4511ce7b3c..965678ba5c 100644--- a/app/views/reports/index.blade.php+++ b/app/views/reports/index.blade.php@@ -1,7 +1,7 @@@extends('layouts.default')@section('content')<div class="row">- <div class="col-lg-6 col-md-6 col-sm-12">+ <div class="col-lg-4 col-md-4 col-sm-4"><div class="panel panel-default"><div class="panel-heading">Yearly reports@@ -15,5 +15,33 @@</div></div></div>+ <div class="col-lg-4 col-md-4 col-sm-4">+ <div class="panel panel-default">+ <div class="panel-heading">+ Budget reports+ </div>+ <div class="panel-body">+ <ul>+ @foreach($months as $month)+ <li><a href="{{route('reports.budgets',[$month['year'],$month['month']])}}">{{$month['formatted']}}</a></li>+ @endforeach+ </ul>+ </div>+ </div>+ </div>+ <div class="col-lg-4 col-md-4 col-sm-4">+ <div class="panel panel-default">+ <div class="panel-heading">+ Unbalanced transactions+ </div>+ <div class="panel-body">+ <ul>+ @foreach($months as $month)+ <li><a href="{{route('reports.unbalanced',[$month['year'],$month['month']])}}">{{$month['formatted']}}</a></li>+ @endforeach+ </ul>+ </div>+ </div>+ </div></div>@stop\ No newline at end of filediff --git a/app/views/reports/unbalanced.blade.php b/app/views/reports/unbalanced.blade.phpnew file mode 100644index 0000000000..40b3d98167--- /dev/null+++ b/app/views/reports/unbalanced.blade.php@@ -0,0 +1,42 @@+@extends('layouts.default')+@section('content')+<div class="row">+ @foreach($journals as $journal)+ <div class="col-lg-4 col-md-4 col-sm-6">+ <div class="panel+ @if($journal->counters->count() > 0)+ panel-default+ @else+ panel-danger+ @endif+ ">+ <div class="panel-heading">+ <a href="{{route('transactions.show',$journal->id)}}">{{{$journal->description}}}</a>+ </div>+ <div class="panel-body">+ <p>Spent {{mf($journal->getAmount())}}</p>+ @if($journal->counters->count() > 0)+ </div>+ <table class="table">+ @foreach($journal->counters as $counter)+ <tr>+ <td><i class="fa fa-fw fa-arrows-h"></i></td>+ <td><a href="{{route('transactions.show',$counter->id)}}">{{$counter->description}}</a></td>+ <td>{{mf($counter->getAmount())}}</td>+ </tr>+ <!-- {{$counter}} -->+ @endforeach+ </table>+ @else+ <p class="text-danger">No counter transaction!</p>+ </div>+ @endif+ </div>+ </div>+ @endforeach+</div>+++@stop+@section('scripts')+@stop\ No newline at end of file