mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Removed all the old views.
This commit is contained in:
parent
b2fd346ef8
commit
195a2d7523
@ -1,64 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $what) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'store','route' => 'accounts.store']) !!}
|
|
||||||
{!! Form::hidden('what',$what) !!}
|
|
||||||
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<p class="error">{{ $error }}</p>
|
|
||||||
@endforeach
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa {{{$subTitleIcon}}}"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::text('name') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
|
|
||||||
@if($what == 'asset')
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
|
|
||||||
{!! ExpandedForm::balance('openingBalance') !!}
|
|
||||||
{!! ExpandedForm::date('openingBalanceDate', date('Y-m-d')) !!}
|
|
||||||
{!! ExpandedForm::select('accountRole',Config::get('firefly.accountRoles'),null,['helpText' => 'Any extra options resulting from your choice can be set later.']) !!}
|
|
||||||
{!! ExpandedForm::balance('virtualBalance') !!}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('create','account') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
<i class="fa fa-plus-circle"></i> Store new {{{$what}}} account
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
@stop
|
|
@ -1,36 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $account) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'destroy','url' => route('accounts.destroy',$account->id)]) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-red">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Delete account "{{{$account->name}}}"
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>
|
|
||||||
Are you sure that you want to delete the {{strtolower($account->accountType->type)}} "{{$account->name}}"?
|
|
||||||
</p>
|
|
||||||
|
|
||||||
@if($account->transactions()->count() > 0)
|
|
||||||
<p class="text-danger">
|
|
||||||
{{ucfirst($account->accountType->type)}} "{{{$account->name}}}" still has {{$account->transactions()->count()}} transaction(s) associated to it. These will be deleted as well.
|
|
||||||
</p>
|
|
||||||
@endif
|
|
||||||
@if($account->piggyBanks()->count() > 0)
|
|
||||||
<p class="text-danger">
|
|
||||||
{{ucfirst($account->accountType->type)}} "{{{$account->name}}}" still has {{$account->piggyBanks()->count()}} piggy bank(s) associated to it. These will be deleted as well.
|
|
||||||
</p>
|
|
||||||
@endif
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-default btn-danger">Delete permanently</button>
|
|
||||||
<a href="{{URL::previous()}}" class="btn-default btn">Cancel</a >
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
@stop
|
|
@ -1,72 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $account) !!}
|
|
||||||
{!! Form::model($account, ['class' => 'form-horizontal','id' => 'update','url' => route('accounts.update',$account->id)]) !!}
|
|
||||||
|
|
||||||
<input type="hidden" name="id" value="{{$account->id}}" />
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa {{{$subTitleIcon}}}"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::text('name') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@if($account->accounttype->type == 'Default account' || $account->accounttype->type == 'Asset account')
|
|
||||||
{!! ExpandedForm::balance('openingBalance',null, ['currency' => $openingBalance ? $openingBalance->transactionCurrency : null]) !!}
|
|
||||||
{!! ExpandedForm::date('openingBalanceDate') !!}
|
|
||||||
{!! ExpandedForm::select('accountRole',Config::get('firefly.accountRoles')) !!}
|
|
||||||
{!! ExpandedForm::balance('virtualBalance',null) !!}
|
|
||||||
{!! Form::hidden('id',$account->id) !!}
|
|
||||||
@endif
|
|
||||||
{!! ExpandedForm::checkbox('active','1') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- panel for credit card options -->
|
|
||||||
@if(Session::get('preFilled')['accountRole'] == 'ccAsset')
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-credit-card"></i> Credit card options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::select('ccType',Config::get('firefly.ccTypes')) !!}
|
|
||||||
{!! ExpandedForm::date('ccMonthlyPaymentDate',null,['helpText' => 'Select any year and any month, it will be ignored anway. Only the day of the month is relevant.']) !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('update','account') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
Update account
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
@stop
|
|
@ -1,47 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $what) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa {{{$subTitleIcon}}}"></i> {{{$subTitle}}}
|
|
||||||
|
|
||||||
<!-- ACTIONS MENU -->
|
|
||||||
<div class="pull-right">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
|
|
||||||
Actions
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu pull-right" role="menu">
|
|
||||||
<li><a href="{{route('accounts.create',$what)}}"><i class="fa fa-plus fa-fw"></i> New {{$what}} account</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
@include('list.accounts')
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
|
||||||
|
|
||||||
@section('styles')
|
|
||||||
<link rel="stylesheet" href="css/bootstrap-sortable.css" type="text/css" media="all" />
|
|
||||||
@stop
|
|
||||||
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
var what = '{{{$what}}}';
|
|
||||||
var currencyCode = '{{Amount::getCurrencyCode()}}';
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- load the libraries and scripts necessary for Google Charts: -->
|
|
||||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.options.js"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.js"></script>
|
|
||||||
<script type="text/javascript" src="js/bootstrap-sortable.js"></script>
|
|
||||||
<script type="text/javascript" src="js/accounts.js"></script>
|
|
||||||
@stop
|
|
@ -1,59 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $account) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw {{$subTitleIcon}} fa-fw"></i> {{{$account->name}}}
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ACTIONS MENU -->
|
|
||||||
<div class="pull-right">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
|
|
||||||
Actions
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu pull-right" role="menu">
|
|
||||||
<li><a href="{{route('accounts.edit',$account->id)}}"><i class="fa fa-pencil fa-fw"></i> Edit</a></li>
|
|
||||||
<li><a href="{{route('accounts.delete',$account->id)}}"><i class="fa fa-trash fa-fw"></i> Delete</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div id="overview-chart"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<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> Transactions
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@include('list.journals-full',['sorting' => true])
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
var accountID = {{{$account->id}}};
|
|
||||||
var currencyCode = '{{Amount::getCurrencyCode()}}';
|
|
||||||
</script>
|
|
||||||
<!-- load the libraries and scripts necessary for Google Charts: -->
|
|
||||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.options.js"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.js"></script>
|
|
||||||
<script src="js/jquery-ui.min.js" type="text/javascript"></script>
|
|
||||||
<script src="js/accounts.js" type="text/javascript"></script>
|
|
||||||
@stop
|
|
@ -1,55 +0,0 @@
|
|||||||
@extends('layouts.guest')
|
|
||||||
@section('content')
|
|
||||||
|
|
||||||
@if($errors->has('email'))
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<div class="alert alert-danger alert-dismissible" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
|
||||||
<strong>Error!</strong> {{$errors->get('email')[0]}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4 col-md-offset-4">
|
|
||||||
<div class="login-panel panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Firefly III — Sign In</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<form role="form" method="POST" id="login" action="/auth/login">
|
|
||||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label">E-Mail</label>
|
|
||||||
<input type="email" class="form-control" id="inputEmail" name="email" placeholder="E-Mail">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label">Password</label>
|
|
||||||
<input type="password" class="form-control" id="inputPassword" name="password" placeholder="Password">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" name="remember" value="1"> Remember me
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success btn-block">Login</button>
|
|
||||||
</p>
|
|
||||||
<div class="btn-group btn-group-justified btn-group-sm">
|
|
||||||
@if(Config::get('auth.allow_register') === true)
|
|
||||||
<a href="{{route('register')}}" class="btn btn-default">Register</a>
|
|
||||||
@endif
|
|
||||||
<a href="/password/email" class="btn btn-default">Forgot your password?</a>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
|
@ -1,45 +0,0 @@
|
|||||||
@extends('layouts.guest')
|
|
||||||
|
|
||||||
@section('content')
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4 col-md-offset-4">
|
|
||||||
<div class="login-panel panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Firefly III — Reset Password</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@if (session('status'))
|
|
||||||
<div class="alert alert-success">
|
|
||||||
{{ session('status') }}
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if (count($errors) > 0)
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
|
||||||
<ul>
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<li>{{ $error }}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<form role="form" method="POST" action="/password/email">
|
|
||||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label">E-Mail</label>
|
|
||||||
<input type="email" class="form-control" placeholder="E-Mail" name="email" value="{{ old('email') }}">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success btn-block">Send Password Reset</button>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endsection
|
|
@ -1,59 +0,0 @@
|
|||||||
@extends('layouts.guest')
|
|
||||||
|
|
||||||
@section('content')
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4 col-md-offset-4">
|
|
||||||
<div class="login-panel panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Firefly III — Register</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>
|
|
||||||
Registering an account on Firefly requires an e-mail address.
|
|
||||||
</p>
|
|
||||||
@if (count($errors) > 0)
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
|
||||||
<ul>
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<li>{{ $error }}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<form role="form" id="register" method="POST" action="/auth/register">
|
|
||||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label">E-Mail</label>
|
|
||||||
<input type="email" class="form-control" placeholder="E-Mail" name="email" value="{{ old('email') }}">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label">Password</label>
|
|
||||||
<input type="password" placeholder="Password" class="form-control" name="password">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label">Confirm Password</label>
|
|
||||||
<input type="password" placeholder="Confirm Password" class="form-control" name="password_confirmation">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success btn-block">Register</button>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="btn-group btn-group-justified btn-group-sm">
|
|
||||||
<a href="/auth/login" class="btn btn-default">Login</a>
|
|
||||||
<a href="/password/email" class="btn btn-default">Forgot your password?</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endsection
|
|
@ -1,51 +0,0 @@
|
|||||||
@extends('layouts.guest')
|
|
||||||
@section('content')
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4 col-md-offset-4">
|
|
||||||
<div class="login-panel panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Firefly III — Reset Password</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@if (count($errors) > 0)
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
|
||||||
<ul>
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<li>{{ $error }}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<form role="form" method="POST" action="/password/reset">
|
|
||||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
|
||||||
<input type="hidden" name="token" value="{{ $token }}">
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label id="email" class="control-label">E-Mail</label>
|
|
||||||
<input type="email" class="form-control" placeholder="E-Mail" name="email" value="{{ old('email') }}">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label">Password</label>
|
|
||||||
<input type="password" placeholder="Password" class="form-control" name="password">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label">Confirm Password</label>
|
|
||||||
<input type="password" placeholder="Confirm Password" class="form-control" name="password_confirmation">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<button type="submit" class="btn btn-success btn-lg btn-block">
|
|
||||||
Reset Password
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endsection
|
|
@ -1,69 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'store','url' => route('bills.store')]) !!}
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
|
||||||
<!-- panel for mandatory fields -->
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-exclamation-circle"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::text('name') !!}
|
|
||||||
{!! ExpandedForm::tags('match') !!}
|
|
||||||
{!! ExpandedForm::amount('amount_min') !!}
|
|
||||||
{!! ExpandedForm::amount('amount_max') !!}
|
|
||||||
{!! ExpandedForm::date('date',Carbon\Carbon::now()->addDay()->format('Y-m-d')) !!}
|
|
||||||
{!! ExpandedForm::select('repeat_freq',$periods,'monthly') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
|
||||||
<!-- panel for optional fields -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::integer('skip',0) !!}
|
|
||||||
{!! ExpandedForm::checkbox('automatch',1,true) !!}
|
|
||||||
{!! ExpandedForm::checkbox('active',1,true) !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('create','bill') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
<i class="fa fa-plus-circle"></i> Store new bill
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('styles')
|
|
||||||
<link href="css/bootstrap-tagsinput.css" type="text/css" rel="stylesheet" media="all">
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript" src="js/bootstrap-tagsinput.min.js"></script>
|
|
||||||
@stop
|
|
@ -1,44 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $bill) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'destroy','url' => route('bills.destroy',$bill->id)]) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-red">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Delete bill "{{{$bill->name}}}"
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>
|
|
||||||
Are you sure that you want to delete bill "{{{$bill->name}}}"?
|
|
||||||
</p>
|
|
||||||
|
|
||||||
@if($bill->transactionjournals()->count() > 0)
|
|
||||||
<p class="text-info">
|
|
||||||
Bill "{{{$bill->name}}}" still has {{$bill->transactionjournals()->count()}} transactions connected
|
|
||||||
to it. These will <strong>not</strong> be removed but will lose their connection to this bill.
|
|
||||||
</p>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-default btn-danger">Delete permanently</button>
|
|
||||||
<a href="{{URL::previous()}}" class="btn-default btn">Cancel</a >
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="col-sm-8">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
@stop
|
|
@ -1,69 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $bill) !!}
|
|
||||||
{!! Form::model($bill, ['class' => 'form-horizontal','id' => 'update','url' => route('bills.update', $bill->id)]) !!}
|
|
||||||
|
|
||||||
<input type="hidden" name="id" value="{{$bill->id}}" />
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
|
||||||
<!-- panel for mandatory fields -->
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-exclamation-circle"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::text('name') !!}
|
|
||||||
{!! ExpandedForm::tags('match') !!}
|
|
||||||
{!! ExpandedForm::amount('amount_min') !!}
|
|
||||||
{!! ExpandedForm::amount('amount_max') !!}
|
|
||||||
{!! ExpandedForm::date('date',$bill->date->format('Y-m-d')) !!}
|
|
||||||
{!! ExpandedForm::select('repeat_freq',$periods) !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
|
||||||
<!-- panel for optional fields -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::integer('skip') !!}
|
|
||||||
{!! ExpandedForm::checkbox('automatch',1) !!}
|
|
||||||
{!! ExpandedForm::checkbox('active',1) !!}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('update','bill') !!}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
<i class="fa fa-plus-circle"></i> Update bill
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{!! Form::close() !!}
|
|
||||||
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('styles')
|
|
||||||
<link href="css/bootstrap-tagsinput.css" type="text/css" rel="stylesheet" media="all">
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript" src="js/bootstrap-tagsinput.min.js"></script>
|
|
||||||
@stop
|
|
@ -1,30 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-sm-12 col-md-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa {{$mainTitleIcon}}"></i> {{{$title}}}
|
|
||||||
|
|
||||||
<!-- ACTIONS MENU -->
|
|
||||||
<div class="pull-right">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
|
|
||||||
Actions
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu pull-right" role="menu">
|
|
||||||
<li><a href="{{route('bills.create')}}"><i class="fa fa-plus fa-fw"></i> New bill</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@include('list.bills')
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
|
|
||||||
@stop
|
|
@ -1,116 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $bill) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-sm-12 col-md-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-rotate-right"></i> {{{$bill->name}}}
|
|
||||||
|
|
||||||
@if($bill->active)
|
|
||||||
<i class="fa fa-check fa-fw" title="Active"></i>
|
|
||||||
@else
|
|
||||||
<i class="fa fa-times fa-fw" title="Inactive"></i>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if($bill->automatch)
|
|
||||||
<i class="fa fa-check fa-fw" title="Automatically matched by Firefly"></i>
|
|
||||||
@else
|
|
||||||
<i class="fa fa-times fa-fw" title="Not automatically matched by Firefly"></i>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<!-- ACTIONS MENU -->
|
|
||||||
<div class="pull-right">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
|
|
||||||
Actions
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu pull-right" role="menu">
|
|
||||||
<li><a href="{{route('bills.edit',$bill->id)}}"><i class="fa fa-fw fa-pencil"></i> edit</a></li>
|
|
||||||
<li><a href="{{route('bills.delete',$bill->id)}}"><i class="fa fa-fw fa-trash-o"></i> delete</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<table class="table">
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
Matching on
|
|
||||||
@foreach(explode(',',$bill->match) as $word)
|
|
||||||
<span class="label label-info">{{{$word}}}</span>
|
|
||||||
@endforeach
|
|
||||||
between {!! Amount::format($bill->amount_min) !!} and {!! Amount::format($bill->amount_max) !!}.
|
|
||||||
Repeats {!! $bill->repeat_freq !!}.</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Next expected match</td>
|
|
||||||
<td>
|
|
||||||
@if($bill->nextExpectedMatch)
|
|
||||||
{{$bill->nextExpectedMatch->format('j F Y')}}
|
|
||||||
@else
|
|
||||||
<em>Unknown</em>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-sm-12 col-md-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
More
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>
|
|
||||||
<a href="{{route('bills.rescan',$bill->id)}}" class="btn btn-default">Rescan old transactions</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-sm-12 col-md-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Chart
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div id="bill-overview"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-sm-12 col-md-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Connected transaction journals
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@include('list.journals-full',['sorting' => false])
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@stop
|
|
||||||
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
var billID = {{{$bill->id}}};
|
|
||||||
var currencyCode = '{{Amount::getCurrencyCode()}}';
|
|
||||||
</script>
|
|
||||||
<!-- load the libraries and scripts necessary for Google Charts: -->
|
|
||||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.options.js"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.js"></script>
|
|
||||||
|
|
||||||
<script type="text/javascript" src="js/bills.js"></script>
|
|
||||||
@stop
|
|
@ -1,45 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'store','url' => route('budgets.store')]) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-exclamation"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::text('name') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('create','budget') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
<i class="fa fa-plus-circle"></i> Store new budget
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
|
|
||||||
|
|
||||||
@stop
|
|
@ -1,44 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $budget) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'destroy','url' => route('budgets.destroy',$budget->id)]) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-red">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Delete budget "{{{$budget->name}}}"
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>
|
|
||||||
Are you sure that you want to delete budget "{{{$budget->name}}}"?
|
|
||||||
</p>
|
|
||||||
|
|
||||||
@if($budget->transactionjournals()->count() > 0)
|
|
||||||
<p class="text-info">
|
|
||||||
Budget "{{{$budget->name}}}" still has {{$budget->transactionjournals()->count()}} transactions connected
|
|
||||||
to it. These will <strong>not</strong> be removed but will lose their connection to this budget.
|
|
||||||
</p>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-default btn-danger">Delete permanently</button>
|
|
||||||
<a href="{{URL::previous()}}" class="btn-default btn">Cancel</a >
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="col-sm-8">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
@stop
|
|
@ -1,49 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $budget) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<p class="lead">Use budgets to organize and limit your expenses.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!! Form::model($budget, ['class' => 'form-horizontal','id' => 'update','url' => route('budgets.update',$budget->id)]) !!}
|
|
||||||
<input type="hidden" name="id" value="{{$budget->id}}" />
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw fa-exclamation"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::checkbox('active') !!}
|
|
||||||
{!! ExpandedForm::text('name') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('update','budget') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
<i class="fa fa-pencil"></i> Update budget
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{!! Form::close() !!}
|
|
||||||
|
|
||||||
|
|
||||||
@stop
|
|
@ -1,22 +0,0 @@
|
|||||||
<form style="display: inline;" id="income" action="{{route('budgets.postIncome')}}" method="POST">
|
|
||||||
|
|
||||||
{!! Form::token() !!}
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
|
||||||
<h4 class="modal-title" id="myModalLabel">Update (expected) available amount for {{Session::get('start', \Carbon\Carbon::now()->startOfMonth())->format('F Y')}}</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="input-group-addon">€</div>
|
|
||||||
<input step="any" class="form-control" id="amount" value="{{$amount->data}}" autocomplete="off" name="amount" type="number">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
||||||
<button type="submit" class="btn btn-primary">Update</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
@ -1,179 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-9 col-sm-8 col-md-8">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
{{Session::get('start', \Carbon\Carbon::now()->startOfMonth())->format('F Y')}}
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-4 col-sm-3">
|
|
||||||
<small>Budgeted: <span id="budgetedAmount" data-value="300"></span></small>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-4 col-sm-3" style="text-align:right;">
|
|
||||||
<small>Available in {{Session::get('start', \Carbon\Carbon::now()->startOfMonth())->format('F Y')}}:
|
|
||||||
<a href="#" class="updateIncome"><span id="totalAmount" data-value="{{$amount}}">{!! Amount::format($amount) !!}</span></a></small>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="progress progress-striped">
|
|
||||||
<div class="progress-bar progress-bar-info" id="progress-bar-default" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0;"></div>
|
|
||||||
<div class="progress-bar progress-bar-danger" id="progress-bar-danger" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0;"></div>
|
|
||||||
<div class="progress-bar progress-bar-warning" id="progress-bar-warning" role="progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100" style="width: 0;"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-4 col-sm-3">
|
|
||||||
<small>Spent: {!! Amount::format($spent) !!}</small>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="progress progress-striped">
|
|
||||||
@if($overspent)
|
|
||||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="{{$spentPCT}}" aria-valuemin="0" aria-valuemax="100" style="width: {{$spentPCT}}%;"></div>
|
|
||||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="{{100-$spentPCT}}" aria-valuemin="0" aria-valuemax="100" style="width: {{100-$spentPCT}}%;"></div>
|
|
||||||
@else
|
|
||||||
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="{{$spentPCT}}" aria-valuemin="0" aria-valuemax="100" style="width: {{$spentPCT}}%;"></div>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-3 col-sm-4 col-md-4">
|
|
||||||
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw fa-tags"></i>
|
|
||||||
Transactions without a budget
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>
|
|
||||||
<a href="{{route('budgets.noBudget')}}">Transactions without a budget in
|
|
||||||
{{Session::get('start', \Carbon\Carbon::now()->startOfMonth())->format('F Y')}}.</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
@foreach($budgets as $budget)
|
|
||||||
<div class="col-lg-3 col-sm-4 col-md-6" style="height:180px;">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw fa-tasks"></i>
|
|
||||||
@if(isset($budget->currentRep))
|
|
||||||
<a href="{{route('budgets.show',[$budget->id,$budget->currentRep->id])}}" id="budget-link-{{$budget->id}}">{{{$budget->name}}}</a>
|
|
||||||
@else
|
|
||||||
<a href="{{route('budgets.show',$budget->id)}}" id="budget-link-{{$budget->id}}">{{{$budget->name}}}</a>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ACTIONS MENU -->
|
|
||||||
<div class="pull-right">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
|
|
||||||
Actions
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu pull-right" role="menu">
|
|
||||||
<li><a href="{{route('budgets.edit',$budget->id)}}"><i class="fa fa-pencil fa-fw"></i> Edit</a></li>
|
|
||||||
<li><a href="{{route('budgets.delete',$budget->id)}}"><i class="fa fa-trash fa-fw"></i> Delete</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<!-- the range in which the budget can be set -->
|
|
||||||
<p>
|
|
||||||
@if($budget->currentRep)
|
|
||||||
<input type="range" data-id="{{$budget->id}}" data-spent="{{$budget->spent}}" id="budget-range-{{$budget->id}}" max="{{$budgetMaximum}}" min="0" value="{{$budget->currentRep->amount}}" />
|
|
||||||
@else
|
|
||||||
<input type="range" data-id="{{$budget->id}}" data-spent="{{$budget->spent}}" id="budget-range-{{$budget->id}}" max="{{$budgetMaximum}}" min="0" value="0" />
|
|
||||||
@endif
|
|
||||||
</p>
|
|
||||||
<!-- some textual info about the budget. Updates dynamically. -->
|
|
||||||
<p>
|
|
||||||
<!-- budget-holder-X holds all the elements -->
|
|
||||||
<span id="budget-holder-{{$budget->id}}">
|
|
||||||
@if($budget->currentRep)
|
|
||||||
<!-- budget-description-X holds the description. -->
|
|
||||||
<span id="budget-description-{{$budget->id}}">Budgeted: </span>
|
|
||||||
<!-- budget-info-X holds the input and the euro-sign: -->
|
|
||||||
<span id="budget-info-{{$budget->id}}">
|
|
||||||
@if($budget->currentRep->amount > $budget->spent)
|
|
||||||
<span class="text-success">{{Amount::getCurrencySymbol()}}</span> <input type="number" min="0" max="{{$budgetMaximum}}" data-id="{{$budget->id}}" step="1" value="{{$budget->currentRep->amount}}" style="width:90px;color:#3c763d;" />
|
|
||||||
@else
|
|
||||||
<span class="text-danger">{{Amount::getCurrencySymbol()}}</span> <input type="number" min="0" max="{{$budgetMaximum}}" data-id="{{$budget->id}}" step="1" value="{{$budget->currentRep->amount}}" style="width:90px;color:#a94442;" />
|
|
||||||
@endif
|
|
||||||
</span>
|
|
||||||
@else
|
|
||||||
<span id="budget-description-{{$budget->id}}"><em>No budget</em></span>
|
|
||||||
<span id="budget-info-{{$budget->id}}">
|
|
||||||
<span class="text-success" style="display:none;">{{Amount::getCurrencySymbol()}}</span> <input data-id="{{$budget->id}}" type="number" min="0" max="{{$budgetMaximum}}" step="1" value="0" style="width:50px;color:#3c763d;display:none;" />
|
|
||||||
</span>
|
|
||||||
@endif
|
|
||||||
</span>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<span id="spent-{{$budget->id}}" data-value="{{$budget->spent}}">Spent: {!! Amount::format($budget->spent) !!}</span>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
<div class="col-lg-3 col-sm-4 col-md-6">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw fa-plus-circle"></i>
|
|
||||||
Create budget
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<a href="{{route('budgets.create')}}" class="btn btn-success"><i class="fa fa-fw fa-plus"></i> Create new budget</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@if($inactive->count() > 0)
|
|
||||||
<div class="col-lg-3 col-sm-4 col-md-6">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw fa-minus-circle"></i>
|
|
||||||
Inactive budgets
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@foreach($inactive as $index => $budget)
|
|
||||||
@if($index != count($inactive)-1)
|
|
||||||
<a href="{{route('budgets.show',$budget->id)}}">{{$budget->name}}</a>,
|
|
||||||
@else
|
|
||||||
<a href="{{route('budgets.show',$budget->id)}}">{{$budget->name}}</a>
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- DIALOG -->
|
|
||||||
<div class="modal fade" id="monthlyBudgetModal">
|
|
||||||
</div><!-- /.modal -->
|
|
||||||
|
|
||||||
|
|
||||||
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript" src="js/budgets.js"></script>
|
|
||||||
@stop
|
|
@ -1,18 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $subTitle) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
{{{$subTitle}}}
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@include('list.journals-full',['journals' => $list,'sorting' => false])
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
@stop
|
|
@ -1,115 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $budget, $repetition) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-9 col-md-9 col-sm-7">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Overview
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ACTIONS MENU -->
|
|
||||||
<div class="pull-right">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
|
|
||||||
Actions
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu pull-right" role="menu">
|
|
||||||
<li><a href="{{route('budgets.edit',$budget->id)}}"><i class="fa fa-pencil fa-fw"></i> Edit</a></li>
|
|
||||||
<li><a href="{{route('budgets.delete',$budget->id)}}"><i class="fa fa-trash fa-fw"></i> Delete</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div id="budgetOverview"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Transactions
|
|
||||||
</div>
|
|
||||||
@include('list.journals-full',['sorting' => false])
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-3 col-md-3 col-sm-5">
|
|
||||||
@if(count($limits) == 1)
|
|
||||||
<p class="small text-center"><a href="{{route('budgets.show',$budget->id)}}">Show everything</a></p>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@foreach($limits as $limit)
|
|
||||||
@foreach($limit->limitrepetitions as $rep)
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<a href="{{route('budgets.show',[$budget->id,$rep->id])}}">{{$rep->startdate->format('F Y')}}</a>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
|
||||||
Amount: {!! Amount::format($rep->amount) !!}
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
|
||||||
Spent: {!! Amount::format($rep->spentInRepetition()) !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<?php
|
|
||||||
$overspent = $rep->spentInRepetition() > $rep->amount;
|
|
||||||
?>
|
|
||||||
@if($overspent)
|
|
||||||
<?php
|
|
||||||
$spent = floatval($rep->spentInRepetition());
|
|
||||||
$pct = $spent != 0 ? ($rep->amount / $spent)*100 : 0;
|
|
||||||
?>
|
|
||||||
<div class="progress progress-striped">
|
|
||||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="{{ceil($pct)}}" aria-valuemin="0" aria-valuemax="100" style="width: {{ceil($pct)}}%;"></div>
|
|
||||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="{{100-ceil($pct)}}" aria-valuemin="0" aria-valuemax="100" style="width: {{100-ceil($pct)}}%;"></div>
|
|
||||||
</div>
|
|
||||||
@else
|
|
||||||
<?php
|
|
||||||
$amount = floatval($rep->amount);
|
|
||||||
$pct = $amount != 0 ? ($rep->spentInRepetition() / $amount)*100 : 0;
|
|
||||||
?>
|
|
||||||
<div class="progress progress-striped">
|
|
||||||
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="{{ceil($pct)}}" aria-valuemin="0" aria-valuemax="100" style="width: {{ceil($pct)}}%;">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@endforeach
|
|
||||||
|
|
||||||
@if(count($limits) == 1)
|
|
||||||
<p class="small text-center"><a href="{{route('budgets.show',$budget->id)}}">Show everything</a></p>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
var budgetID = {{$budget->id}};
|
|
||||||
var currencyCode = '{{Amount::getCurrencyCode()}}';
|
|
||||||
@if(!is_null($repetition->id))
|
|
||||||
var repetitionID = {{$repetition->id}};
|
|
||||||
var year = {{$repetition->startdate->format('Y')}};
|
|
||||||
@else
|
|
||||||
var year = {{Session::get('start',\Carbon\Carbon::now()->startOfMonth())->format('Y')}};
|
|
||||||
@endif
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- load the libraries and scripts necessary for Google Charts: -->
|
|
||||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.options.js"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.js"></script>
|
|
||||||
<script type="text/javascript" src="js/budgets.js"></script>
|
|
||||||
|
|
||||||
@stop
|
|
@ -1,45 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'store','url' => route('categories.store')]) !!}
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-exclamation"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::text('name') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('create','category') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
<i class="fa fa-plus-circle"></i> Store new category
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
|
|
||||||
|
|
||||||
@stop
|
|
@ -1,34 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $category) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'destroy','url' => route('categories.destroy',$category->id)]) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-red">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Delete category "{{{$category->name}}}"
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>
|
|
||||||
Are you sure that you want to delete category "{{$category->name}}"?
|
|
||||||
</p>
|
|
||||||
|
|
||||||
@if($category->transactionjournals()->count() > 0)
|
|
||||||
<p class="text-info">
|
|
||||||
Category "{{{$category->name}}}" still has {{$category->transactionjournals()->count()}} transactions connected
|
|
||||||
to it. These will <strong>not</strong> be removed but will lose their connection to this category.
|
|
||||||
</p>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-default btn-danger">Delete permanently</button>
|
|
||||||
<a href="{{URL::previous()}}" class="btn-default btn">Cancel</a >
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
{!! Form::close()!!}
|
|
||||||
@stop
|
|
@ -1,44 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $category) !!}
|
|
||||||
{!! Form::model($category, ['class' => 'form-horizontal','id' => 'update','url' => route('categories.update',$category->id)]) !!}
|
|
||||||
<input type="hidden" name="id" value="{{$category->id}}" />
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-exclamation"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::text('name') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
|
|
||||||
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('update','category') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
Update category
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
@stop
|
|
@ -1,44 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa {{{$mainTitleIcon}}}"></i> Categories
|
|
||||||
|
|
||||||
<!-- ACTIONS MENU -->
|
|
||||||
<div class="pull-right">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
|
|
||||||
Actions
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu pull-right" role="menu">
|
|
||||||
<li><a href="{{route('categories.create')}}"><i class="fa fa-plus fa-fw"></i> New category</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
@include('list.categories')
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
|
||||||
@section('styles')
|
|
||||||
<link rel="stylesheet" href="css/bootstrap-sortable.css" type="text/css" media="all" />
|
|
||||||
@stop
|
|
||||||
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
var currencyCode = '{{Amount::getCurrencyCode()}}';
|
|
||||||
</script>
|
|
||||||
<!-- load the libraries and scripts necessary for Google Charts: -->
|
|
||||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.options.js"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.js"></script>
|
|
||||||
<script type="text/javascript" src="js/bootstrap-sortable.js"></script>
|
|
||||||
<script type="text/javascript" src="js/categories.js"></script>
|
|
||||||
@stop
|
|
@ -1,18 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $subTitle) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
{{{$subTitle}}}
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@include('list.journals-full',['journals' => $list,'sorting' => false])
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
@stop
|
|
@ -1,55 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $category) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
Overview
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div id="periodOverview"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-calendar-o fa-fw"></i>
|
|
||||||
Overview
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div id="componentOverview"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12">
|
|
||||||
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-repeat fa-fw"></i>
|
|
||||||
Transactions
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@include('list.journals-full',['sorting' => false])
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
var categoryID = {{$category->id}};
|
|
||||||
var currencyCode = '{{Amount::getCurrencyCode()}}';
|
|
||||||
</script>
|
|
||||||
<!-- load the libraries and scripts necessary for Google Charts: -->
|
|
||||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.options.js"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.js"></script>
|
|
||||||
<script type="text/javascript" src="js/categories.js"></script>
|
|
||||||
|
|
||||||
@stop
|
|
@ -1,45 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'store','route' => 'currency.store']) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa {{{$subTitleIcon}}}"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::text('name',null,['maxlength' => 48]) !!}
|
|
||||||
{!! ExpandedForm::text('symbol',null,['maxlength' => 8]) !!}
|
|
||||||
{!! ExpandedForm::text('code',null,['maxlength' => 3]) !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('create','currency') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
<i class="fa fa-plus-circle"></i> Store new currency
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
@stop
|
|
@ -1,25 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $currency) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'destroy','url' => route('currency.destroy',$currency->id)]) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-red">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Delete currency "{{{$currency->name}}}"
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>
|
|
||||||
Are you sure that you want to delete currency "{{{$currency->name}}}"?
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-default btn-danger">Delete permanently</button>
|
|
||||||
<a href="{{URL::previous()}}" class="btn-default btn">Cancel</a >
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
@stop
|
|
@ -1,46 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $currency) !!}
|
|
||||||
{!! Form::model($currency, ['class' => 'form-horizontal','id' => 'update','url' => route('currency.update',$currency->id)]) !!}
|
|
||||||
|
|
||||||
<input type="hidden" name="id" value="{{$currency->id}}" />
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa {{{$subTitleIcon}}}"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::text('name',null,['maxlength' => 48]) !!}
|
|
||||||
{!! ExpandedForm::text('symbol',null,['maxlength' => 8]) !!}
|
|
||||||
{!! ExpandedForm::text('code',null,['maxlength' => 3]) !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('update','currency') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
<i class="fa fa-plus-circle"></i> Update currency
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
@stop
|
|
@ -1,49 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-sm-12 col-md-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Currencies
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p class="text-info">
|
|
||||||
Firefly III supports various currencies which you can set and enable here.
|
|
||||||
</p>
|
|
||||||
<ul>
|
|
||||||
@if(count($currencies) > 0)
|
|
||||||
<table class="table table-striped table-bordered">
|
|
||||||
<tr>
|
|
||||||
<th> </th>
|
|
||||||
<th colspan="2">Currency</th>
|
|
||||||
</tr>
|
|
||||||
@foreach($currencies as $currency)
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<div class="btn-group btn-group-sm">
|
|
||||||
<a class="btn btn-default" href="{{route('currency.edit',$currency->id)}}"><i class="fa fa-fw fa-pencil"></i></a>
|
|
||||||
<a class="btn btn-default" href="{{route('currency.delete',$currency->id)}}"><i class="fa fa-fw fa-trash"></i></a>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td>{{{$currency->name}}} ({{{$currency->code}}}) ({{{$currency->symbol}}})</td>
|
|
||||||
<td>
|
|
||||||
@if($currency->id == $defaultCurrency->id)
|
|
||||||
<span class="label label-success">default</span>
|
|
||||||
@else
|
|
||||||
<a class="btn btn-info" href="{{route('currency.default',$currency->id)}}">make default</a>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
@endforeach
|
|
||||||
</table>
|
|
||||||
@endif
|
|
||||||
<p><a class="btn btn-success" href="{{route('currency.create')}}"><i class="fa fa-fw fa-plus-circle"></i> Add another currency</a></p>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
|
@ -1 +0,0 @@
|
|||||||
Click here to reset your password: {{ url('password/reset/'.$token) }}
|
|
@ -1,5 +0,0 @@
|
|||||||
Hey there!
|
|
||||||
|
|
||||||
Welkome to Firefly III. Your registration has made it, and this email is here to confirm it.
|
|
||||||
|
|
||||||
Thanks for using Firefly!
|
|
@ -1,16 +0,0 @@
|
|||||||
@extends('layouts.guest')
|
|
||||||
@section('content')
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<h1 class="text-danger">Firefly<br/>
|
|
||||||
<small>Error</small>
|
|
||||||
</h1>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
{{$message or 'General unknown errror'}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
|
@ -1,41 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<link href='https://fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
color: #B0BEC5;
|
|
||||||
display: table;
|
|
||||||
font-weight: 100;
|
|
||||||
font-family: 'Lato';
|
|
||||||
}
|
|
||||||
|
|
||||||
.container {
|
|
||||||
text-align: center;
|
|
||||||
display: table-cell;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
text-align: center;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
font-size: 72px;
|
|
||||||
margin-bottom: 40px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
<div class="content">
|
|
||||||
<div class="title">Be right back.</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,22 +0,0 @@
|
|||||||
<div class="{{{$classes}}}">
|
|
||||||
<label for="{{{$options['id']}}}" class="col-sm-4 control-label">{{{$label}}}</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle amountCurrencyDropdown" data-toggle="dropdown" aria-expanded="false">
|
|
||||||
<span id="amountCurrentSymbol">{{$defaultCurrency->symbol}}</span> <span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" role="menu">
|
|
||||||
@foreach($currencies as $currency)
|
|
||||||
<li><a href="#" class="currencySelect" data-id="{{{$currency->id}}}" data-field="amount" data-currency="{{{$currency->code}}}" data-symbol="{{{$currency->symbol}}}">{{{$currency->name}}}</a></li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{!! Form::input('number', $name, $value, $options) !!}
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
@include('form.feedback')
|
|
||||||
</div>
|
|
||||||
{!! Form::input('hidden','amount_currency_id',$defaultCurrency->id) !!}
|
|
||||||
</div>
|
|
@ -1,22 +0,0 @@
|
|||||||
<div class="{{{$classes}}}">
|
|
||||||
<label for="{{{$options['id']}}}" class="col-sm-4 control-label">{{{$label}}}</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle balanceCurrencyDropdown" data-toggle="dropdown" aria-expanded="false">
|
|
||||||
<span id="balanceCurrentSymbol">{{$defaultCurrency->symbol}}</span> <span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" role="menu">
|
|
||||||
@foreach($currencies as $currency)
|
|
||||||
<li><a href="#" class="currencySelect" data-id="{{{$currency->id}}}" data-field="balance" data-currency="{{{$currency->code}}}" data-symbol="{{{$currency->symbol}}}">{{{$currency->name}}}</a></li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{!! Form::input('number', $name, $value, $options) !!}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
@include('form.feedback')
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!! Form::input('hidden','balance_currency_id',$defaultCurrency->id) !!}
|
|
||||||
</div>
|
|
@ -1,11 +0,0 @@
|
|||||||
<div class="{{{$classes}}}">
|
|
||||||
<label for="{{{$options['id']}}}" class="col-sm-4 control-label">{{{$label}}}</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
|
||||||
{!! Form::checkbox($name, $value, $options['checked'], $options) !!}
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
@include('form.feedback')
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -1,8 +0,0 @@
|
|||||||
<div class="{{{$classes}}}">
|
|
||||||
<label for="{{{$options['id']}}}" class="col-sm-4 control-label">{{{$label}}}</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
{!! Form::input('date', $name, $value, $options) !!}
|
|
||||||
@include('form.help')
|
|
||||||
@include('form.feedback')
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -1,4 +0,0 @@
|
|||||||
@if($errors->has($name))
|
|
||||||
<span class="form-control-feedback"><i class="fa fa-fw fa-remove"></i></span>
|
|
||||||
<p class="text-danger">{{{$errors->first($name)}}}</p>
|
|
||||||
@endif
|
|
@ -1,3 +0,0 @@
|
|||||||
@if(isset($options['helpText']))
|
|
||||||
<p class="help-block">{{$options['helpText']}}</p>
|
|
||||||
@endif
|
|
@ -1,9 +0,0 @@
|
|||||||
<div class="{{{$classes}}}">
|
|
||||||
<label for="{{{$options['id']}}}" class="col-sm-4 control-label">{{{$label}}}</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<div class="input-group">
|
|
||||||
{!! Form::input('number', $name, $value, $options) !!}
|
|
||||||
@include('form.feedback')
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -1,14 +0,0 @@
|
|||||||
<div class="{{{$classes}}}">
|
|
||||||
<label for="{{{$options['id']}}}" class="col-sm-4 control-label">{{{$label}}}</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<div id="map-canvas" style="width:100%;height:300px;"></div>
|
|
||||||
<p class="help-block">Right-click to set the tag's location.
|
|
||||||
<a href="#" id="clearLocation">Clear location</a>
|
|
||||||
</p>
|
|
||||||
<input type="hidden" name="latitude" value="" />
|
|
||||||
<input type="hidden" name="longitude" value="" />
|
|
||||||
<input type="hidden" name="zoomLevel" value="6" />
|
|
||||||
<input type="hidden" name="setTag" value="" />
|
|
||||||
@include('form.feedback')
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -1,8 +0,0 @@
|
|||||||
<div class="{{{$classes}}}">
|
|
||||||
<label for="{{{$options['id']}}}" class="col-sm-4 control-label">{{{$label}}}</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
{!! Form::input('month', $name, $value, $options) !!}
|
|
||||||
@include('form.help')
|
|
||||||
@include('form.feedback')
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -1,16 +0,0 @@
|
|||||||
<div class="{{{$classes}}}">
|
|
||||||
<label for="{{{$options['id']}}}" class="col-sm-4 control-label">{{{$label}}}</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
@foreach($list as $value => $description)
|
|
||||||
<div class="radio">
|
|
||||||
<label>
|
|
||||||
{!! Form::radio($name, $value, ($selected == $value), $options) !!}
|
|
||||||
{{$description}}
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@include('form.help')
|
|
||||||
@include('form.feedback')
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -1,73 +0,0 @@
|
|||||||
@if($type == 'create')
|
|
||||||
<!--
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="{{{$name}}}_store" class="col-sm-4 control-label">Store</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<div class="radio">
|
|
||||||
<label>
|
|
||||||
{!! Form::radio('post_submit_action', 'store', $previousValue == 'store', ['id' => $name . '_store']) !!}
|
|
||||||
Store {{{$name}}}
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
-->
|
|
||||||
@endif
|
|
||||||
@if($type == 'update')
|
|
||||||
<!--
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="{{{$name}}}_update" class="col-sm-4 control-label">Update</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<div class="radio">
|
|
||||||
<label>
|
|
||||||
{!! Form::radio('post_submit_action', 'update', $previousValue == 'update' || $previousValue == 'store', ['id' => $name . '_update']) !!}
|
|
||||||
Update {{{$name}}}
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
-->
|
|
||||||
@endif
|
|
||||||
<!--
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="{{{$name}}}_validate_only" class="col-sm-4 control-label">Validate only</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<div class="radio">
|
|
||||||
<label>
|
|
||||||
{!! Form::radio('post_submit_action', 'validate_only', $previousValue == 'validate_only', ['id' => $name . '_validate_only']) !!}
|
|
||||||
Only validate, do not save
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
-->
|
|
||||||
@if($type == 'create')
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="{{{$name}}}_return_to_form" class="col-sm-4 control-label">
|
|
||||||
Return here
|
|
||||||
</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<div class="radio">
|
|
||||||
<label>
|
|
||||||
{!! Form::checkbox('create_another', '1') !!}
|
|
||||||
After storing, return here to create another one.
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if($type == 'update')
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="{{{$name}}}_return_to_edit" class="col-sm-4 control-label">
|
|
||||||
Return here
|
|
||||||
</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<div class="radio"><label>
|
|
||||||
{!! Form::checkbox('return_to_edit', '1', intval(Input::old('return_to_edit')) == 1) !!}
|
|
||||||
After updating, return here.
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
@ -1,9 +0,0 @@
|
|||||||
<div class="{{{$classes}}}">
|
|
||||||
<label for="{{{$options['id']}}}" class="col-sm-4 control-label">{{{$label}}}</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
{!! Form::select($name, $list, $selected , $options ) !!}
|
|
||||||
@include('form.help')
|
|
||||||
@include('form.feedback')
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -1,7 +0,0 @@
|
|||||||
<div class="{{{$classes}}}">
|
|
||||||
<label for="{{{$options['id']}}}" class="col-sm-4 control-label">{{{$label}}}</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
{!! Form::input('text', $name, $value, $options) !!}
|
|
||||||
@include('form.feedback')
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -1,7 +0,0 @@
|
|||||||
<div class="{{{$classes}}}">
|
|
||||||
<label for="{{{$options['id']}}}" class="col-sm-4 control-label">{{{$label}}}</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
{!! Form::input('text', $name, $value, $options) !!}
|
|
||||||
@include('form.feedback')
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -1,7 +0,0 @@
|
|||||||
<div class="{{{$classes}}}">
|
|
||||||
<label for="{{{$options['id']}}}" class="col-sm-4 control-label">{{{$label}}}</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
{!! Form::textarea($name, $value, $options) !!}
|
|
||||||
@include('form.feedback')
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -1,16 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-10 col-md-offset-1">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">Home</div>
|
|
||||||
|
|
||||||
<div class="panel-body">
|
|
||||||
You are logged in!
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endsection
|
|
@ -1,220 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists() !!}
|
|
||||||
@if($count == 0)
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<p class="lead">Welcome to Firefly III.</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
Create a new asset account to get started.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<h2><a href="{{route('accounts.create','asset')}}">Start from scratch</a></h2>
|
|
||||||
</div>
|
|
||||||
@else
|
|
||||||
|
|
||||||
<!-- fancy new boxes -->
|
|
||||||
@include('partials.boxes')
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-8 col-md-12 col-sm-12">
|
|
||||||
<!-- ACCOUNTS -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-credit-card fa-fw"></i> <a href="#">Your accounts</a>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div id="accounts-chart"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- BUDGETS -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-tasks fa-fw"></i> <a href="{{route('budgets.index')}}">Budgets and spending</a>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div id="budgets-chart"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- CATEGORIES -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bar-chart fa-fw"></i> <a href="{{route('categories.index')}}">Categories</a>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div id="categories-chart"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- SAVINGS -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-line-chart"></i> Savings
|
|
||||||
<span class="pull-right">{!! Amount::format($savingsTotal) !!}</span>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@if(count($savings) == 0)
|
|
||||||
<p class="small"><em>Mark your asset accounts as "Savings account" to fill this panel.</em></p>
|
|
||||||
@else
|
|
||||||
@foreach($savings as $account)
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><h5><a href="{{route('accounts.show')}}">{{$account->name}}</a></h5></div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<!-- start -->
|
|
||||||
<div class="col-lg-2 col-md-2 col-sm-3 col-xs-4">{!! Amount::format($account->startBalance) !!}</div>
|
|
||||||
<!-- bar -->
|
|
||||||
<div class="col-lg-8 col-md-8 col-sm-6 col-xs-4">
|
|
||||||
@if($account->difference < 0)
|
|
||||||
<!-- green (100-pct), then red (pct) -->
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-success progress-bar-striped" style="width: {{100 - $account->percentage}}%">
|
|
||||||
@if($account->percentage <= 50)
|
|
||||||
{{Amount::format($account->difference,false)}}
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
<div class="progress-bar progress-bar-danger progress-bar-striped" style="width: {{$account->percentage}}%">
|
|
||||||
@if($account->percentage > 50)
|
|
||||||
{{Amount::format($account->difference,false)}}
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@else
|
|
||||||
<!-- green (pct), then blue (100-pct) -->
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-success progress-bar-striped" style="width: {{$account->percentage}}%">
|
|
||||||
@if($account->percentage > 50)
|
|
||||||
{{Amount::format($account->difference,false)}}
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
<div class="progress-bar progress-bar-info progress-bar-striped" style="width: {{100 - $account->percentage}}%">
|
|
||||||
@if($account->percentage <= 50)
|
|
||||||
{{Amount::format($account->difference,false)}}
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- end -->
|
|
||||||
<div class="col-lg-2 col-md-2 col-sm-3 col-xs-4">{!! Amount::format($account->endBalance) !!}</div>
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- PIGGY BANKS -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-sort-amount-asc fa-fw"></i> Piggy banks
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@if($piggyBankAccounts->count() == 0)
|
|
||||||
<p class="small"><em>Create piggy banks to fill this panel.</em></p>
|
|
||||||
@else
|
|
||||||
@foreach($piggyBankAccounts as $account)
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><h5><a href="{{route('accounts.show')}}">{{$account->name}}</a></h5></div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<!-- start -->
|
|
||||||
<div class="col-lg-2 col-md-2 col-sm-3 col-xs-4">{!! Amount::format($account->startBalance) !!}</div>
|
|
||||||
<!-- bar -->
|
|
||||||
<div class="col-lg-8 col-md-8 col-sm-6 col-xs-4">
|
|
||||||
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-info progress-bar-striped" style="width: {{100 - $account->percentage}}%">
|
|
||||||
@if($account->percentage <= 50)
|
|
||||||
{{Amount::format($account->piggyBalance,false)}} divided
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
<div class="progress-bar progress-bar-success progress-bar-striped" style="width: {{$account->percentage}}%">
|
|
||||||
@if($account->percentage > 50)
|
|
||||||
{{Amount::format($account->difference,false)}} left to divide
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- end -->
|
|
||||||
<div class="col-lg-2 col-md-2 col-sm-3 col-xs-4">{!! Amount::format($account->piggyBalance) !!}</div>
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-4 col-md-6 col-sm-12">
|
|
||||||
|
|
||||||
<!-- REMINDERS -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-calendar-o"></i> <a href="{{route('bills.index')}}">Bills</a>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div id="bills-chart"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- TRANSACTIONS -->
|
|
||||||
@foreach($transactions as $data)
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-money fa-fw"></i>
|
|
||||||
<a href="{{route('accounts.show',$data[1]->id)}}">{{{$data[1]->name}}}</a> ({!! Amount::format(Steam::balance($data[1])) !!})
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ACTIONS MENU -->
|
|
||||||
<div class="pull-right">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
|
|
||||||
Actions
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu pull-right" role="menu">
|
|
||||||
<li><a href="{{route('transactions.create','withdrawal')}}?account_id={{{$data[1]->id}}}"><i class="fa fa-long-arrow-left fa-fw"></i> New withdrawal</a></li>
|
|
||||||
<li><a href="{{route('transactions.create','deposit')}}?account_id={{{$data[1]->id}}}"><i class="fa fa-long-arrow-right fa-fw"></i> New deposit</a></li>
|
|
||||||
<li><a href="{{route('transactions.create','transfer')}}?account_from_id={{{$data[1]->id}}}"><i class="fa fa-fw fa-exchange"></i> New transfer</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@include('list.journals-tiny',['transactions' => $data[0],'account' => $data[1]])
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@endif
|
|
||||||
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
var currencyCode = '{{Amount::getCurrencyCode()}}';
|
|
||||||
</script>
|
|
||||||
<!-- load the libraries and scripts necessary for Google Charts: -->
|
|
||||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.options.js"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.js"></script>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript" src="js/index.js"></script>
|
|
||||||
@stop
|
|
||||||
@section('styles')
|
|
||||||
@stop
|
|
@ -1,156 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<base href="{{URL::route('index')}}/">
|
|
||||||
<title>Firefly
|
|
||||||
@if(isset($title) && $title != 'Firefly')
|
|
||||||
// {{{$title}}}
|
|
||||||
@endif
|
|
||||||
@if(isset($subTitle))
|
|
||||||
// {{{$subTitle}}}
|
|
||||||
@endif
|
|
||||||
</title>
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,700,300italic" type="ext/css" media="all" />
|
|
||||||
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css" type="text/css" media="all" />
|
|
||||||
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" type="text/css" media="all" />
|
|
||||||
<link rel="stylesheet" href="bootstrap/css/bootstrap-theme.min.css" type="text/css" media="all" />
|
|
||||||
<link rel="stylesheet" href="css/metisMenu.min.css" type="text/css" media="all" />
|
|
||||||
<link rel="stylesheet" href="css/sb-admin-2.css" type="text/css" media="all" />
|
|
||||||
<!-- date range -->
|
|
||||||
<link rel="stylesheet" href="css/daterangepicker-bs3.css" type="text/css" media="all" />
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="css/firefly.css" type="text/css" media="all" />
|
|
||||||
|
|
||||||
|
|
||||||
@yield('styles')
|
|
||||||
|
|
||||||
<!-- favicons -->
|
|
||||||
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="icon" type="image/png" href="/favicon-32x32.png?v=Lb54KlrQnz" sizes="32x32">
|
|
||||||
<link rel="icon" type="image/png" href="/android-chrome-192x192.png?v=Lb54KlrQnz" sizes="192x192">
|
|
||||||
<link rel="icon" type="image/png" href="/favicon-96x96.png?v=Lb54KlrQnz" sizes="96x96">
|
|
||||||
<link rel="icon" type="image/png" href="/favicon-16x16.png?v=Lb54KlrQnz" sizes="16x16">
|
|
||||||
<link rel="manifest" href="/manifest.json?v=Lb54KlrQnz">
|
|
||||||
<link rel="shortcut icon" href="/favicon.ico?v=Lb54KlrQnz">
|
|
||||||
<meta name="msapplication-TileColor" content="#2d89ef">
|
|
||||||
<meta name="msapplication-TileImage" content="/mstile-144x144.png?v=Lb54KlrQnz">
|
|
||||||
<meta name="theme-color" content="#ffffff">
|
|
||||||
|
|
||||||
<!-- {{App::environment()}} -->
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="wrapper">
|
|
||||||
|
|
||||||
@include('partials.menu')
|
|
||||||
|
|
||||||
<div id="page-wrapper">
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<h1 class="page-header">
|
|
||||||
@if(isset($mainTitleIcon))
|
|
||||||
<i class="fa {{{$mainTitleIcon}}}"></i>
|
|
||||||
@endif
|
|
||||||
{{$title or '(no title)'}}
|
|
||||||
@if(isset($subTitle))
|
|
||||||
<small>
|
|
||||||
@if(isset($subTitleIcon))
|
|
||||||
<i class="fa {{{$subTitleIcon}}}"></i>
|
|
||||||
@endif
|
|
||||||
{{$subTitle}}
|
|
||||||
</small>
|
|
||||||
@endif
|
|
||||||
<small class="pull-right"><a href="#" id="help" data-route="{{{Route::getCurrentRoute()->getName()}}}"><i data-route="{{{Route::getCurrentRoute()->getName()}}}" class="fa fa-question-circle"></i></a></small>
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- /.col-lg-12 -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@include('partials.flashes')
|
|
||||||
@yield('content')
|
|
||||||
|
|
||||||
<!-- this modal will contain the help-text -->
|
|
||||||
<div class="modal fade" id="helpModal">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
|
||||||
<h4 class="modal-title" id="helpTitle">Please hold...</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body" id="helpBody">
|
|
||||||
<i class="fa fa-refresh fa-spin"></i>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.modal -->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- modal to relate transactions to each other -->
|
|
||||||
<div class="modal fade" id="relationModal">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- default modal -->
|
|
||||||
<div class="modal fade" id="defaultModal">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script type="text/javascript" src="js/jquery-2.1.3.min.js"></script>
|
|
||||||
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
|
|
||||||
<script type="text/javascript" src="js/metisMenu.min.js"></script>
|
|
||||||
<script type="text/javascript" src="js/sb-admin-2.js"></script>
|
|
||||||
<script type="text/javascript" src="js/help.js"></script>
|
|
||||||
|
|
||||||
<!-- date range stuff -->
|
|
||||||
<script type="text/javascript" src="js/moment.min.js"></script>
|
|
||||||
<script type="text/javascript" src="js/daterangepicker.js"></script>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
var start = "{{Session::get('start', new Carbon\Carbon)->format('d-m-Y')}}";
|
|
||||||
var end = "{{Session::get('end', new Carbon\Carbon)->format('d-m-Y')}}";
|
|
||||||
var titleString = "{{Session::get('start', new Carbon\Carbon)->format('j M Y')}} - {{Session::get('end', new Carbon\Carbon)->format('j M Y')}}";
|
|
||||||
var dateRangeURL = "{{route('daterange')}}";
|
|
||||||
var token = "{{csrf_token()}}";
|
|
||||||
var firstDate = moment("{{Session::get('first', new Carbon\Carbon)->format('Y-m-d')}}");
|
|
||||||
var currentMonthName = "{{isset($currentMonthName) ? $currentMonthName : 'Month'}}";
|
|
||||||
var previousMonthName = "{{isset($previousMonthName) ? $previousMonthName : 'Month'}}";
|
|
||||||
var nextMonthName = "{{isset($nextMonthName) ? $nextMonthName : 'Month'}}";
|
|
||||||
$('#daterange span').text(titleString);
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/javascript" src="js/firefly.js"></script>
|
|
||||||
@yield('scripts')
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
||||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
||||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
||||||
|
|
||||||
ga('create', '<?php echo env('ANALYTICS_ID', 'XXX-XX-X'); ?>', 'auto');
|
|
||||||
ga('send', 'pageview');
|
|
||||||
|
|
||||||
// send an event if relevant:
|
|
||||||
@if(Session::has('gaEventCategory') && Session::has('gaEventAction'))
|
|
||||||
ga('send','event','{{Session::get('gaEventCategory')}}','{{Session::get('gaEventAction')}}');
|
|
||||||
@endif
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,59 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<base href="{{URL::route('index')}}/">
|
|
||||||
<title>Firefly III</title>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" type="text/css" media="all" />
|
|
||||||
<!-- <link rel="stylesheet" href="css/metisMenu.min.css" type="text/css" media="all" /> -->
|
|
||||||
<!-- new css for SB admin -->
|
|
||||||
<link rel="stylesheet" href="css/metisMenu.min.css" type="text/css" media="all" />
|
|
||||||
<link rel="stylesheet" href="css/sb-admin-2.css" type="text/css" media="all" />
|
|
||||||
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css" type="text/css" media="all" />
|
|
||||||
|
|
||||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
||||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
|
|
||||||
<!-- favicons -->
|
|
||||||
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png?v=Lb54KlrQnz">
|
|
||||||
<link rel="icon" type="image/png" href="/favicon-32x32.png?v=Lb54KlrQnz" sizes="32x32">
|
|
||||||
<link rel="icon" type="image/png" href="/android-chrome-192x192.png?v=Lb54KlrQnz" sizes="192x192">
|
|
||||||
<link rel="icon" type="image/png" href="/favicon-96x96.png?v=Lb54KlrQnz" sizes="96x96">
|
|
||||||
<link rel="icon" type="image/png" href="/favicon-16x16.png?v=Lb54KlrQnz" sizes="16x16">
|
|
||||||
<link rel="manifest" href="/manifest.json?v=Lb54KlrQnz">
|
|
||||||
<link rel="shortcut icon" href="/favicon.ico?v=Lb54KlrQnz">
|
|
||||||
<meta name="msapplication-TileColor" content="#2d89ef">
|
|
||||||
<meta name="msapplication-TileImage" content="/mstile-144x144.png?v=Lb54KlrQnz">
|
|
||||||
<meta name="theme-color" content="#ffffff">
|
|
||||||
|
|
||||||
|
|
||||||
<!-- {{App::environment()}} -->
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
@include('partials.flashes')
|
|
||||||
@yield('content')
|
|
||||||
</div>
|
|
||||||
<script type="text/javascript" src="js/jquery-2.1.3.min.js"></script>
|
|
||||||
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
|
|
||||||
<!-- new js for sb admin -->
|
|
||||||
<script type="text/javascript" src="js/metisMenu.min.js"></script>
|
|
||||||
<script type="text/javascript" src="js/sb-admin-2.js"></script>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,60 +0,0 @@
|
|||||||
<table class="table table-striped table-bordered sortable">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th data-defaultsort="disabled"> </th>
|
|
||||||
<th>Name</th>
|
|
||||||
@if(isset($what) && $what == 'asset')
|
|
||||||
<th>Role</th>
|
|
||||||
@endif
|
|
||||||
<th>Current balance</th>
|
|
||||||
<th>Active</th>
|
|
||||||
<th>Last activity</th>
|
|
||||||
<th>Balance difference between {{Session::get('start')->format('jS F Y')}} and {{Session::get('end')->format('jS F Y')}}</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@foreach($accounts as $account)
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<div class="btn-group btn-group-xs">
|
|
||||||
<a class="btn btn-default btn-xs" href="{{route('accounts.edit',$account->id)}}"><i class="fa fa-fw fa-pencil"></i></a>
|
|
||||||
<a class="btn btn-danger btn-xs" href="{{route('accounts.delete',$account->id)}}"><i class="fa fa-fw fa-trash-o"></i></a>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td><a href="{{route('accounts.show',$account->id)}}">{{{$account->name}}}</a></td>
|
|
||||||
@if(isset($what) && $what == 'asset')
|
|
||||||
<td>
|
|
||||||
@foreach($account->accountmeta as $entry)
|
|
||||||
@if($entry->name == 'accountRole')
|
|
||||||
{{Config::get('firefly.accountRoles.'.$entry->data)}}
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
</td>
|
|
||||||
@endif
|
|
||||||
<?php $balance = Steam::balance($account);?>
|
|
||||||
<td data-value="{{$balance}}">{!! Amount::format($balance) !!}</td>
|
|
||||||
<td data-value="{{intval($account->active)}}">
|
|
||||||
@if($account->active)
|
|
||||||
<i class="fa fa-fw fa-check"></i>
|
|
||||||
@else
|
|
||||||
<i class="fa fa-fw fa-ban"></i>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
@if($account->lastActivityDate)
|
|
||||||
<td data-value="{{$account->lastActivityDate->format('U')}}">
|
|
||||||
{{{$account->lastActivityDate->format('j F Y')}}}
|
|
||||||
</td>
|
|
||||||
@else
|
|
||||||
<td data-value="0">
|
|
||||||
<em>Never</em>
|
|
||||||
</td>
|
|
||||||
@endif
|
|
||||||
<td data-value="{{$account->endBalance - $account->startBalance}}">
|
|
||||||
{!! Amount::format($account->endBalance - $account->startBalance) !!}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
@endforeach
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
@ -1,78 +0,0 @@
|
|||||||
<table class="table table-bordered table-striped">
|
|
||||||
<tr>
|
|
||||||
<th> </th>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>Matches on</th>
|
|
||||||
<th colspan="2">Matching amount</th>
|
|
||||||
<th>Last seen match</th>
|
|
||||||
<th>Next expected match</th>
|
|
||||||
<th>Is active</th>
|
|
||||||
<th>Will be automatched</th>
|
|
||||||
<th>Repeats every</th>
|
|
||||||
<th> </th>
|
|
||||||
</tr>
|
|
||||||
@foreach($bills as $entry)
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<div class="btn-group btn-group-xs">
|
|
||||||
<a href="{{route('bills.edit',$entry->id)}}" class="btn btn-default btn-xs"><i class="fa fa-fw fa-pencil"></i></a>
|
|
||||||
<a href="{{route('bills.delete',$entry->id)}}" class="btn btn-danger btn-xs"><i class="fa fa-fw fa-trash-o"></i></a>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a href="{{route('bills.show',$entry->id)}}" title="{{{$entry->name}}}">{{{$entry->name}}}</a>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@foreach(explode(',',$entry->match) as $match)
|
|
||||||
<span class="label label-info">{{{$match}}}</span>
|
|
||||||
@endforeach
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{!! Amount::format($entry->amount_min) !!}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{!! Amount::format($entry->amount_max) !!}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@if($entry->lastFoundMatch)
|
|
||||||
{{$entry->lastFoundMatch->format('j F Y')}}
|
|
||||||
@else
|
|
||||||
<em>Unknown</em>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@if($entry->nextExpectedMatch)
|
|
||||||
{{$entry->nextExpectedMatch->format('j F Y')}}
|
|
||||||
@else
|
|
||||||
<em>Unknown</em>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@if($entry->active)
|
|
||||||
<i class="fa fa-fw fa-check"></i>
|
|
||||||
@else
|
|
||||||
<i class="fa fa-fw fa-ban"></i>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@if($entry->automatch)
|
|
||||||
<i class="fa fa-fw fa-check"></i>
|
|
||||||
@else
|
|
||||||
<i class="fa fa-fw fa-ban"></i>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{{$entry->repeat_freq}}}
|
|
||||||
@if($entry->skip > 0)
|
|
||||||
skips over {{$entry->skip}}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@if($entry->active)
|
|
||||||
<a href="{{route('bills.add',$entry->id)}}" class="btn btn-success btn-xs"><i class="fa fa-fw fa-plus-circle"></i></a>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
@endforeach
|
|
||||||
</table>
|
|
@ -1,38 +0,0 @@
|
|||||||
<table class="table table-striped table-bordered sortable">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th data-defaultsort="disabled"> </th>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>Last activity</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
<td><a href="{{route('categories.noCategory')}}"><em>Without a category</em></a></td>
|
|
||||||
<td> </td>
|
|
||||||
</tr>
|
|
||||||
@foreach($categories as $category)
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<div class="btn-group btn-group-xs">
|
|
||||||
<a href="{{route('categories.edit',$category->id)}}" class="btn btn-default btn-xs"><i class="fa fa-fw fa-pencil"></i></a>
|
|
||||||
<a href="{{route('categories.delete',$category->id)}}" class="btn btn-danger btn-xs"><i class="fa fa-fw fa-trash-o"></i></a>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a href="{{route('categories.show',$category->id)}}" title="{{{$category->name}}}">{{{$category->name}}}</a>
|
|
||||||
</td>
|
|
||||||
@if($category->lastActivity)
|
|
||||||
<td data-value="{{$category->lastActivity->format('U')}}">
|
|
||||||
{{$category->lastActivity->format('jS F Y')}}
|
|
||||||
</td>
|
|
||||||
@else
|
|
||||||
<td data-value="0">
|
|
||||||
<em>Never</em>
|
|
||||||
</td>
|
|
||||||
@endif
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
@ -1,162 +0,0 @@
|
|||||||
@if(is_object($journals) && method_exists($journals, 'render'))
|
|
||||||
{!! $journals->render() !!}
|
|
||||||
@endif
|
|
||||||
<table class="table table-striped table-bordered sortable-table">
|
|
||||||
<tr class="ignore">
|
|
||||||
<th colspan="2"> </th>
|
|
||||||
<th>Description</th>
|
|
||||||
<th>Amount</th>
|
|
||||||
<th>Date</th>
|
|
||||||
<th>From</th>
|
|
||||||
<th>To</th>
|
|
||||||
{{-- Hide budgets? --}}
|
|
||||||
@if($hideBudgets)
|
|
||||||
<th><i class="fa fa-tasks fa-fw" title="Budget"></i></th>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
{{-- Hide categories? --}}
|
|
||||||
@if($hideCategories)
|
|
||||||
<th><i class="fa fa-bar-chart fa-fw" title="Category"></i></th>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
{{-- Hide bills? --}}
|
|
||||||
@if(!$hideBills)
|
|
||||||
<th><i class="fa fa-fw fa-rotate-right" title="Bill"></i></th>
|
|
||||||
@endif
|
|
||||||
</tr>
|
|
||||||
@foreach($journals as $journal)
|
|
||||||
@if(!isset($journal->transactions[1]) || !isset($journal->transactions[0]))
|
|
||||||
<tr class="ignore">
|
|
||||||
<td>
|
|
||||||
<div class="btn-group btn-group-xs">
|
|
||||||
<a href="{{route('transactions.delete',$journal->id)}}" class="btn btn-xs btn-danger"><i class="fa fa-fw fa-trash-o"></i></a>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td> </td>
|
|
||||||
<td>{{{$journal->description}}}</td>
|
|
||||||
<td colspan="7"><em>Invalid journal: Found {{$journal->transactions()->count()}} transaction(s)</em></td>
|
|
||||||
</tr>
|
|
||||||
@else
|
|
||||||
<tr class="drag" data-date="{{$journal->date->format('Y-m-d')}}" data-id="{{$journal->id}}">
|
|
||||||
<td>
|
|
||||||
<div class="btn-group btn-group-xs">
|
|
||||||
@if(isset($sorting) && $sorting === true)
|
|
||||||
<a href="#" class="handle btn btn-default btn-xs"><i class="fa fa-fw fa-arrows-v"></i></a>
|
|
||||||
@endif
|
|
||||||
<a href="{{route('transactions.edit',$journal->id)}}" class="btn btn-xs btn-default"><i class="fa fa-fw fa-pencil"></i></a>
|
|
||||||
<a href="{{route('transactions.delete',$journal->id)}}" class="btn btn-xs btn-danger"><i class="fa fa-fw fa-trash-o"></i></a>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@if($journal->transactiontype->type == 'Withdrawal')
|
|
||||||
<span class="glyphicon glyphicon-arrow-left" title="Withdrawal"></span>
|
|
||||||
@endif
|
|
||||||
@if($journal->transactiontype->type == 'Deposit')
|
|
||||||
<span class="glyphicon glyphicon-arrow-right" title="Deposit"></span>
|
|
||||||
@endif
|
|
||||||
@if($journal->transactiontype->type == 'Transfer')
|
|
||||||
<i class="fa fa-fw fa-exchange" title="Transfer"></i>
|
|
||||||
@endif
|
|
||||||
@if($journal->transactiontype->type == 'Opening balance')
|
|
||||||
<span class="glyphicon glyphicon-ban-circle" title="Opening balance"></span>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a href="{{route('transactions.show',$journal->id)}}" title="{{{$journal->description}}}">{{{$journal->description}}}</a>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@if(!$hideTags)
|
|
||||||
{{-- If relevant, refer to tag instead of amount. --}}
|
|
||||||
<!--
|
|
||||||
transaction can only have one advancePayment or balancingAct.
|
|
||||||
Other attempts to put in such a tag are blocked.
|
|
||||||
also show an error when editing a tag and it becomes either
|
|
||||||
of these two types. Or rather, block editing of the tag.
|
|
||||||
-->
|
|
||||||
<?php $showTag = false;$subAmount=0;$showSubAmount=false;$doNothing=true;?>
|
|
||||||
@foreach($journal->tags as $tag)
|
|
||||||
<!-- show tag for deposit that is part of a advance payment -->
|
|
||||||
@if($tag->tagMode == 'advancePayment' && $journal->transactionType->type == 'Deposit')
|
|
||||||
<?php $showTag=true;$tagToShow = $tag;$doNothing=false;?>
|
|
||||||
@endif
|
|
||||||
@if($tag->tagMode == 'advancePayment' && $journal->transactionType->type == 'Withdrawal')
|
|
||||||
<?php $subAmount = $journal->amount;$showSubAmount=true;?>
|
|
||||||
@foreach($tag->transactionjournals as $subJournal)
|
|
||||||
@if($subJournal->id != $journal->id)
|
|
||||||
<?php $subAmount -= $subJournal->amount;$doNothing=false;?>
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
|
|
||||||
<!-- show a link to the tag. -->
|
|
||||||
@if($showTag === true)
|
|
||||||
<a class="label label-success" href="{{route('tags.show',$tagToShow->id)}}">{{$tagToShow->tag}}</a>
|
|
||||||
@endif
|
|
||||||
@if($showSubAmount === true)
|
|
||||||
{!! Amount::format($subAmount*-1) !!}
|
|
||||||
@endif
|
|
||||||
@if($doNothing)
|
|
||||||
{!! Amount::formatJournal($journal) !!}
|
|
||||||
@endif
|
|
||||||
@else
|
|
||||||
{!! Amount::formatJournal($journal) !!}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{$journal->date->format('j F Y')}}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@if($journal->transactions[0]->account->accounttype->type == 'Cash account')
|
|
||||||
<span class="text-success">(cash)</span>
|
|
||||||
@else
|
|
||||||
<a href="{{route('accounts.show',$journal->transactions[0]->account_id)}}">{{{$journal->transactions[0]->account->name}}}</a>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@if($journal->transactions[1]->account->accounttype->type == 'Cash account')
|
|
||||||
<span class="text-success">(cash)</span>
|
|
||||||
@else
|
|
||||||
<a href="{{route('accounts.show',$journal->transactions[1]->account_id)}}">{{{$journal->transactions[1]->account->name}}}</a>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
|
|
||||||
{{-- Do NOT hide the budget? --}}
|
|
||||||
@if(!$hideBudgets)
|
|
||||||
<td>
|
|
||||||
<?php $budget = isset($journal->budgets[0]) ? $journal->budgets[0] : null; ?>
|
|
||||||
@if($budget)
|
|
||||||
<a href="{{route('budgets.show',$budget->id)}}">{{{$budget->name}}}</a>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
{{-- Do NOT hide the category? --}}
|
|
||||||
@if(!$hideCategories)
|
|
||||||
<td>
|
|
||||||
<?php $category = isset($journal->categories[0]) ? $journal->categories[0] : null; ?>
|
|
||||||
@if($category)
|
|
||||||
<a href="{{route('categories.show',$category->id)}}">{{{$category->name}}}</a>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
{{-- Do NOT hide the bill? --}}
|
|
||||||
@if(!$hideBills)
|
|
||||||
<td>
|
|
||||||
@if($journal->bill)
|
|
||||||
<a href="{{route('bills.show',$journal->bill_id)}}">{{{$journal->bill->name}}}</a>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@endforeach
|
|
||||||
</table>
|
|
||||||
|
|
||||||
@if(is_object($journals) && method_exists($journals, 'render'))
|
|
||||||
{!! $journals->render() !!}
|
|
||||||
@endif
|
|
@ -1,35 +0,0 @@
|
|||||||
<div class="list-group">
|
|
||||||
@foreach($transactions as $journal)
|
|
||||||
<a class="list-group-item" title="{{$journal->date->format('jS M Y')}}" href="{{route('transactions.show',$journal->id)}}">
|
|
||||||
|
|
||||||
@if(is_null($journal->type))
|
|
||||||
@if($journal->transactiontype->type == 'Withdrawal')
|
|
||||||
<i class="fa fa-long-arrow-left fa-fw" title="Withdrawal"></i>
|
|
||||||
@endif
|
|
||||||
@if($journal->transactiontype->type == 'Deposit')
|
|
||||||
<i class="fa fa-long-arrow-right fa-fw" title="Deposit"></i>
|
|
||||||
@endif
|
|
||||||
@if($journal->transactiontype->type == 'Transfer')
|
|
||||||
<i class="fa fa-fw fa-exchange" title="Transfer"></i>
|
|
||||||
@endif
|
|
||||||
@else
|
|
||||||
@if($journal->type == 'Withdrawal')
|
|
||||||
<i class="fa fa-long-arrow-left fa-fw" title="Withdrawal"></i>
|
|
||||||
@endif
|
|
||||||
@if($journal->type == 'Deposit')
|
|
||||||
<i class="fa fa-long-arrow-right fa-fw" title="Deposit"></i>
|
|
||||||
@endif
|
|
||||||
@if($journal->type == 'Transfer')
|
|
||||||
<i class="fa fa-fw fa-exchange" title="Transfer"></i>
|
|
||||||
@endif
|
|
||||||
@endif
|
|
||||||
|
|
||||||
{{{$journal->description}}}
|
|
||||||
|
|
||||||
<span class="pull-right small">
|
|
||||||
{!! Amount::formatJournal($journal) !!}
|
|
||||||
</span>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||||||
<table class="table table-bordered table-striped">
|
|
||||||
<tr>
|
|
||||||
@if(isset($showPiggyBank) && $showPiggyBank === true)
|
|
||||||
<th>Piggy bank</th>
|
|
||||||
@endif
|
|
||||||
<th>Date</th>
|
|
||||||
<th>Amount</th>
|
|
||||||
</tr>
|
|
||||||
@foreach($events as $event)
|
|
||||||
<tr>
|
|
||||||
@if(isset($showPiggyBank) && $showPiggyBank === true)
|
|
||||||
<td>
|
|
||||||
<a href="{{route('piggyBanks.show',$event->piggyBank_id)}}">{{{$event->piggyBank->name}}}</a>
|
|
||||||
</td>
|
|
||||||
@endif
|
|
||||||
<td>
|
|
||||||
@if(!is_null($event->transaction_journal_id))
|
|
||||||
<a href="{{route('transactions.show',$event->transaction_journal_id)}}" title="{{{$event->transactionJournal->description}}}">{{$event->date->format('j F Y')}}</a>
|
|
||||||
@else
|
|
||||||
{{$event->date->format('j F Y')}}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td>
|
|
||||||
@if($event->amount < 0)
|
|
||||||
<span class="text-danger">Removed {{Amount::format($event->amount*-1,false)}}</span>
|
|
||||||
@else
|
|
||||||
<span class="text-success">Added {{Amount::format($event->amount,false)}}</span>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
</table>
|
|
@ -1,56 +0,0 @@
|
|||||||
<table class="table table-striped" id="sortable">
|
|
||||||
<tbody>
|
|
||||||
@foreach($piggyBanks as $piggyBank)
|
|
||||||
<tr data-id="{{$piggyBank->id}}">
|
|
||||||
<td style="width:60px;">
|
|
||||||
<i class="fa fa-fw fa-bars handle"></i>
|
|
||||||
<i class="loadSpin"></i>
|
|
||||||
</td>
|
|
||||||
<td style="width:100px;">
|
|
||||||
<div class="btn-group btn-group-xs">
|
|
||||||
<a href="{{route('piggy-banks.edit',$piggyBank->id)}}" class="btn btn-default btn-xs"><i class="fa fa-pencil fa-fw"></i></a>
|
|
||||||
<a href="{{route('piggy-banks.delete',$piggyBank->id)}}" class="btn btn-default btn-xs"><i class="fa fa-trash fa-fw"></i></a>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a href="{{route('piggy-banks.show',$piggyBank->id)}}" title="{{{$piggyBank->order}}}">{{{$piggyBank->name}}}</a>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<span title="Saved so far">{!! Amount::format($piggyBank->savedSoFar,true) !!}</span>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:right;width:40px;">
|
|
||||||
@if($piggyBank->savedSoFar > 0)
|
|
||||||
<a href="{{route('piggy-banks.removeMoney',$piggyBank->id)}}" class="btn btn-default btn-xs removeMoney" data-id="{{{$piggyBank->id}}}"><span data-id="{{{$piggyBank->id}}}" class="glyphicon glyphicon-minus"></span></a>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td>
|
|
||||||
<div class="progress progress-striped" style="margin-bottom:0;">
|
|
||||||
<div
|
|
||||||
@if($piggyBank->percentage == 100)
|
|
||||||
class="progress-bar progress-bar-success"
|
|
||||||
@else
|
|
||||||
class="progress-bar progress-bar-info"
|
|
||||||
@endif
|
|
||||||
role="progressbar" aria-valuenow="{{$piggyBank->percentage}}" aria-valuemin="0" aria-valuemax="100" style="min-width: 40px;width: {{$piggyBank->percentage}}%;">
|
|
||||||
{{$piggyBank->percentage}}%
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
|
|
||||||
<td style="width:40px;">
|
|
||||||
@if($piggyBank->leftToSave > 0)
|
|
||||||
<a href="{{route('piggy-banks.addMoney',$piggyBank->id)}}" class="btn btn-default btn-xs addMoney" data-id="{{{$piggyBank->id}}}"><span data-id="{{{$piggyBank->id}}}" class="glyphicon glyphicon-plus"></span></a>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td style="width:200px;">
|
|
||||||
<span title="Target amount">{!! Amount::format($piggyBank->targetamount,true) !!}</span>
|
|
||||||
@if($piggyBank->leftToSave > 0)
|
|
||||||
<span title="Left to save">({!! Amount::format($piggyBank->leftToSave) !!})</span>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
@ -1,45 +0,0 @@
|
|||||||
<div class="row">
|
|
||||||
@if($reminders->count() > 0)
|
|
||||||
@foreach($reminders as $reminder)
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<a href="{{route('reminders.show',$reminder->id)}}">
|
|
||||||
@if($reminder->notnow === true)
|
|
||||||
Dismissed reminder
|
|
||||||
@else
|
|
||||||
Reminder
|
|
||||||
@endif
|
|
||||||
for piggy bank "{{$reminder->remindersable->name}}"
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>
|
|
||||||
This reminder is active between {{$reminder->startdate->format('jS F Y')}}
|
|
||||||
and {{$reminder->enddate->format('jS F Y')}}.
|
|
||||||
</p>
|
|
||||||
@if(isset($reminder->description))
|
|
||||||
<p>{!! $reminder->description !!}</p>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
<div class="panel-footer">
|
|
||||||
<div class="btn-group">
|
|
||||||
@if($reminder->notnow !== true)
|
|
||||||
<a class="btn btn-warning" href="{{route('reminders.dismiss',$reminder->id)}}">Dismiss</a>
|
|
||||||
@endif
|
|
||||||
@if($reminder->active === true)
|
|
||||||
<a class="btn btn-success" href="{{route('reminders.act',$reminder->id)}}">Act</a>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@else
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
|
||||||
<p class="small">
|
|
||||||
(No reminders)
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
@ -1,92 +0,0 @@
|
|||||||
<!-- /.row -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="hidden-xs col-lg-3 col-md-6">
|
|
||||||
<div class="panel panel-red">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-3">
|
|
||||||
<i class="fa fa-upload fa-3x"></i>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-9 text-right">
|
|
||||||
<div id="box-out" class="large">{{Amount::format(0,false)}}</div>
|
|
||||||
<div>Money out</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<a href="{{route('transactions.index','withdrawal')}}">
|
|
||||||
<div class="panel-footer">
|
|
||||||
<span class="pull-left">View Details</span>
|
|
||||||
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hidden-xs col-lg-3 col-md-6">
|
|
||||||
<div class="panel panel-green">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-3">
|
|
||||||
<i class="fa fa-download fa-3x"></i>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-9 text-right">
|
|
||||||
<div id="box-in" class="large">{{Amount::format(0,false)}}</div>
|
|
||||||
<div>Money in</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<a href="{{route('transactions.index','deposit')}}">
|
|
||||||
<div class="panel-footer">
|
|
||||||
<span class="pull-left">View Details</span>
|
|
||||||
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hidden-xs col-lg-3 col-md-6">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-3">
|
|
||||||
<i class="fa fa-calendar fa-3x"></i>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-9 text-right">
|
|
||||||
<div id="box-bills-unpaid" class="large">{{Amount::format(0,false)}}</div>
|
|
||||||
<div>Bills to pay</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<a href="{{route('bills.index')}}">
|
|
||||||
<div class="panel-footer">
|
|
||||||
<span class="pull-left">View Details</span>
|
|
||||||
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hidden-xs col-lg-3 col-md-6">
|
|
||||||
<div class="panel panel-green">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-3">
|
|
||||||
<i class="fa fa-line-chart fa-3x"></i>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-9 text-right">
|
|
||||||
<div id="box-bills-paid" class="large">{{Amount::format(0,false)}}</div>
|
|
||||||
<div>Bills paid</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<a href="{{route('bills.index')}}">
|
|
||||||
<div class="panel-footer">
|
|
||||||
<span class="pull-left">View Details</span>
|
|
||||||
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- /.row -->
|
|
@ -1,31 +0,0 @@
|
|||||||
{{--
|
|
||||||
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-clock-o fa-fw"></i>
|
|
||||||
{{{Session::get('period')}}}
|
|
||||||
|
|
||||||
<!-- ACTIONS MENU -->
|
|
||||||
<div class="pull-right">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
|
|
||||||
Range
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu pull-right" role="menu">
|
|
||||||
@foreach(Config::get('firefly.range_to_name') as $name => $label)
|
|
||||||
<li><a href="{{route('rangeJump',$name)}}"><i class="fa fa-calendar fa-fw"></i> {{{ucfirst($label)}}}</a></li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div class="btn-group btn-group-sm btn-group-justified">
|
|
||||||
<a class="btn btn-default" href="{{route('sessionPrev')}}"><i class="fa fa-arrow-left"></i> {{{Session::get('prev')}}}</a>
|
|
||||||
<a class="btn btn-default" href="{{route('sessionNext')}}">{{{Session::get('next')}}} <i class="fa fa-arrow-right"></i></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
--}}
|
|
@ -1,27 +0,0 @@
|
|||||||
@if(Session::has('success'))
|
|
||||||
<div class="alert alert-success alert-dismissible" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
|
||||||
<strong>Success!</strong> {{{Session::get('success')}}}
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if(Session::has('info'))
|
|
||||||
<div class="alert alert-info alert-dismissible" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
|
||||||
<strong>Info:</strong> {{{Session::get('info')}}}
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if(Session::has('warning'))
|
|
||||||
<div class="alert alert-warning alert-dismissible" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
|
||||||
<strong>Warning!</strong> {{{Session::get('warning')}}}
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if(Session::has('error'))
|
|
||||||
<div class="alert alert-danger alert-dismissible" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
|
||||||
<strong>Error!</strong> {{{Session::get('error')}}}
|
|
||||||
</div>
|
|
||||||
@endif
|
|
@ -1,198 +0,0 @@
|
|||||||
<!-- Navigation -->
|
|
||||||
<?php $r = Route::getCurrentRoute()->getName();?>
|
|
||||||
|
|
||||||
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="{{route('index')}}">Firefly</a>
|
|
||||||
</div>
|
|
||||||
<!-- /.navbar-header -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul class="nav navbar-top-links navbar-right">
|
|
||||||
|
|
||||||
<!-- reminders -->
|
|
||||||
@if(isset($reminders) && $reminders->count() > 0)
|
|
||||||
<li class="dropdown">
|
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
|
|
||||||
<i class="fa fa-envelope fa-fw"></i> <i class="fa fa-caret-down"></i>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu dropdown-messages">
|
|
||||||
@foreach($reminders as $reminder)
|
|
||||||
<li>
|
|
||||||
<a href="{{route('reminders.show',$reminder->id)}}">
|
|
||||||
<div>
|
|
||||||
<strong>
|
|
||||||
{{$reminder->remindersable->name}}
|
|
||||||
</strong>
|
|
||||||
<span class="pull-right text-muted">
|
|
||||||
<em>{{$reminder->startdate->diffForHumans()}}</em>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div>{!! $reminder->description !!}</div>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class="divider"></li>
|
|
||||||
@endforeach
|
|
||||||
<li>
|
|
||||||
<a class="text-center" href="{{route('reminders.index')}}">
|
|
||||||
<strong>See all reminders</strong>
|
|
||||||
<i class="fa fa-angle-right"></i>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<!-- /.dropdown-messages -->
|
|
||||||
</li>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<!-- menu -->
|
|
||||||
<li class="dropdown">
|
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
|
||||||
<i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu dropdown-user">
|
|
||||||
<li><a href="{{route('profile')}}"><i class="fa fa-user fa-fw"></i> {{Auth::user()->email}}</a></li>
|
|
||||||
<li><a href="{{route('preferences')}}"><i class="fa fa-gear fa-fw"></i> Preferences</a></li>
|
|
||||||
<li><a href="{{route('currency.index')}}"><i class="fa fa-usd fa-fw"></i> Currency</a></li>
|
|
||||||
<li><a href="{{route('reminders.index')}}"><i class="fa fa-clock-o fa-fw"></i> Reminders</a></li>
|
|
||||||
<li class="divider"></li>
|
|
||||||
<li><a href="{{route('logout')}}"><i class="fa fa-sign-out fa-fw"></i> Logout</a></li>
|
|
||||||
</ul>
|
|
||||||
<!-- /.dropdown-user -->
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- /.dropdown -->
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
<p class="navbar-text navbar-right" id="daterange"><span> </span> <b class="caret"></b> </p>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- /.navbar-top-links -->
|
|
||||||
<div class="navbar-default sidebar" role="navigation">
|
|
||||||
<div class="sidebar-nav navbar-collapse">
|
|
||||||
<ul class="nav" id="side-menu">
|
|
||||||
<li class="sidebar-search">
|
|
||||||
<form action="{{route('search')}}" method="GET" class="form-inline">
|
|
||||||
<div class="input-group custom-search-form">
|
|
||||||
<input type="text" name="q" class="form-control" value="@if(Input::get('q')){{{Input::get('q')}}}@endif" placeholder="Search...">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
<!-- /input-group -->
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a @if($r == 'index') class="active" @endif href="{{route('index')}}"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
|
|
||||||
</li>
|
|
||||||
<?php
|
|
||||||
$isAccounts = $r == 'accounts.index';
|
|
||||||
$isAsset = $r == 'accounts.index' && isset($what) && $what == 'asset';
|
|
||||||
$isExpense = $r == 'accounts.index' && isset($what) && $what == 'expense';
|
|
||||||
$isRevenue = $r == 'accounts.index' && isset($what) && $what == 'revenue';
|
|
||||||
?>
|
|
||||||
<li @if($isAccounts) class="active" @endif>
|
|
||||||
<a href="#"><i class="fa fa-credit-card fa-fw"></i> Accounts <span class="fa arrow"></span></a>
|
|
||||||
<ul class="nav nav-second-level">
|
|
||||||
<li>
|
|
||||||
<a @if($isAsset) class="active" @endif href="{{route('accounts.index','asset')}}"><i class="fa fa-money fa-fw"></i> Asset accounts</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a @if($isExpense) class="active" @endif href="{{route('accounts.index','expense')}}"><i class="fa fa-shopping-cart fa-fw"></i> Expense accounts</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a @if($isRevenue) class="active" @endif href="{{route('accounts.index','revenue')}}"><i class="fa fa-download fa-fw"></i> Revenue accounts</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<!-- /.nav-second-level -->
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a @if(!(strpos($r,'budgets') === false)) class="active" @endif href="{{route('budgets.index')}}"><i class="fa fa-tasks fa-fw"></i> Budgets</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a @if($r == 'categories.index') class="active" @endif href="{{route('categories.index')}}"><i class="fa fa-bar-chart fa-fw"></i> Categories</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a @if($r == 'tags.index') class="active" @endif href="{{route('tags.index')}}"><i class="fa fa-tags fa-fw"></i> Tags</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a @if(!(strpos($r,'reports') === false)) class="active" @endif href="{{route('reports.index')}}"><i class="fa fa-line-chart fa-fw"></i> Reports</a>
|
|
||||||
</li>
|
|
||||||
<?php
|
|
||||||
$isTransactions = $r == 'transactions.index';
|
|
||||||
$isWithdrawal = $r == 'transactions.index' && isset($what) && $what == 'withdrawal';
|
|
||||||
$isDeposit = $r == 'transactions.index' && isset($what) && $what == 'deposit';
|
|
||||||
$isTransfer = $r == 'transactions.index' && isset($what) && $what == 'transfers';
|
|
||||||
?>
|
|
||||||
<li @if($isTransactions) class="active" @endif>
|
|
||||||
<a href="#"><i class="fa fa-repeat fa-fw"></i> Transactions<span class="fa arrow"></span></a>
|
|
||||||
<ul class="nav nav-second-level">
|
|
||||||
<li>
|
|
||||||
<a @if($isWithdrawal)class="active"@endif href="{{route('transactions.index','withdrawal')}}"><i class="fa fa-long-arrow-left fa-fw"></i> Expenses</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a @if($isDeposit)class="active"@endif href="{{route('transactions.index','deposit')}}"><i class="fa fa-long-arrow-right fa-fw"></i> Revenue / income</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a @if($isTransfer)class="active"@endif href="{{route('transactions.index','transfers')}}"><i class="fa fa-fw fa-exchange" title="Transfer"></i> Transfers</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
<?php
|
|
||||||
$isMM = !(strpos($r,'piggy-banks') === false) || !(strpos($r,'bills') === false);
|
|
||||||
$isPiggy = !(strpos($r,'piggy-banks') === false);
|
|
||||||
$isBill = !(strpos($r,'bills') === false) && strpos($r,'bills.create') === false;
|
|
||||||
?>
|
|
||||||
<li @if($isMM)class="active"@endif>
|
|
||||||
<a href="#"><i class="fa fa-euro fa-fw"></i> Money management<span class="fa arrow"></span></a>
|
|
||||||
<ul class="nav nav-second-level">
|
|
||||||
<li>
|
|
||||||
<a @if($isPiggy)class="active"@endif href="{{route('piggy-banks.index')}}"><i class="fa fa-sort-amount-asc fa-fw"></i> Piggy banks</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a @if($isBill)class="active"@endif href="{{route('bills.index')}}"><i class="fa fa-calendar-o fa-fw"></i> Bills</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<!-- /.nav-second-level -->
|
|
||||||
</li>
|
|
||||||
<?php
|
|
||||||
$creating = !(strpos($r,'.create') === false);
|
|
||||||
$isWithdrawal = $r == 'transactions.create' && isset($what) && $what == 'withdrawal';
|
|
||||||
$isDeposit = $r == 'transactions.create' && isset($what) && $what == 'deposit';
|
|
||||||
$isTransfer = $r == 'transactions.create' && isset($what) && $what == 'transfer';
|
|
||||||
$isBill = $r == 'bills.create';
|
|
||||||
?>
|
|
||||||
<li @if($creating)class="active"@endif>
|
|
||||||
<a href="#"><i class="fa fa-plus fa-fw"></i> Create new<span class="fa arrow"></span></a>
|
|
||||||
<ul class="nav nav-second-level">
|
|
||||||
<li>
|
|
||||||
<a @if($isWithdrawal)class="active"@endif href="{{route('transactions.create','withdrawal')}}"><i class="fa fa-long-arrow-left fa-fw"></i> Withdrawal</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a @if($isDeposit)class="active"@endif href="{{route('transactions.create','deposit')}}"><i class="fa fa-long-arrow-right fa-fw"></i> Deposit</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a @if($isTransfer)class="active"@endif href="{{route('transactions.create','transfer')}}"><i class="fa fa-fw fa-exchange" title="Transfer"></i> Transfer</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a @if($isBill)class="active"@endif href="{{route('bills.create')}}"><i class="fa fa-calendar-o fa-fw"></i> Bill</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<!-- /.nav-second-level -->
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<!-- /.sidebar-collapse -->
|
|
||||||
</div>
|
|
||||||
<!-- /.navbar-static-side -->
|
|
||||||
</nav>
|
|
@ -1,27 +0,0 @@
|
|||||||
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
|
||||||
<h4 class="modal-title" id="myModalLabel">Add money to {{{$piggyBank->name}}}</h4>
|
|
||||||
</div>
|
|
||||||
<form style="display: inline;" id="add" action="{{route('piggy-banks.add',$piggyBank->id)}}" method="POST">
|
|
||||||
|
|
||||||
<div class="modal-body">
|
|
||||||
<p>
|
|
||||||
The maximum amount you can add is {!! Amount::format($maxAmount) !!}
|
|
||||||
</p>
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="input-group-addon">€</div>
|
|
||||||
{!! Form::token() !!}
|
|
||||||
<input step="any" class="form-control" id="amount" autocomplete="off" name="amount" max="{{round($maxAmount,2)}}" type="number">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
||||||
<button type="submit" class="btn btn-primary">Add</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'store','url' => route('piggy-banks.store')]) !!}
|
|
||||||
|
|
||||||
<input type="hidden" name="repeats" value="0" />
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw fa-exclamation"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
|
|
||||||
{!! ExpandedForm::text('name') !!}
|
|
||||||
{!! ExpandedForm::select('account_id',$accounts,null,['label' => 'Save on account']) !!}
|
|
||||||
{!! ExpandedForm::amount('targetamount') !!}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<!-- panel for optional fields -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::date('targetdate') !!}
|
|
||||||
{!! ExpandedForm::checkbox('remind_me','1',false,['label' => 'Remind me']) !!}
|
|
||||||
{!! ExpandedForm::select('reminder',$periods,'month',['label' => 'Remind every']) !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('create','piggy bank') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
<i class="fa fa-plus-circle"></i> Store new piggy bank
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
@stop
|
|
@ -1,37 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $piggyBank) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'destroy','url' => route('piggy-banks.destroy',$piggyBank->id)]) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-red">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Delete piggy bank "{{{$piggyBank->name}}}"
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>
|
|
||||||
Are you sure?
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-default btn-danger">Delete permanently</button>
|
|
||||||
<a href="{{URL::previous()}}" class="btn-default btn">Cancel</a >
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="col-sm-8">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
@stop
|
|
@ -1,64 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $piggyBank) !!}
|
|
||||||
{!! Form::model($piggyBank, ['class' => 'form-horizontal','id' => 'update','url' => route('piggy-banks.update',$piggyBank->id)]) !!}
|
|
||||||
|
|
||||||
<input type="hidden" name="repeats" value="0" />
|
|
||||||
<input type="hidden" name="id" value="{{$piggyBank->id}}" />
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw fa-exclamation"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@foreach($errors->all() as $err)
|
|
||||||
{{$err}}
|
|
||||||
@endforeach
|
|
||||||
|
|
||||||
{!! ExpandedForm::text('name') !!}
|
|
||||||
{!! ExpandedForm::select('account_id',$accounts,null,['label' => 'Save on account']) !!}
|
|
||||||
{!! ExpandedForm::amount('targetamount') !!}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<!-- panel for optional fields -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::date('targetdate') !!}
|
|
||||||
{!! ExpandedForm::checkbox('remind_me','1',$preFilled['remind_me'],['label' => 'Remind me']) !!}
|
|
||||||
{!! ExpandedForm::select('reminder',$periods,$preFilled['reminder'],['label' => 'Remind every']) !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('update','piggy bank') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
<i class="fa fa-pencil"></i> Update piggy bank
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
@stop
|
|
@ -1,62 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<p>
|
|
||||||
<i class="fa fa-sort-amount-asc fa-fw"></i> <a href="{{route('piggy-banks.create')}}" class="btn btn-success">Create new piggy bank</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">Piggy banks</div>
|
|
||||||
@include('list.piggy-banks')
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw fa-money"></i> Account status
|
|
||||||
</div>
|
|
||||||
<table class="table table-striped">
|
|
||||||
<tr>
|
|
||||||
<th>Account</th>
|
|
||||||
<th>Balance</th>
|
|
||||||
<th>Left for piggy banks</th>
|
|
||||||
<th>Sum of piggy banks</th>
|
|
||||||
<th>Saved so far</th>
|
|
||||||
<th>Left to save</th>
|
|
||||||
</tr>
|
|
||||||
@foreach($accounts as $id => $info)
|
|
||||||
<tr>
|
|
||||||
<td><a href="{{route('accounts.show',$id)}}">{{{$info['name']}}}</a></td>
|
|
||||||
<td>{!! Amount::format($info['balance']) !!}</td>
|
|
||||||
<td>{!! Amount::format($info['leftForPiggyBanks']) !!}</td>
|
|
||||||
<td>{!! Amount::format($info['sumOfTargets']) !!}</td>
|
|
||||||
<td>{!! Amount::format($info['sumOfSaved']) !!}</td>
|
|
||||||
<td>{!! Amount::format($info['leftToSave']) !!}</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- this is the modal for the add/remove money routine: -->
|
|
||||||
<div class="modal fade" id="moneyManagementModal">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div><!-- /.modal -->
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script src="js/jquery-ui.min.js" type="text/javascript"></script>
|
|
||||||
<script type="text/javascript" src="js/piggy-banks.js"></script>
|
|
||||||
@stop
|
|
@ -1,26 +0,0 @@
|
|||||||
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<form style="display: inline;" id="remove" action="{{route('piggy-banks.remove',$piggyBank->id)}}" method="POST">
|
|
||||||
{!! Form::token() !!}
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
|
||||||
<h4 class="modal-title" id="myModalLabel">Remove money from {{{$piggyBank->name}}}</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<p>
|
|
||||||
The maximum amount you can remove is {!! Amount::format($piggyBank->currentRelevantRep()->currentamount) !!}
|
|
||||||
</p>
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="input-group-addon">€</div>
|
|
||||||
<input step="any" class="form-control" id="amount" autocomplete="off" name="amount" max="{{round($piggyBank->currentRelevantRep()->currentamount,2)}}" type="number">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
||||||
<button type="submit" class="btn btn-primary">Remove</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
@ -1,122 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $piggyBank) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-8 col-md-8 col-sm-6">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw fa-clock-o"></i> Events
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div id="piggy-bank-history"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-4 col-md-4 col-sm-6">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw fa-info-circle"></i> Details
|
|
||||||
|
|
||||||
<!-- ACTIONS MENU -->
|
|
||||||
<div class="pull-right">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
|
|
||||||
Actions
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu pull-right" role="menu">
|
|
||||||
<li><a href="{{route('piggy-banks.edit',$piggyBank->id)}}"><i class="fa fa-pencil fa-fw"></i> Edit</a></li>
|
|
||||||
<li><a href="{{route('piggy-banks.delete',$piggyBank->id)}}"><i class="fa fa-trash fa-fw"></i> Delete</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<table class="table table-bordered table-striped">
|
|
||||||
<tr>
|
|
||||||
<td>Account</td>
|
|
||||||
<td><a href="{{route('accounts.show',$piggyBank->account_id)}}">{{{$piggyBank->account->name}}}</a></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Target amount</td>
|
|
||||||
<td>{!! Amount::format($piggyBank->targetamount) !!}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Saved so far</td>
|
|
||||||
<td>{!! Amount::format($piggyBank->currentRelevantRep()->currentamount) !!}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Left to save</td>
|
|
||||||
<td>{!! Amount::format($piggyBank->targetamount-$piggyBank->currentRelevantRep()->currentamount) !!}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Start date</td>
|
|
||||||
<td>
|
|
||||||
@if(is_null($piggyBank->startdate))
|
|
||||||
<em>No start date</em>
|
|
||||||
@endif
|
|
||||||
@if(is_object($piggyBank->startdate))
|
|
||||||
{{$piggyBank->startdate->format('jS F Y')}}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Target date</td>
|
|
||||||
<td>
|
|
||||||
@if(is_null($piggyBank->targetdate))
|
|
||||||
<em>No target date</em>
|
|
||||||
@endif
|
|
||||||
@if(is_object($piggyBank->targetdate))
|
|
||||||
{{$piggyBank->targetdate->format('jS F Y')}}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@if(!is_null($piggyBank->reminder))
|
|
||||||
<tr>
|
|
||||||
<td>Reminder</td>
|
|
||||||
<td>
|
|
||||||
@if(intval($piggyBank->remind_me) == 0)
|
|
||||||
<em>(no reminder)</em>
|
|
||||||
@else
|
|
||||||
Every
|
|
||||||
@if($piggyBank->reminder_skip != 0)
|
|
||||||
{{$piggyBank->reminder_skip}}
|
|
||||||
@endif
|
|
||||||
{{$piggyBank->reminder}}(s)
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@endif
|
|
||||||
<tr>
|
|
||||||
<td>Reminders left</td>
|
|
||||||
<td>(in progress...)</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Expected amount per reminder</td>
|
|
||||||
<td>(in progress...)</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw fa-clock-o"></i> Table
|
|
||||||
</div>
|
|
||||||
@include('list.piggy-bank-events')
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
@stop
|
|
||||||
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
var currencyCode = '{{Amount::getCurrencyCode()}}';
|
|
||||||
var piggyBankID = {{{$piggyBank->id}}};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- load the libraries and scripts necessary for Google Charts: -->
|
|
||||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.options.js"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.js"></script>
|
|
||||||
<script type="text/javascript" src="js/piggy-banks.js"></script>
|
|
||||||
@stop
|
|
@ -1,103 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
<!-- form -->
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'preferences']) !!}
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-credit-card fa-fw"></i> Home screen accounts
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p class="text-info">Which accounts should be displayed on the home page?</p>
|
|
||||||
@foreach($accounts as $account)
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="col-sm-10">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
|
||||||
@if(in_array($account->id,$frontPageAccounts->data) || count($frontPageAccounts->data) == 0)
|
|
||||||
<input type="checkbox" name="frontPageAccounts[]" value="{{$account->id}}" checked> {{{$account->name}}}
|
|
||||||
@else
|
|
||||||
<input type="checkbox" name="frontPageAccounts[]" value="{{$account->id}}"> {{{$account->name}}}
|
|
||||||
@endif
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-credit-card fa-fw"></i> Budget settings
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p class="text-info">
|
|
||||||
What's the maximum amount of money a budget envelope may contain?
|
|
||||||
</p>
|
|
||||||
{!! ExpandedForm::amount('budgetMaximum',$budgetMaximum,['label' => 'Budget maximum']) !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-clock-o fa-fw"></i> View range
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p class="text-info">Some charts are automatically grouped in periods. What period would you prefer?</p>
|
|
||||||
<div class="radio">
|
|
||||||
<label>
|
|
||||||
<input type="radio" name="viewRange" value="1D" @if($viewRange == '1D') checked @endif>
|
|
||||||
One day
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="radio">
|
|
||||||
<label>
|
|
||||||
<input type="radio" name="viewRange" value="1W" @if($viewRange == '1W') checked @endif>
|
|
||||||
One week
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="radio">
|
|
||||||
<label>
|
|
||||||
<input type="radio" name="viewRange" value="1M" @if($viewRange == '1M') checked @endif>
|
|
||||||
One month
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="radio">
|
|
||||||
<label>
|
|
||||||
<input type="radio" name="viewRange" value="3M" @if($viewRange == '3M') checked @endif>
|
|
||||||
Three months
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="radio">
|
|
||||||
<label>
|
|
||||||
<input type="radio" name="viewRange" value="6M" @if($viewRange == '6M') checked @endif>
|
|
||||||
Six months
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<button type="submit" class="btn btn-success btn-lg">Save settings</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- form close -->
|
|
||||||
{!! Form::close() !!}
|
|
||||||
|
|
||||||
@stop
|
|
@ -1,54 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Change your password
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
|
|
||||||
@if($errors->count() > 0)
|
|
||||||
<ul>
|
|
||||||
@foreach($errors->all() as $err)
|
|
||||||
<li class="text-danger">{{$err}}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
@endif
|
|
||||||
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'change-password']) !!}
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="inputOldPassword" class="col-sm-4 control-label">Old password</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input type="password" class="form-control" id="inputOldPassword" placeholder="Old password" name="current_password">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="inputNewPassword1" class="col-sm-4 control-label">New password</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input type="password" class="form-control" id="inputNewPassword1" placeholder="New password" name="new_password">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="inputNewPassword2" class="col-sm-4 control-label">New password (again)</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input type="password" class="form-control" id="inputNewPassword2" placeholder="New password (again)" name="new_password_confirmation">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="col-sm-offset-4 col-sm-10">
|
|
||||||
<button type="submit" class="btn btn-success">Change your password</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{!! Form::close() !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
@stop
|
|
@ -1,49 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-red">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Delete your account
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
|
|
||||||
<p class="text-danger">
|
|
||||||
Deleting your account will also delete any accounts, transactions, <em>anything</em>
|
|
||||||
you might have saved into Firefly III. It'll be GONE.
|
|
||||||
</p>
|
|
||||||
<p class="text-danger">
|
|
||||||
Enter your password to continue.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
@if($errors->count() > 0)
|
|
||||||
<ul>
|
|
||||||
@foreach($errors->all() as $err)
|
|
||||||
<li class="text-info">{{$err}}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
@endif
|
|
||||||
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'change-password']) !!}
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="password" class="col-sm-4 control-label">Password</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input type="password" class="form-control" id="password" placeholder="Password" name="password">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="col-sm-offset-4 col-sm-10">
|
|
||||||
<button type="submit" onclick="confirm('Are you sure? You cannot undo this.')" class="btn btn-danger">DELETE your account</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{!! Form::close() !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
@stop
|
|
@ -1,21 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<ul>
|
|
||||||
<li><a href="{{route('change-password')}}">Change your password</a></li>
|
|
||||||
<li><a class="text-danger" href="{{route('delete-account')}}">Delete account</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
@stop
|
|
@ -1,40 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<h3>Active reminders</h3>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@include('list.reminders',['reminders' => $active])
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<h3>Dismissed reminders</h3>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@include('list.reminders',['reminders' => $dismissed])
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<h3>Expired reminders</h3>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@include('list.reminders',['reminders' => $expired])
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<h3>Inactive reminders</h3>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@include('list.reminders',['reminders' => $inactive])
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@stop
|
|
@ -1,38 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $reminder) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<a href="{{route('reminders.show',$reminder->id)}}">
|
|
||||||
@if($reminder->notnow === true)
|
|
||||||
Dismissed reminder
|
|
||||||
@else
|
|
||||||
Reminder
|
|
||||||
@endif
|
|
||||||
for piggy bank "{{$reminder->remindersable->name}}"
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>
|
|
||||||
Active between {{$reminder->startdate->format('jS F Y')}}
|
|
||||||
and {{$reminder->enddate->format('jS F Y')}}.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
@if(isset($reminder->description))
|
|
||||||
<p>{!! $reminder->description !!}</p>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
<div class="panel-footer">
|
|
||||||
<div class="btn-group">
|
|
||||||
@if($reminder->active === true)
|
|
||||||
<a class="btn btn-warning" href="{{route('reminders.dismiss',$reminder->id)}}">Dismiss</a>
|
|
||||||
<a class="btn btn-success" href="{{route('reminders.act',$reminder->id)}}">Act</a>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
|
@ -1,170 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $date) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<a href="#" class="btn btn-default" id="includeShared" style="display:none;">
|
|
||||||
<i class="state-icon glyphicon glyphicon-unchecked"></i>
|
|
||||||
Include shared asset accounts</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw fa-credit-card"></i>
|
|
||||||
Accounts
|
|
||||||
</div>
|
|
||||||
<table class="table table-bordered table-striped">
|
|
||||||
<tr>
|
|
||||||
<th>Account</th>
|
|
||||||
<th>Start of month</th>
|
|
||||||
<th>Current balance</th>
|
|
||||||
<th>Spent</th>
|
|
||||||
<th>Earned</th>
|
|
||||||
</tr>
|
|
||||||
@foreach($accounts as $account)
|
|
||||||
<tr>
|
|
||||||
<td><a href="{{route('accounts.show',$account->id)}}">{{{$account->name}}}</a></td>
|
|
||||||
<td>{!! Amount::format($account->startBalance) !!}</td>
|
|
||||||
<td>{!! Amount::format($account->endBalance) !!}</td>
|
|
||||||
<td>
|
|
||||||
@if($account->startBalance - $account->endBalance >= 0)
|
|
||||||
{!! Amount::format($account->startBalance - $account->endBalance) !!}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@if($account->startBalance - $account->endBalance < 0)
|
|
||||||
{!! Amount::format(($account->startBalance - $account->endBalance)*-1) !!}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-tasks fa-fw"></i>
|
|
||||||
Budgets
|
|
||||||
</div>
|
|
||||||
<table class="table table-bordered table-striped">
|
|
||||||
<tr>
|
|
||||||
<th colspan="2">Budgets</th>
|
|
||||||
<?php
|
|
||||||
$accountSums = [];
|
|
||||||
?>
|
|
||||||
@foreach($accounts as $account)
|
|
||||||
@if($account->hide === false)
|
|
||||||
<th><a href="{{route('accounts.show',$account->id)}}">{{{$account->name}}}</a></th>
|
|
||||||
@endif
|
|
||||||
<?php
|
|
||||||
$accountSums[$account->id] = 0;
|
|
||||||
?>
|
|
||||||
|
|
||||||
@endforeach
|
|
||||||
<th colspan="2">
|
|
||||||
Left in budget
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
@foreach($budgets as $id => $budget)
|
|
||||||
<tr>
|
|
||||||
<td>{{{$budget['name']}}}</td>
|
|
||||||
<td>{!! Amount::format($budget['queryAmount']) !!}</td>
|
|
||||||
<?php $spent = 0;?>
|
|
||||||
@foreach($accounts as $account)
|
|
||||||
@if($account->hide === false)
|
|
||||||
@if(isset($account->budgetInformation[$id]))
|
|
||||||
<td>
|
|
||||||
@if($id == 0)
|
|
||||||
<a href="{{route('reports.no-budget',[$account, $year, $month])}}" class="openModal">
|
|
||||||
{!! Amount::format($account->budgetInformation[$id]['queryAmount']) !!}
|
|
||||||
</a>
|
|
||||||
@else
|
|
||||||
{!! Amount::format($account->budgetInformation[$id]['queryAmount']) !!}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<?php
|
|
||||||
$spent += floatval($account->budgetInformation[$id]['queryAmount']);
|
|
||||||
$accountSums[$account->id] += floatval($account->budgetInformation[$id]['queryAmount']);
|
|
||||||
?>
|
|
||||||
@else
|
|
||||||
<td>{!! Amount::format(0) !!}</td>
|
|
||||||
@endif
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
<td>{!! Amount::format($budget['queryAmount'] + $budget['spent']) !!}</td>
|
|
||||||
<td>{!! Amount::format($budget['queryAmount'] + $spent) !!}</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">Balanced by transfers</td>
|
|
||||||
@foreach($accounts as $account)
|
|
||||||
@if($account->hide === false)
|
|
||||||
<td>
|
|
||||||
<a href="{{route('reports.balanced-transfers',[$account, $year, $month])}}" class="openModal">{!! Amount::format($account->balancedAmount) !!}</a>
|
|
||||||
</td>
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
<td colspan="2"> </td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">Left unbalanced</td>
|
|
||||||
@foreach($accounts as $account)
|
|
||||||
<?php
|
|
||||||
$accountSums[$account->id] += $account->balancedAmount;
|
|
||||||
?>
|
|
||||||
@if($account->hide === false)
|
|
||||||
@if(isset($account->budgetInformation[0]))
|
|
||||||
<td>
|
|
||||||
@if($account->budgetInformation[0]['queryAmount'] + $account->balancedAmount != 0.0)
|
|
||||||
<a href="{{route('reports.left-unbalanced',[$account, $year, $month])}}" class="openModal">{!! Amount::format($account->budgetInformation[0]['queryAmount'] + $account->balancedAmount) !!}</a>
|
|
||||||
@else
|
|
||||||
{!! Amount::format($account->budgetInformation[0]['queryAmount'] + $account->balancedAmount) !!}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
@else
|
|
||||||
<td>{!! Amount::format(0) !!}</td>
|
|
||||||
@endif
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
<td colspan="2"> </td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2"><em>Sum</em></td>
|
|
||||||
@foreach($accounts as $account)
|
|
||||||
@if($account->hide === false)
|
|
||||||
<td>{!! Amount::format($accountSums[$account->id]) !!}</td>
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
<td colspan="2"> </td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">Expected balance</td>
|
|
||||||
@foreach($accounts as $account)
|
|
||||||
@if($account->hide === false)
|
|
||||||
<td>{!! Amount::format($account->startBalance + $accountSums[$account->id]) !!}</td>
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
<td colspan="2"> </td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- modal to show various budget information -->
|
|
||||||
<div class="modal fade" id="budgetModal">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript" src="js/reports.js"></script>
|
|
||||||
@stop
|
|
@ -1,73 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<a href="#" class="btn btn-default" id="includeShared" style="display:none;">
|
|
||||||
<i class="state-icon glyphicon glyphicon-unchecked"></i>
|
|
||||||
Include shared asset accounts</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-4 col-md-4 col-sm-4">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
Yearly reports
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<ul>
|
|
||||||
@foreach($years as $year)
|
|
||||||
<li><a href="{{route('reports.year',$year)}}">{{$year}}</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">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
Monthly reports
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
|
|
||||||
@foreach($months as $year => $entries)
|
|
||||||
<h5>{{$year}}</h5>
|
|
||||||
<ul>
|
|
||||||
@foreach($entries as $month)
|
|
||||||
<li><a href="{{route('reports.month',[$month['year'],$month['month']])}}">{{$month['formatted']}}</a></li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
@endforeach
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-lg-4 col-md-4 col-sm-4">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
Budget reports
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@foreach($months as $year => $entries)
|
|
||||||
<h5>{{$year}}</h5>
|
|
||||||
<ul>
|
|
||||||
@foreach($entries as $month)
|
|
||||||
<li><a href="{{route('reports.budget',[$month['year'],$month['month']])}}">{{$month['formatted']}}</a></li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript" src="js/reports.js"></script>
|
|
||||||
@stop
|
|
@ -1,14 +0,0 @@
|
|||||||
<div class="modal-dialog modal-lg">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
|
||||||
<h4 class="modal-title">No budget bla bla.</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
@include('list.journals-full',['sorting' => false])
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -1,269 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $date) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<a href="#" class="btn btn-default" id="includeShared" style="display:none;">
|
|
||||||
<i class="state-icon glyphicon glyphicon-unchecked"></i>
|
|
||||||
Include shared asset accounts</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-5 col-md-5 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-long-arrow-right fa-fw"></i>
|
|
||||||
Income
|
|
||||||
</div>
|
|
||||||
<table class="table table-bordered">
|
|
||||||
<?php $tableSum = 0;?>
|
|
||||||
@foreach($income as $entry)
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<a href="{{route('transactions.show',$entry->id)}}" title="{{{$entry->description}}}">{{{$entry->description}}}</a>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<?php $tableSum += floatval($entry->queryAmount);?>
|
|
||||||
@if($entry->type == 'Withdrawal')
|
|
||||||
<span class="text-danger">{{Amount::format($entry->queryAmount,false)}}</span>
|
|
||||||
@endif
|
|
||||||
@if($entry->type == 'Deposit')
|
|
||||||
<span class="text-success">{{Amount::format($entry->queryAmount,false)}}</span>
|
|
||||||
@endif
|
|
||||||
@if($entry->type == 'Transfer')
|
|
||||||
<span class="text-info">{{Amount::format($entry->queryAmount,false)}}</span>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{$entry->date->format('j F Y')}}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a href="{{route('accounts.show',$entry->account_id)}}">{{{$entry->name}}}</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
@if(isset($displaySum) && $displaySum === true)
|
|
||||||
<tr>
|
|
||||||
<td><em>Sum</em></td>
|
|
||||||
<td colspan="3">{!! Amount::format($tableSum) !!}</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
@endif
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-4 col-md-4 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-long-arrow-left fa-fw"></i>
|
|
||||||
Expenses (top 10)
|
|
||||||
</div>
|
|
||||||
<table class="table table-bordered">
|
|
||||||
<?php $sum = 0;?>
|
|
||||||
@foreach($expenses as $id => $expense)
|
|
||||||
<?php
|
|
||||||
$sum += floatval($expense['queryAmount']);
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
@if($id > 0)
|
|
||||||
<td><a href="{{route('accounts.show',$id)}}">{{{$expense['name']}}}</a></td>
|
|
||||||
@else
|
|
||||||
<td><em>{{{$expense['name']}}}</em></td>
|
|
||||||
@endif
|
|
||||||
<td>{!! Amount::format($expense['queryAmount']) !!}</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
<tr>
|
|
||||||
<td><em>Sum</em></td>
|
|
||||||
<td>{!! Amount::format($sum) !!}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-3 col-md-4 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-exchange fa-fw"></i>
|
|
||||||
Sums
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
$in = 0;
|
|
||||||
foreach($income as $entry) {
|
|
||||||
$in += floatval($entry->transactions[1]->amount);
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<table class="table table-bordered">
|
|
||||||
<tr>
|
|
||||||
<td>In</td>
|
|
||||||
<td>{!! Amount::format($in) !!}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Out</td>
|
|
||||||
<td>{!! Amount::format($sum) !!}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Difference</td>
|
|
||||||
<td>{!! Amount::format($in - $sum) !!}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-tasks fa-fw"></i>
|
|
||||||
Budgets
|
|
||||||
</div>
|
|
||||||
<table class="table table-bordered">
|
|
||||||
<tr>
|
|
||||||
<th>Budget</th>
|
|
||||||
<th>Envelope</th>
|
|
||||||
<th>Spent</th>
|
|
||||||
<th>Left</th>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$sumSpent = 0;
|
|
||||||
$sumEnvelope = 0;
|
|
||||||
$sumLeft = 0;
|
|
||||||
?>
|
|
||||||
@foreach($budgets as $id => $budget)
|
|
||||||
<?php
|
|
||||||
$sumSpent += $budget['spent'];
|
|
||||||
$sumEnvelope += $budget['queryAmount'];
|
|
||||||
$sumLeft += $budget['queryAmount'] + $budget['spent'];
|
|
||||||
?>
|
|
||||||
<!-- only display when relevant: -->
|
|
||||||
@if($budget['queryAmount'] != 0 || $budget['spent'] != 0)
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
@if($id > 0)
|
|
||||||
<a href="{{route('budgets.show',$id)}}">{{{$budget['name']}}}</a>
|
|
||||||
@else
|
|
||||||
<em>{{{$budget['name']}}}</em>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>{!! Amount::format($budget['queryAmount']) !!}</td>
|
|
||||||
<td>{!! Amount::format($budget['spent'],false) !!}</td>
|
|
||||||
<td>{!! Amount::format($budget['queryAmount'] + $budget['spent']) !!}</td>
|
|
||||||
</tr>
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
<tr>
|
|
||||||
<td><em>Sum</em></td>
|
|
||||||
<td>{!! Amount::format($sumEnvelope) !!}</td>
|
|
||||||
<td>{!! Amount::format($sumSpent) !!}</td>
|
|
||||||
<td>{!! Amount::format($sumLeft) !!}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bar-chart fa-fw"></i>
|
|
||||||
Categories
|
|
||||||
</div>
|
|
||||||
<table class="table table-bordered">
|
|
||||||
<tr>
|
|
||||||
<th>Category</th>
|
|
||||||
<th>Spent</th>
|
|
||||||
</tr>
|
|
||||||
<?php $sum = 0;?>
|
|
||||||
@foreach($categories as $id => $category)
|
|
||||||
<?php $sum += floatval($category['queryAmount']);?>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
@if($id > 0)
|
|
||||||
<a href="{{route('categories.show',$id)}}">{{{$category['name']}}}</a>
|
|
||||||
@else
|
|
||||||
<em>{{{$category['name']}}}</em>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>{!! Amount::format($category['queryAmount'],false) !!}</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
<tr>
|
|
||||||
<td><em>Sum</em></td>
|
|
||||||
<td>{!! Amount::format($sum) !!}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-credit-card fa-fw"></i>
|
|
||||||
Accounts
|
|
||||||
</div>
|
|
||||||
<table class="table table-bordered">
|
|
||||||
<?php
|
|
||||||
$sumStart = 0;
|
|
||||||
$sumEnd = 0;
|
|
||||||
$sumDiff = 0;
|
|
||||||
?>
|
|
||||||
@foreach($accounts as $id => $account)
|
|
||||||
<?php
|
|
||||||
$sumStart += $account['startBalance'];
|
|
||||||
$sumEnd += $account['endBalance'];
|
|
||||||
$sumDiff += $account['difference'];
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td><a href="{{route('accounts.show',$id)}}">{{{$account['name']}}}</a></td>
|
|
||||||
<td>{!! Amount::format($account['startBalance']) !!}</td>
|
|
||||||
<td>{!! Amount::format($account['endBalance']) !!}</td>
|
|
||||||
<td>{!! Amount::format($account['difference']) !!}</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
<tr>
|
|
||||||
<td><em>Sum</em></td>
|
|
||||||
<td>{!! Amount::format($sumStart) !!}</td>
|
|
||||||
<td>{!! Amount::format($sumEnd) !!}</td>
|
|
||||||
<td>{!! Amount::format($sumDiff) !!}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-sort-amount-asc fa-fw"></i>
|
|
||||||
Piggy banks
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">Body</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-calendar-o fa-fw"></i>
|
|
||||||
Bills
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">Body</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw fa-folder-o"></i>
|
|
||||||
Outside of budgets
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">Body</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript" src="js/reports.js"></script>
|
|
||||||
@stop
|
|
@ -1,196 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $date) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<a href="#" class="btn btn-default" id="includeShared" style="display:none;">
|
|
||||||
<i class="state-icon glyphicon glyphicon-unchecked"></i>
|
|
||||||
Include shared asset accounts</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-10 col-md-8 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-line-chart"></i>
|
|
||||||
Income vs. expenses
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div id="income-expenses-chart"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-2 col-md-4 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-calendar"></i>
|
|
||||||
Income vs. expenses
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div id="income-expenses-sum-chart"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-credit-card fa-fw"></i>
|
|
||||||
Account balance
|
|
||||||
</div>
|
|
||||||
<table class="table table-bordered table-striped">
|
|
||||||
<tr>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>Balance at start of year</th>
|
|
||||||
<th>Balance at end of year</th>
|
|
||||||
<th>Difference</th>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$start = 0;
|
|
||||||
$end = 0;
|
|
||||||
$diff = 0;
|
|
||||||
?>
|
|
||||||
@foreach($balances as $balance)
|
|
||||||
<?php
|
|
||||||
$start += $balance['start'];
|
|
||||||
$end += $balance['end'];
|
|
||||||
$diff += ($balance['end']-$balance['start']);
|
|
||||||
?>
|
|
||||||
@if($balance['hide'] === false)
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<a href="{{route('accounts.show',$balance['account']->id)}}">{{{$balance['account']->name}}}</a>
|
|
||||||
@if($balance['shared'])
|
|
||||||
<small><em>shared</em></small>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>{!! Amount::format($balance['start']) !!}</td>
|
|
||||||
<td>{!! Amount::format($balance['end']) !!}</td>
|
|
||||||
<td>{!! Amount::format($balance['end']-$balance['start']) !!}</td>
|
|
||||||
</tr>
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
<tr>
|
|
||||||
<td><em>Sum of sums</em></td>
|
|
||||||
<td>{!! Amount::format($start) !!}</td>
|
|
||||||
<td>{!! Amount::format($end) !!}</td>
|
|
||||||
<td>{!! Amount::format($diff) !!}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw fa-exchange" title="Transfer"></i>
|
|
||||||
Income vs. expense
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
$incomeSum = 0;
|
|
||||||
$expenseSum = 0;
|
|
||||||
foreach($groupedIncomes as $income) {
|
|
||||||
$incomeSum += floatval($income->queryAmount);
|
|
||||||
}
|
|
||||||
foreach($groupedExpenses as $exp) {
|
|
||||||
$expenseSum += floatval($exp['queryAmount']);
|
|
||||||
}
|
|
||||||
$incomeSum = floatval($incomeSum*-1);
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<table class="table table-bordered table-striped">
|
|
||||||
<tr>
|
|
||||||
<td>In</td>
|
|
||||||
<td>{!! Amount::format($incomeSum) !!}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Out</td>
|
|
||||||
<td>{!! Amount::format($expenseSum*-1) !!}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Difference</td>
|
|
||||||
<td>{!! Amount::format($incomeSum - $expenseSum) !!}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-3 col-md-3 col-sm-3">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-long-arrow-right fa-fw"></i>
|
|
||||||
Income
|
|
||||||
</div>
|
|
||||||
<table class="table">
|
|
||||||
<?php $sum = 0;?>
|
|
||||||
@foreach($groupedIncomes as $income)
|
|
||||||
<?php
|
|
||||||
$sum += floatval($income->queryAmount)*-1;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td><a href="{{route('accounts.show',$income->account_id)}}">{{{$income->name}}}</a></td>
|
|
||||||
<td>{!! Amount::format(floatval($income->queryAmount)*-1) !!}</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
<tr>
|
|
||||||
<td><em>Sum</em></td>
|
|
||||||
<td>{!! Amount::format($sum) !!}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-3 col-md-3 col-sm-3">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-long-arrow-left fa-fw"></i>
|
|
||||||
Expenses
|
|
||||||
</div>
|
|
||||||
<table class="table">
|
|
||||||
<?php $sum = 0;?>
|
|
||||||
@foreach($groupedExpenses as $expense)
|
|
||||||
<tr>
|
|
||||||
<td><a href="{{route('accounts.show',$expense['id'])}}">{{{$expense['name']}}}</a></td>
|
|
||||||
<td>{!! Amount::format(floatval($expense['queryAmount'])*-1) !!}</td>
|
|
||||||
</tr>
|
|
||||||
<?php $sum += floatval($expense['queryAmount'])*-1;?>
|
|
||||||
@endforeach
|
|
||||||
<tr>
|
|
||||||
<td><em>Sum</em></td>
|
|
||||||
<td>{!! Amount::format($sum) !!}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-tasks fa-fw"></i>
|
|
||||||
Budgets
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div id="budgets"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<!-- load the libraries and scripts necessary for Google Charts: -->
|
|
||||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.options.js"></script>
|
|
||||||
<script type="text/javascript" src="js/gcharts.js"></script>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
var year = '{{$year}}';
|
|
||||||
var currencyCode = '{{Amount::getCurrencyCode()}}';
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/javascript" src="js/reports.js"></script>
|
|
||||||
|
|
||||||
@stop
|
|
@ -1,106 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $query) !!}
|
|
||||||
@if(!is_null($query))
|
|
||||||
<div class="row">
|
|
||||||
@if(isset($result['transactions']) && $result['transactions']->count() > 0)
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-repeat"></i> Transactions ({{$result['transactions']->count()}})
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@include('list.journals-tiny',['transactions' => $result['transactions']])
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@if(isset($result['categories']) && $result['categories']->count() > 0)
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bar-chart"></i> Categories ({{$result['categories']->count()}})
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div class="list-group">
|
|
||||||
@foreach($result['categories'] as $category)
|
|
||||||
<a class="list-group-item" title="{{$category->name}}" href="{{route('categories.show',$category->id)}}">
|
|
||||||
{{{$category->name}}}
|
|
||||||
</a>
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@if(isset($result['tags']) && $result['tags']->count() > 0)
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bar-chart"></i> Tags ({{$result['tags']->count()}})
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>Bla bla</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@if(isset($result['accounts']) && $result['accounts']->count() > 0)
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-credit-card"></i> Accounts ({{$result['accounts']->count()}})
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div class="list-group">
|
|
||||||
@foreach($result['accounts'] as $account)
|
|
||||||
<a class="list-group-item" title="{{$account->name}}" href="{{route('accounts.show',$account->id)}}">
|
|
||||||
{{{$account->name}}}
|
|
||||||
</a>
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@if(isset($result['budgets']) && $result['budgets']->count() > 0)
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-tasks"></i> Budgets ({{$result['budgets']->count()}})
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div class="list-group">
|
|
||||||
@foreach($result['budgets'] as $budget)
|
|
||||||
<a class="list-group-item" title="{{$budget->name}}" href="{{route('budgets.show',$budget->id)}}">
|
|
||||||
{{{$budget->name}}}
|
|
||||||
</a>
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
<!--
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-search-plus"></i> Other results
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>Bla bla</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
-->
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
var query = '{{{$query}}}';
|
|
||||||
</script>
|
|
||||||
@stop
|
|
@ -1,85 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'store','route' => 'tags.store']) !!}
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-5 col-md-5 col-sm-12">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-tag"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::text('tag') !!}
|
|
||||||
{!! ExpandedForm::multiRadio('tagMode',$tagOptions) !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-lg-7 col-md-7 col-sm-12">
|
|
||||||
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::date('date') !!}
|
|
||||||
{!! ExpandedForm::textarea('description') !!}
|
|
||||||
{!! ExpandedForm::location('tagPosition') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('create','tag') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
<i class="fa fa-plus-circle"></i> Store new tag
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
@if(Input::old('latitude'))
|
|
||||||
var latitude = "{{Input::old('latitude')}}";
|
|
||||||
@else
|
|
||||||
var latitude = "52.3167";
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if(Input::old('latitude') && Input::old('longitude') && Input::old('zoomLevel'))
|
|
||||||
var doPlaceMarker = true;
|
|
||||||
@else
|
|
||||||
var doPlaceMarker = false;
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if(Input::old('longitude'))
|
|
||||||
var longitude = "{{Input::old('longitude')}}";
|
|
||||||
@else
|
|
||||||
var longitude = "5.5500";
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if(Input::old('zoomLevel'))
|
|
||||||
var zoomLevel = {{intval(Input::old('zoomLevel'))}};
|
|
||||||
@else
|
|
||||||
var zoomLevel = 6;
|
|
||||||
@endif
|
|
||||||
|
|
||||||
</script>
|
|
||||||
<script src="https://maps.googleapis.com/maps/api/js?v=3"></script>
|
|
||||||
<script src="js/tags.js"></script>
|
|
||||||
@stop
|
|
@ -1,44 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $tag) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'destroy','url' => route('tags.destroy',$tag->id)]) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<div class="panel panel-red">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Delete tag "{{{$tag->tag}}}"
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>
|
|
||||||
Are you sure that you want to delete tag "{{{$tag->tag}}}"?
|
|
||||||
</p>
|
|
||||||
|
|
||||||
@if($tag->transactionjournals()->count() > 0)
|
|
||||||
<p class="text-info">
|
|
||||||
Tag "{{{$tag->name}}}" still has {{$tag->transactionjournals()->count()}} transaction(s) connected
|
|
||||||
to it. These will <strong>not</strong> be removed but will lose their connection to this tag.
|
|
||||||
</p>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-default btn-danger">Delete permanently</button>
|
|
||||||
<a href="{{URL::previous()}}" class="btn-default btn">Cancel</a >
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="col-sm-8">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
@stop
|
|
@ -1,87 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $tag) !!}
|
|
||||||
{!! Form::model($tag, ['class' => 'form-horizontal','id' => 'update','url' => route('tags.update',$tag->id)]) !!}
|
|
||||||
|
|
||||||
<input type="hidden" name="id" value="{{$tag->id}}" />
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-5 col-md-5 col-sm-12">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-tag"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::text('tag') !!}
|
|
||||||
{!! ExpandedForm::multiRadio('tagMode',$tagOptions) !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-lg-7 col-md-7 col-sm-12">
|
|
||||||
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::date('date') !!}
|
|
||||||
{!! ExpandedForm::textarea('description') !!}
|
|
||||||
{!! ExpandedForm::location('tagPosition') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('update','tag') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
<i class="fa fa-plus-circle"></i> Update tag
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
@if(Input::old('latitude'))
|
|
||||||
var latitude = "{{Input::old('latitude')}}";
|
|
||||||
@else
|
|
||||||
var latitude = "52.3167";
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if(Input::old('latitude') && Input::old('longitude') && Input::old('zoomLevel'))
|
|
||||||
var doPlaceMarker = true;
|
|
||||||
@else
|
|
||||||
var doPlaceMarker = false;
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if(Input::old('longitude'))
|
|
||||||
var longitude = "{{Input::old('longitude')}}";
|
|
||||||
@else
|
|
||||||
var longitude = "5.5500";
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if(Input::old('zoomLevel'))
|
|
||||||
var zoomLevel = {{intval(Input::old('zoomLevel'))}};
|
|
||||||
@else
|
|
||||||
var zoomLevel = 6;
|
|
||||||
@endif
|
|
||||||
|
|
||||||
</script>
|
|
||||||
<script src="https://maps.googleapis.com/maps/api/js?v=3"></script>
|
|
||||||
<script src="js/tags.js"></script>
|
|
||||||
@stop
|
|
@ -1,75 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading"><i class="fa fa-fw fa-tags"></i> Tags</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div id="tagHelp" class="collapse
|
|
||||||
@if($helpHidden === false)
|
|
||||||
in
|
|
||||||
@endif
|
|
||||||
">
|
|
||||||
<p>
|
|
||||||
Usually tags are singular words, designed to quickly band items together
|
|
||||||
using things like <span class="label label-info">expensive</span>,
|
|
||||||
<span class="label label-info">bill</span> or
|
|
||||||
<span class="label label-info">for-party</span>. In Firefly III, tags can have more properties
|
|
||||||
such as a date, description and location. This allows you to join transactions together in a more meaningful
|
|
||||||
way. For example, you could make a tag called <span class="label label-success">Christmas dinner with friends</span>
|
|
||||||
and add information about the restaurant. Such tags are "singular", you would only use them for a single occasion,
|
|
||||||
perhaps with multiple transactions.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Tags group transactions together, which makes it possible to store reimbursements
|
|
||||||
(in case you front money for others) and other "balancing acts" where expenses
|
|
||||||
are summed up (the payments on your new TV) or where expenses and deposits
|
|
||||||
are cancelling each other out (buying something with saved money). It's all up to you.
|
|
||||||
Using tags the old-fashioned way is of course always possible.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Create a tag to get started or enter tags when creating new transactions.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
<a data-toggle="collapse" id="tagHelpButton" href="#tagHelp" aria-expanded="false" aria-controls="tagHelp">
|
|
||||||
@if($helpHidden === false)
|
|
||||||
Hide help
|
|
||||||
@else
|
|
||||||
Show help
|
|
||||||
@endif
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<a href="{{route('tags.create')}}" title="New tag" class="btn btn-info"><i class="fa fa-fw fa-plus"></i> Create new tag</a>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
@if(count($tags) == 0)
|
|
||||||
<em>No tags</em>
|
|
||||||
@else
|
|
||||||
@foreach($tags as $tag)
|
|
||||||
|
|
||||||
<h4 style="display: inline;"><a class="label label-success" href="{{route('tags.show',$tag)}}">
|
|
||||||
@if($tag->tagMode == 'nothing')
|
|
||||||
<i class="fa fa-fw fa-tag"></i>
|
|
||||||
@endif
|
|
||||||
@if($tag->tagMode == 'balancingAct')
|
|
||||||
<i class="fa fa-fw fa-refresh"></i>
|
|
||||||
@endif
|
|
||||||
@if($tag->tagMode == 'advancePayment')
|
|
||||||
<i class="fa fa-fw fa-sort-numeric-desc"></i>
|
|
||||||
@endif
|
|
||||||
{{$tag->tag}}</a>
|
|
||||||
</h4>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endsection
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript" src="js/tags.js"></script>
|
|
||||||
@endsection
|
|
@ -1,77 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $tag) !!}
|
|
||||||
<!-- show this block only when the tag has some meta-data -->
|
|
||||||
@if($tag->latitude && $tag->longitude && $tag->zoomLevel)
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-fw {{$subTitleIcon}} fa-fw"></i> {{{$tag->tag}}}
|
|
||||||
@if($tag->date)
|
|
||||||
on {{$tag->date->format('jS F Y')}}
|
|
||||||
@endif
|
|
||||||
<!-- ACTIONS MENU -->
|
|
||||||
<div class="pull-right">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
|
|
||||||
Actions
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu pull-right" role="menu">
|
|
||||||
<li><a href="{{route('tags.edit',$tag->id)}}"><i class="fa fa-pencil fa-fw"></i> Edit tag</a></li>
|
|
||||||
<li><a href="{{route('tags.delete',$tag->id)}}"><i class="fa fa-trash fa-fw"></i> Delete tag</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@if($tag->description)
|
|
||||||
<p class="text-info">
|
|
||||||
{{$tag->description}}
|
|
||||||
</p>
|
|
||||||
@endif
|
|
||||||
@if($tag->latitude && $tag->longitude && $tag->zoomLevel)
|
|
||||||
<p>
|
|
||||||
<img src="https://maps.googleapis.com/maps/api/staticmap?center={{$tag->latitude}},{{$tag->longitude}}&zoom={{$tag->zoomLevel}}&size=600x300">
|
|
||||||
</p>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
<!-- if no such thing, show another block maybe? -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-612 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-repeat fa-fw"></i> Transactions
|
|
||||||
<!-- here is the edit menu when there is no meta-data -->
|
|
||||||
@if(!($tag->latitude && $tag->longitude && $tag->zoomLevel))
|
|
||||||
<!-- ACTIONS MENU -->
|
|
||||||
<div class="pull-right">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
|
|
||||||
Actions
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu pull-right" role="menu">
|
|
||||||
<li><a href="{{route('tags.edit',$tag->id)}}"><i class="fa fa-pencil fa-fw"></i> Edit tag</a></li>
|
|
||||||
<li><a href="{{route('tags.delete',$tag->id)}}"><i class="fa fa-trash fa-fw"></i> Delete tag</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
@include('list.journals-full',['journals' => $tag->transactionjournals])
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
var tagID = {{{$tag->id}}};
|
|
||||||
</script>
|
|
||||||
@stop
|
|
@ -1,109 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $what) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'store','url' => route('transactions.store',$what)]) !!}
|
|
||||||
{!! Form::hidden('reminder_id',Input::get('reminder_id')) !!}
|
|
||||||
{!! Form::hidden('what',$what) !!}
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<!-- panel for mandatory fields -->
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-exclamation-circle"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<!-- DESCRIPTION ALWAYS AVAILABLE -->
|
|
||||||
{!! ExpandedForm::text('description') !!}
|
|
||||||
@if($what == 'deposit' || $what == 'withdrawal')
|
|
||||||
{!! ExpandedForm::select('account_id',$accounts) !!}
|
|
||||||
@endif
|
|
||||||
|
|
||||||
|
|
||||||
<!-- SHOW EXPENSE ACCOUNT ONLY FOR WITHDRAWALS -->
|
|
||||||
@if($what == 'withdrawal')
|
|
||||||
{!! ExpandedForm::text('expense_account') !!}
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<!-- SHOW REVENUE ACCOUNT ONLY FOR DEPOSITS -->
|
|
||||||
@if($what == 'deposit')
|
|
||||||
{!! ExpandedForm::text('revenue_account') !!}
|
|
||||||
@endif
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ONLY SHOW FROM/TO ACCOUNT WHEN CREATING TRANSFER -->
|
|
||||||
@if($what == 'transfer')
|
|
||||||
{!! ExpandedForm::select('account_from_id',$accounts) !!}
|
|
||||||
{!! ExpandedForm::select('account_to_id',$accounts) !!}
|
|
||||||
@endif
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ALWAYS SHOW AMOUNT -->
|
|
||||||
{!! ExpandedForm::amount('amount') !!}
|
|
||||||
|
|
||||||
<!-- ALWAYS SHOW DATE -->
|
|
||||||
{!! ExpandedForm::date('date', date('Y-m-d')) !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<!-- panel for optional fields -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<!-- BUDGET ONLY WHEN CREATING A WITHDRAWAL -->
|
|
||||||
@if($what == 'withdrawal')
|
|
||||||
{!! ExpandedForm::select('budget_id',$budgets,0) !!}
|
|
||||||
@endif
|
|
||||||
<!-- CATEGORY ALWAYS -->
|
|
||||||
{!! ExpandedForm::text('category') !!}
|
|
||||||
|
|
||||||
<!-- TAGS -->
|
|
||||||
{!! ExpandedForm::text('tags') !!}
|
|
||||||
|
|
||||||
|
|
||||||
<!-- RELATE THIS TRANSFER TO A PIGGY BANK -->
|
|
||||||
@if($what == 'transfer' && count($piggies) > 0)
|
|
||||||
{!! ExpandedForm::select('piggy_bank_id',$piggies) !!}
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('create','transaction') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
<i class="fa fa-plus-circle"></i> Store new {{{$what}}}
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
var what = "{{$what}}";
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript" src="js/bootstrap3-typeahead.min.js"></script>
|
|
||||||
<script type="text/javascript" src="js/bootstrap-tagsinput.min.js"></script>
|
|
||||||
<script type="text/javascript" src="js/transactions.js"></script>
|
|
||||||
@stop
|
|
||||||
|
|
||||||
@section('styles')
|
|
||||||
<link href="css/bootstrap-tagsinput.css" type="text/css" rel="stylesheet" media="all">
|
|
||||||
@stop
|
|
@ -1,43 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $journal) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'destroy','url' => route('transactions.destroy',$journal->id)]) !!}
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<!-- panel for mandatory fields -->
|
|
||||||
<div class="panel panel-danger">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-exclamation-circle"></i> Destroy "{{{$journal->description}}}"
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>
|
|
||||||
Deleting stuff from Firefly is <em>permanent</em>. This action will remove the transaction and all
|
|
||||||
associated data.
|
|
||||||
</p>
|
|
||||||
<p class="text-success">
|
|
||||||
This action will not destroy categories, piggy banks, accounts, etc.
|
|
||||||
</p>
|
|
||||||
<p class="text-danger">
|
|
||||||
Are you sure?
|
|
||||||
</p>
|
|
||||||
<div class="btn-group">
|
|
||||||
<input type="submit" name="submit" value="Delete transaction" class="btn btn-danger" />
|
|
||||||
@if($journal->transactiontype->type == 'Withdrawal')
|
|
||||||
<a href="{{route('transactions.index','withdrawal')}}" class="btn-default btn">Cancel</a>
|
|
||||||
@endif
|
|
||||||
@if($journal->transactiontype->type == 'Deposit')
|
|
||||||
<a href="{{route('transactions.index','deposit')}}" class="btn-default btn">Cancel</a>
|
|
||||||
@endif
|
|
||||||
@if($journal->transactiontype->type == 'Transfer')
|
|
||||||
<a href="{{route('transactions.index','transfers')}}" class="btn-default btn">Cancel</a>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!! Form::close() !!}
|
|
||||||
|
|
||||||
@stop
|
|
@ -1,108 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $journal) !!}
|
|
||||||
{!! Form::open(['class' => 'form-horizontal','id' => 'update','url' => route('transactions.update',$journal->id)]) !!}
|
|
||||||
|
|
||||||
<input type="hidden" name="id" value="{{$journal->id}}" />
|
|
||||||
<input type="hidden" name="what" value="{{$what}}" />
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<!-- panel for mandatory fields -->
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-exclamation-circle"></i> Mandatory fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<!-- ALWAYS AVAILABLE -->
|
|
||||||
{!! ExpandedForm::text('description',$journal->description) !!}
|
|
||||||
|
|
||||||
<!-- SHOW ACCOUNT (FROM) ONLY FOR WITHDRAWALS AND DEPOSITS -->
|
|
||||||
@if($what == 'deposit' || $what == 'withdrawal')
|
|
||||||
{!! ExpandedForm::select('account_id',$accounts,$data['account_id']) !!}
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<!-- SHOW EXPENSE ACCOUNT ONLY FOR WITHDRAWALS -->
|
|
||||||
@if($what == 'withdrawal')
|
|
||||||
{!! ExpandedForm::text('expense_account',$data['expense_account']) !!}
|
|
||||||
@endif
|
|
||||||
<!-- SHOW REVENUE ACCOUNT ONLY FOR DEPOSITS -->
|
|
||||||
@if($what == 'deposit')
|
|
||||||
{!! ExpandedForm::text('revenue_account',$data['revenue_account']) !!}
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<!-- ONLY SHOW FROM/TO ACCOUNT WHEN CREATING TRANSFER -->
|
|
||||||
@if($what == 'transfer')
|
|
||||||
{!! ExpandedForm::select('account_from_id',$accounts,$data['account_from_id']) !!}
|
|
||||||
{!! ExpandedForm::select('account_to_id',$accounts,$data['account_to_id']) !!}
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<!-- ALWAYS SHOW AMOUNT -->
|
|
||||||
{!! ExpandedForm::amount('amount',$data['amount'],['currency' => $journal->transactionCurrency]) !!}
|
|
||||||
|
|
||||||
<!-- ALWAYS SHOW DATE -->
|
|
||||||
{!! ExpandedForm::date('date',$data['date']) !!}
|
|
||||||
</div>
|
|
||||||
</div> <!-- close panel -->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
|
||||||
<!-- panel for optional fields -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<!-- BUDGET ONLY WHEN CREATING A WITHDRAWAL -->
|
|
||||||
@if($what == 'withdrawal')
|
|
||||||
{!! ExpandedForm::select('budget_id',$budgets,$data['budget_id']) !!}
|
|
||||||
@endif
|
|
||||||
<!-- CATEGORY ALWAYS -->
|
|
||||||
{!! ExpandedForm::text('category',$data['category']) !!}
|
|
||||||
|
|
||||||
<!-- TAGS -->
|
|
||||||
{!! ExpandedForm::text('tags') !!}
|
|
||||||
|
|
||||||
<!-- RELATE THIS TRANSFER TO A PIGGY BANK -->
|
|
||||||
@if($what == 'transfer' && count($piggies) > 0)
|
|
||||||
{!! ExpandedForm::select('piggy_bank_id',$piggies,$data['piggy_bank_id']) !!}
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div><!-- end of panel for options-->
|
|
||||||
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-bolt"></i> Options
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{!! ExpandedForm::optionsList('update','transaction') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
||||||
<p>
|
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
|
||||||
<i class="fa fa-pencil"></i> Update transaction
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{!! Form::close() !!}
|
|
||||||
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
var what = "{{$what}}";
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript" src="js/bootstrap3-typeahead.min.js"></script>
|
|
||||||
<script type="text/javascript" src="js/bootstrap-tagsinput.min.js"></script>
|
|
||||||
<script type="text/javascript" src="js/transactions.js"></script>
|
|
||||||
@stop
|
|
||||||
@section('styles')
|
|
||||||
<link href="css/bootstrap-tagsinput.css" type="text/css" rel="stylesheet" media="all">
|
|
||||||
@stop
|
|
@ -1,21 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $what) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-sm-12 col-md-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa {{$subTitleIcon}}"></i> {{{$subTitle}}}
|
|
||||||
</div>
|
|
||||||
@include('list.journals-full',['sorting' => false])
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script src="js/jquery-ui.min.js" type="text/javascript"></script>
|
|
||||||
<script src="js/transactions.js" type="text/javascript"></script>
|
|
||||||
|
|
||||||
@stop
|
|
@ -1,133 +0,0 @@
|
|||||||
@extends('layouts.default')
|
|
||||||
@section('content')
|
|
||||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $journal) !!}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<i class="fa fa-info-circle fa-fw"></i>
|
|
||||||
Metadata
|
|
||||||
</div>
|
|
||||||
<table class="table table-striped table-bordered">
|
|
||||||
<tr>
|
|
||||||
<td>Date</td>
|
|
||||||
<td>{{{$journal->date->format('jS F Y')}}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Type</td>
|
|
||||||
<td>{{{$journal->transactiontype->type}}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Completed</td>
|
|
||||||
<td>
|
|
||||||
@if($journal->completed == 1)
|
|
||||||
<span class="text-success">Yes</span>
|
|
||||||
@else
|
|
||||||
<span class="text-danger">No</span>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@foreach($journal->budgets()->get() as $budget)
|
|
||||||
<tr>
|
|
||||||
<td>Budget</td>
|
|
||||||
<td><a href="{{route('budgets.show',$budget->id)}}">{{{$budget->name}}}</a></td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
@foreach($journal->categories()->get() as $category)
|
|
||||||
<tr>
|
|
||||||
<td>Category</td>
|
|
||||||
<td><a href="{{route('categories.show',$category->id)}}">{{{$category->name}}}</a></td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
@if($journal->tags()->count() > 0)
|
|
||||||
<tr>
|
|
||||||
<td>Tags</td>
|
|
||||||
<td>
|
|
||||||
@foreach($journal->tags as $tag)
|
|
||||||
|
|
||||||
<h4 style="display: inline;"><a class="label label-success" href="{{route('tags.show',$tag)}}">
|
|
||||||
@if($tag->tagMode == 'nothing')
|
|
||||||
<i class="fa fa-fw fa-tag"></i>
|
|
||||||
@endif
|
|
||||||
@if($tag->tagMode == 'balancingAct')
|
|
||||||
<i class="fa fa-fw fa-refresh"></i>
|
|
||||||
@endif
|
|
||||||
@if($tag->tagMode == 'advancePayment')
|
|
||||||
<i class="fa fa-fw fa-sort-numeric-desc"></i>
|
|
||||||
@endif
|
|
||||||
{{$tag->tag}}</a>
|
|
||||||
</h4>
|
|
||||||
@endforeach
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@endif
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<!-- events, if present -->
|
|
||||||
@if(count($journal->piggyBankEvents) > 0)
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Piggy banks
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
@include('list.piggy-bank-events',['events' => $journal->piggyBankEvents,'showPiggyBank' => true])
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
|
|
||||||
@foreach($journal->transactions as $t)
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
@if($t->account->accounttype->type == 'Asset account')
|
|
||||||
<i class="fa fa-money fa-fw"></i>
|
|
||||||
@endif
|
|
||||||
@if($t->account->accounttype->type == 'Default account')
|
|
||||||
<i class="fa fa-money fa-fw"></i>
|
|
||||||
@endif
|
|
||||||
@if($t->account->accounttype->type == 'Expense account')
|
|
||||||
<i class="fa fa-shopping-cart fa-fw"></i>
|
|
||||||
@endif
|
|
||||||
@if($t->account->accounttype->type == 'Beneficiary account')
|
|
||||||
<i class="fa fa-shopping-cart fa-fw"></i>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if($t->account->accounttype->type == 'Revenue account')
|
|
||||||
<i class="fa fa-download fa-fw"></i>
|
|
||||||
@endif
|
|
||||||
<a href="{{route('accounts.show',$t->account->id)}}">{{{$t->account->name}}}</a><br /><small>{{{$t->account->accounttype->description}}}</small>
|
|
||||||
</div>
|
|
||||||
<table class="table table-striped table-bordered">
|
|
||||||
<tr>
|
|
||||||
<td>Amount</td>
|
|
||||||
<td>{!! Amount::formatTransaction($t) !!}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>New balance</td>
|
|
||||||
<td>{!! Amount::format($t->before) !!} → {!! Amount::format($t->after) !!}</td>
|
|
||||||
</tr>
|
|
||||||
@if(!is_null($t->description))
|
|
||||||
<tr>
|
|
||||||
<td>Description</td>
|
|
||||||
<td>{{{$t->description}}}</td>
|
|
||||||
</tr>
|
|
||||||
@endif
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
||||||
<div class="btn-group">
|
|
||||||
<a class="btn btn-default" href="{{route('transactions.edit',$journal->id)}}"><i class="fa fa-fw fa-pencil"></i> Edit</a> <a href="{{route('transactions.delete',$journal->id)}}" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span> Delete</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@stop
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript" src="js/transactions.js"></script>
|
|
||||||
@stop
|
|
0
resources/views/vendor/.gitkeep
vendored
0
resources/views/vendor/.gitkeep
vendored
@ -1,46 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<link href='//fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
color: #B0BEC5;
|
|
||||||
display: table;
|
|
||||||
font-weight: 100;
|
|
||||||
font-family: 'Lato';
|
|
||||||
}
|
|
||||||
|
|
||||||
.container {
|
|
||||||
text-align: center;
|
|
||||||
display: table-cell;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
text-align: center;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
font-size: 96px;
|
|
||||||
margin-bottom: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.quote {
|
|
||||||
font-size: 24px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
<div class="content">
|
|
||||||
<div class="title">Laravel 5</div>
|
|
||||||
<div class="quote">{{ Inspiring::quote() }}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue
Block a user