Cleaned up some code and added a small feature for transaction views.

This commit is contained in:
James Cole
2014-08-23 10:01:40 +02:00
parent a6b89879c5
commit d56c00915c
6 changed files with 119 additions and 72 deletions

View File

@@ -34,7 +34,7 @@
@foreach($budgets as $date => $entry)
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<h3><a href="#transactions-in-this-period">{{$entry['date']}}</a>
<h3><a href="{{route('transactions.index')}}?startdate={{$entry['start']->format('Y-m-d')}}&amp;enddate={{$entry['end']->format('Y-m-d')}}">{{$entry['date']}}</a>
<a class="btn btn-default btn-xs" href ="{{route('budgets.limits.create')}}?startdate={{$entry['dateObject']->format('Y-m-d')}}"><span class="glyphicon glyphicon-plus-sign"></span> Create a new envelope for {{$entry['date']}}</a>
</h3>
<table class="table table-bordered table-striped">

View File

@@ -1,6 +1,18 @@
@extends('layouts.default')
@section('content')
@if($filtered === true)
<p class="bg-primary" style="padding:15px;">
This view is filtered to show only the transactions between
{{$filters['start']->format('M jS, Y')}} and {{$filters['end']->format('M jS, Y')}}.
</p>
<p class="bg-info" style="padding:15px;">
<a href="{{route('transactions.index')}}" class="text-info">Reset the filter.</a>
</p>
@endif
@include('paginated.transactions')