2014-06-30 03:47:14 -05:00
|
|
|
@extends('layouts.default')
|
|
|
|
@section('content')
|
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>
|
|
|
|
To get get started, choose below:
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
2014-09-02 01:58:56 -05:00
|
|
|
<h2><a href="{{route('migrate.index')}}">Migrate from Firefly II</a></h2>
|
2014-07-23 23:47:28 -05:00
|
|
|
|
2014-07-03 14:31:32 -05:00
|
|
|
<p>
|
|
|
|
Use this option if you have a JSON file from your current Firefly II installation.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
2014-08-06 00:06:45 -05:00
|
|
|
<h2><a href="{{route('accounts.create')}}">Start from scratch</a></h2>
|
2014-07-23 23:47:28 -05:00
|
|
|
|
2014-07-03 14:31:32 -05:00
|
|
|
<p>
|
|
|
|
Use this option if you are new to Firefly (III).
|
|
|
|
</p>
|
|
|
|
</div>
|
2014-07-23 23:47:28 -05:00
|
|
|
@else
|
2014-07-08 00:51:25 -05:00
|
|
|
|
|
|
|
|
2014-07-06 14:07:52 -05:00
|
|
|
<!-- ACCOUNTS -->
|
2014-07-08 00:51:25 -05:00
|
|
|
<div class="row">
|
2014-09-10 09:15:28 -05:00
|
|
|
<div class="col-lg-8 col-md-12 col-sm-12">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<i class="fa fa-credit-card fa-fw"></i> Your accounts
|
|
|
|
<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="#">Action</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="#">Another action</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="#">Something else here</a>
|
|
|
|
</li>
|
|
|
|
<li class="divider"></li>
|
|
|
|
<li><a href="#">Separated link</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div id="flot-chart-accounts" style="height:300px;"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-07-08 00:51:25 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-07-20 11:24:27 -05:00
|
|
|
<!-- TRANSACTIONS -->
|
|
|
|
@if(count($transactions) > 0)
|
|
|
|
@foreach($transactions as $set)
|
|
|
|
<div class="row">
|
|
|
|
<?php $split = 12 / count($set); ?>
|
|
|
|
@foreach($set as $data)
|
|
|
|
<div class="col-lg-{{$split}} col-md-{{$split}}">
|
2014-07-25 01:11:07 -05:00
|
|
|
<h4>
|
2014-07-27 13:29:58 -05:00
|
|
|
<a href="{{route('accounts.show',$data[1]->id)}}">{{{$data[1]->name}}}</a>
|
2014-07-25 01:11:07 -05:00
|
|
|
</h4>
|
|
|
|
|
|
|
|
@include('transactions.journals-small',['transactions' => $data[0],'account' => $data[1]])
|
|
|
|
<div class="btn-group btn-group-xs">
|
2014-09-10 09:15:28 -05:00
|
|
|
<a class="btn btn-default"
|
|
|
|
href="{{route('transactions.create','withdrawal')}}?account_id={{$data[1]->id}}"><span
|
|
|
|
class="glyphicon glyphicon-arrow-left" title="Withdrawal"></span> Add withdrawal</a>
|
|
|
|
<a class="btn btn-default"
|
|
|
|
href="{{route('transactions.create','deposit')}}?account_id={{$data[1]->id}}"><span
|
|
|
|
class="glyphicon glyphicon-arrow-right" title="Deposit"></span> Add deposit</a>
|
|
|
|
<a class="btn btn-default"
|
|
|
|
href="{{route('transactions.create','transfer')}}?account_from_id={{$data[1]->id}}"><span
|
|
|
|
class="glyphicon glyphicon-resize-full" title="Transfer"></span> Add transfer</a>
|
2014-07-25 01:11:07 -05:00
|
|
|
</div>
|
|
|
|
|
2014-07-20 11:24:27 -05:00
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
@endif
|
|
|
|
|
2014-08-28 00:53:54 -05:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
2014-07-26 01:05:02 -05:00
|
|
|
<div id="budgets"></div>
|
2014-07-20 11:24:27 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-07-08 00:51:25 -05:00
|
|
|
<div class="row">
|
2014-07-17 13:52:54 -05:00
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
|
|
<div id="categories"></div>
|
2014-07-08 00:51:25 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-07-20 11:24:27 -05:00
|
|
|
|
2014-07-23 23:47:28 -05:00
|
|
|
@endif
|
2014-07-20 11:24:27 -05:00
|
|
|
|
2014-07-23 23:47:28 -05:00
|
|
|
@stop
|
|
|
|
@section('scripts')
|
2014-07-26 11:53:41 -05:00
|
|
|
<?php echo javascript_include_tag('index'); ?>
|
2014-07-23 23:47:28 -05:00
|
|
|
@stop
|
|
|
|
@section('styles')
|
2014-07-26 11:53:41 -05:00
|
|
|
<?php echo stylesheet_link_tag('index'); ?>
|
2014-07-23 23:47:28 -05:00
|
|
|
@stop
|