Bug fix and limit expansions [skip ci]

This commit is contained in:
James Cole
2014-07-31 07:29:55 +02:00
parent 78d575fbb1
commit a41fb81446
3 changed files with 43 additions and 10 deletions

View File

@@ -94,6 +94,22 @@
</div>
</div>
@if($limit->repeats == 1)
<div class="col-lg-6 col-md-6 col-sm-12">
<h4>Auto repeating</h4>
<p class="text-info">
This envelope is set to repeat itself; creating a new period whenever the previous period
has passed. If you change this envelope, you'll also change the following (automatically created)
envelopes.
{{$limit->limitrepetitions()->count() }}
</p>
<ul>
@foreach($limit->limitrepetitions()->orderBy('startdate','DESC')->get() as $rep)
<li>Evenlope for {{$rep->periodShow()}}, {{mf($rep->amount,false)}}</li>
@endforeach
</ul>
</div>
@endif
</div>
{{Form::close()}}