2014-06-30 03:47:14 -05:00
|
|
|
@extends('layouts.default')
|
|
|
|
@section('content')
|
2014-11-28 07:12:16 -06:00
|
|
|
{{ Breadcrumbs::renderIfExists() }}
|
2014-07-03 14:31:32 -05:00
|
|
|
@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>
|
2014-07-23 23:47:28 -05:00
|
|
|
|
2014-07-03 14:31:32 -05:00
|
|
|
<p>
|
2014-11-11 14:09:56 -06:00
|
|
|
Create a new asset account to get started.
|
2014-07-03 14:31:32 -05:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
2014-10-13 10:54:20 -05:00
|
|
|
<h2><a href="{{route('accounts.create','asset')}}">Start from scratch</a></h2>
|
2014-07-03 14:31:32 -05:00
|
|
|
</div>
|
2014-07-23 23:47:28 -05:00
|
|
|
@else
|
2014-07-08 00:51:25 -05:00
|
|
|
|
|
|
|
|
2014-10-13 10:54:20 -05:00
|
|
|
|
2014-10-28 10:29:31 -05:00
|
|
|
<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>
|
2014-09-10 09:15:28 -05:00
|
|
|
</div>
|
2014-10-28 10:29:31 -05:00
|
|
|
<div class="panel-body">
|
|
|
|
<div id="accounts-chart"></div>
|
2014-09-10 13:54:01 -05:00
|
|
|
</div>
|
2014-10-28 10:29:31 -05:00
|
|
|
</div>
|
|
|
|
<!-- BUDGETS -->
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2014-11-04 13:37:00 -06:00
|
|
|
<i class="fa fa-tasks fa-fw"></i> <a href="{{route('budgets.index')}}">Budgets and spending</a>
|
2014-07-25 01:11:07 -05:00
|
|
|
</div>
|
2014-10-28 10:29:31 -05:00
|
|
|
<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>
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<i class="fa fa-line-chart"></i> Savings
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
(todo)
|
2014-10-13 10:54:20 -05:00
|
|
|
</div>
|
2014-10-28 10:29:31 -05:00
|
|
|
</div>
|
2014-07-25 01:11:07 -05:00
|
|
|
|
2014-07-20 11:24:27 -05:00
|
|
|
|
|
|
|
|
2014-10-28 10:29:31 -05:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-4 col-md-6 col-sm-12">
|
|
|
|
<!-- time based navigation -->
|
|
|
|
@include('partials.date_nav')
|
|
|
|
|
|
|
|
<!-- REMINDERS -->
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2014-12-29 13:39:27 -06:00
|
|
|
<i class="fa fa-calendar-o"></i> Bills
|
2014-10-13 10:54:20 -05:00
|
|
|
</div>
|
2014-10-28 10:29:31 -05:00
|
|
|
<div class="panel-body">
|
2014-12-29 13:36:56 -06:00
|
|
|
<div id="bills-chart"></div>
|
2014-10-28 10:29:31 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-10-13 10:54:20 -05:00
|
|
|
|
2014-10-28 10:29:31 -05:00
|
|
|
<!-- 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>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 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-arrows-h fa-fw"></i> New transfer</a></li>
|
|
|
|
</ul>
|
2014-10-08 14:04:31 -05:00
|
|
|
</div>
|
2014-10-28 10:29:31 -05:00
|
|
|
</div>
|
2014-10-08 14:04:31 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-10 13:54:01 -05:00
|
|
|
</div>
|
2014-10-28 10:29:31 -05:00
|
|
|
<div class="panel-body">
|
2014-11-14 02:07:13 -06:00
|
|
|
@include('list.journals-tiny',['transactions' => $data[0],'account' => $data[1]])
|
2014-10-28 10:29:31 -05:00
|
|
|
</div>
|
2014-07-08 00:51:25 -05:00
|
|
|
</div>
|
2014-10-28 10:29:31 -05:00
|
|
|
@endforeach
|
2014-07-08 00:51:25 -05:00
|
|
|
</div>
|
2014-10-28 10:29:31 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
|
|
|
|
2014-12-04 13:38:45 -06:00
|
|
|
|
2014-10-28 10:29:31 -05:00
|
|
|
@stop
|
|
|
|
@section('scripts')
|
2014-12-23 23:10:39 -06:00
|
|
|
<script type="text/javascript">
|
|
|
|
var currencyCode = '{{getCurrencyCode()}}';
|
|
|
|
</script>
|
2014-10-28 10:29:31 -05:00
|
|
|
<!-- load the libraries and scripts necessary for Google Charts: -->
|
|
|
|
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
|
|
|
{{HTML::script('assets/javascript/firefly/gcharts.options.js')}}
|
|
|
|
{{HTML::script('assets/javascript/firefly/gcharts.js')}}
|
|
|
|
|
2014-07-08 00:51:25 -05:00
|
|
|
|
2014-07-20 11:24:27 -05:00
|
|
|
|
2014-10-28 10:29:31 -05:00
|
|
|
{{HTML::script('assets/javascript/firefly/index.js')}}
|
|
|
|
@stop
|
|
|
|
@section('styles')
|
|
|
|
@stop
|