2014-09-09 23:56:57 -05:00
|
|
|
<!-- Navigation -->
|
|
|
|
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
|
2014-11-17 01:20:05 -06:00
|
|
|
<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 -->
|
2014-08-13 00:02:13 -05:00
|
|
|
|
2014-11-17 01:20:05 -06:00
|
|
|
<ul class="nav navbar-top-links navbar-right">
|
2014-11-17 03:10:57 -06:00
|
|
|
|
|
|
|
<!-- reminders -->
|
2014-11-18 03:33:38 -06:00
|
|
|
@if(isset($reminders) && count($reminders) > 0)
|
2014-11-17 03:10:57 -06:00
|
|
|
<li class="dropdown">
|
|
|
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
|
|
|
<i class="fa fa-bell fa-fw"></i> <i class="fa fa-caret-down"></i>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu dropdown-alerts">
|
|
|
|
@foreach($reminders as $index => $reminder)
|
|
|
|
<li>
|
2014-11-17 16:08:36 -06:00
|
|
|
<a href="{{route('reminders.show',$reminder->id)}}">
|
2014-11-17 03:10:57 -06:00
|
|
|
<div>
|
2014-11-17 16:08:36 -06:00
|
|
|
<i class="fa fa-clock-o fa-fw"></i>
|
|
|
|
<!-- may be a title, may be a name or a description -->
|
|
|
|
@if($reminder->remindersable->title)
|
|
|
|
{{{$reminder->remindersable->title}}}
|
|
|
|
@endif
|
|
|
|
@if($reminder->remindersable->name)
|
|
|
|
{{{$reminder->remindersable->name}}}
|
|
|
|
@endif
|
|
|
|
<span class="pull-right text-muted small"></span>
|
2014-11-17 03:10:57 -06:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@if($index+1 != count($reminders))
|
|
|
|
<li class="divider"></li>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
<!-- /.dropdown-alerts -->
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
<!-- /.dropdown -->
|
|
|
|
|
2014-11-17 01:20:05 -06:00
|
|
|
<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 class="divider"></li>
|
|
|
|
<li><a href="{{route('logout')}}"><i class="fa fa-sign-out fa-fw"></i> Logout</a></li>
|
|
|
|
</ul>
|
|
|
|
<!-- /.dropdown-user -->
|
2014-09-09 23:56:57 -05:00
|
|
|
</li>
|
2014-11-17 03:10:57 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-17 01:20:05 -06:00
|
|
|
<!-- /.dropdown -->
|
2014-09-09 23:56:57 -05:00
|
|
|
</ul>
|
2014-11-17 01:20:05 -06:00
|
|
|
<!-- /.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>
|
2014-09-09 23:56:57 -05:00
|
|
|
</span>
|
2014-11-17 01:20:05 -06:00
|
|
|
</div>
|
2014-09-22 00:25:14 -05:00
|
|
|
</form>
|
2014-09-09 23:56:57 -05:00
|
|
|
<!-- /input-group -->
|
2014-11-17 01:20:05 -06:00
|
|
|
</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>
|
2014-09-09 23:56:57 -05:00
|
|
|
</ul>
|
|
|
|
<!-- /.nav-second-level -->
|
|
|
|
</li>
|
2014-11-04 13:37:00 -06:00
|
|
|
<li>
|
2014-11-17 02:40:04 -06:00
|
|
|
<a @if(!(strpos($r,'budgets') === false)) class="active" @endif href="{{route('budgets.index')}}"><i class="fa fa-tasks fa-fw"></i> Budgets</a>
|
2014-09-10 01:16:22 -05:00
|
|
|
</li>
|
|
|
|
<li>
|
2014-11-11 11:16:59 -06:00
|
|
|
<a @if($r == 'categories.index') class="active" @endif href="{{route('categories.index')}}"><i class="fa fa-bar-chart fa-fw"></i> Categories</a>
|
2014-09-09 23:56:57 -05:00
|
|
|
</li>
|
|
|
|
<li>
|
2014-09-10 01:16:22 -05:00
|
|
|
<a href="#"><i class="fa fa-tags fa-fw"></i> Tags</a>
|
2014-09-09 23:56:57 -05:00
|
|
|
</li>
|
2014-11-11 11:16:59 -06:00
|
|
|
<li>
|
2014-11-17 02:40:04 -06:00
|
|
|
<a @if(!(strpos($r,'reports') === false)) class="active" @endif href="{{route('reports.index')}}"><i class="fa fa-line-chart fa-fw"></i> Reports</a>
|
2014-09-10 15:22:44 -05:00
|
|
|
</li>
|
2014-11-17 02:40:04 -06:00
|
|
|
<?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>
|
2014-11-11 11:16:59 -06:00
|
|
|
<a href="#"><i class="fa fa-repeat fa-fw"></i> Transactions<span class="fa arrow"></span></a>
|
2014-09-10 01:16:22 -05:00
|
|
|
<ul class="nav nav-second-level">
|
|
|
|
<li>
|
2014-11-17 02:40:04 -06:00
|
|
|
<a @if($isWithdrawal)class="active"@endif href="{{route('transactions.index','withdrawal')}}"><i class="fa fa-long-arrow-left fa-fw"></i> Expenses</a>
|
2014-09-10 01:16:22 -05:00
|
|
|
</li>
|
|
|
|
<li>
|
2014-11-17 02:40:04 -06:00
|
|
|
<a @if($isDeposit)class="active"@endif href="{{route('transactions.index','deposit')}}"><i class="fa fa-long-arrow-right fa-fw"></i> Revenue / income</a>
|
2014-09-10 01:16:22 -05:00
|
|
|
</li>
|
|
|
|
<li>
|
2014-11-17 02:40:04 -06:00
|
|
|
<a @if($isTransfer)class="active"@endif href="{{route('transactions.index','transfers')}}"><i class="fa fa-arrows-h fa-fw"></i> Transfers</a>
|
2014-09-10 01:16:22 -05:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2014-09-09 23:56:57 -05:00
|
|
|
</li>
|
2014-11-17 02:40:04 -06:00
|
|
|
<?php
|
2014-11-22 10:17:28 -06:00
|
|
|
$isMM = !(strpos($r,'piggybanks') === false) || !(strpos($r,'recurring') === false) | !(strpos($r,'repeated') === false);
|
2014-11-17 02:40:04 -06:00
|
|
|
$isPiggy = !(strpos($r,'piggybanks') === false);
|
2014-11-22 10:17:28 -06:00
|
|
|
$isRec = !(strpos($r,'recurring') === false) && strpos($r,'recurring.create') === false;
|
|
|
|
$isRep = !(strpos($r,'repeated') === false);
|
2014-11-17 02:40:04 -06:00
|
|
|
?>
|
|
|
|
<li @if($isMM)class="active"@endif>
|
2014-09-10 01:16:22 -05:00
|
|
|
<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>
|
2014-11-17 02:40:04 -06:00
|
|
|
<a @if($isPiggy)class="active"@endif href="{{route('piggybanks.index')}}"><i class="fa fa-sort-amount-asc fa-fw"></i> Piggy banks</a>
|
2014-09-10 01:16:22 -05:00
|
|
|
</li>
|
|
|
|
<li>
|
2014-11-17 02:40:04 -06:00
|
|
|
<a @if($isRec)class="active"@endif href="{{route('recurring.index')}}"><i class="fa fa-rotate-right fa-fw"></i> Recurring transactions</a>
|
2014-09-10 01:16:22 -05:00
|
|
|
</li>
|
2014-11-22 10:17:28 -06:00
|
|
|
<li>
|
|
|
|
<a @if($isRep)class="active"@endif href="{{route('repeated.index')}}"><i class="fa fa-rotate-left fa-fw"></i> Repeated expenses</a>
|
|
|
|
</li>
|
2014-09-10 01:16:22 -05:00
|
|
|
</ul>
|
|
|
|
<!-- /.nav-second-level -->
|
2014-09-09 23:56:57 -05:00
|
|
|
</li>
|
2014-11-17 02:40:04 -06:00
|
|
|
<?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';
|
|
|
|
$isRecurring = $r == 'recurring.create';
|
|
|
|
?>
|
|
|
|
<li @if($creating)class="active"@endif>
|
2014-09-10 01:16:22 -05:00
|
|
|
<a href="#"><i class="fa fa-plus fa-fw"></i> Create new<span class="fa arrow"></span></a>
|
2014-09-09 23:56:57 -05:00
|
|
|
<ul class="nav nav-second-level">
|
|
|
|
<li>
|
2014-11-17 02:40:04 -06:00
|
|
|
<a @if($isWithdrawal)class="active"@endif href="{{route('transactions.create','withdrawal')}}"><i class="fa fa-long-arrow-left fa-fw"></i> Withdrawal</a>
|
2014-09-10 01:16:22 -05:00
|
|
|
</li>
|
|
|
|
<li>
|
2014-11-17 02:40:04 -06:00
|
|
|
<a @if($isDeposit)class="active"@endif href="{{route('transactions.create','deposit')}}"><i class="fa fa-long-arrow-right fa-fw"></i> Deposit</a>
|
2014-09-10 01:16:22 -05:00
|
|
|
</li>
|
|
|
|
<li>
|
2014-11-17 02:40:04 -06:00
|
|
|
<a @if($isTransfer)class="active"@endif href="{{route('transactions.create','transfer')}}"><i class="fa fa-arrows-h fa-fw"></i> Transfer</a>
|
2014-09-10 01:16:22 -05:00
|
|
|
</li>
|
2014-09-09 23:56:57 -05:00
|
|
|
<li>
|
2014-11-17 02:40:04 -06:00
|
|
|
<a @if($isRecurring)class="active"@endif href="{{route('recurring.create')}}"><i class="fa fa-rotate-right fa-fw"></i> Recurring transaction</a>
|
2014-09-09 23:56:57 -05:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<!-- /.nav-second-level -->
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<!-- /.sidebar-collapse -->
|
|
|
|
</div>
|
|
|
|
<!-- /.navbar-static-side -->
|
|
|
|
</nav>
|