firefly-iii/app/views/limits/delete.blade.php

63 lines
2.1 KiB
PHP
Raw Normal View History

2014-07-23 01:16:04 -05:00
@extends('layouts.default')
@section('content')
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
2014-07-30 15:31:35 -05:00
<p class="lead">Remember that deleting something is permanent.</p>
2014-07-31 00:29:55 -05:00
2014-07-23 01:16:04 -05:00
</div>
2014-07-30 15:31:35 -05:00
2014-07-23 01:16:04 -05:00
</div>
{{Form::open(['class' => 'form-horizontal','url' => route('budgets.limits.destroy',$limit->id)])}}
<div class="row">
2014-07-31 00:29:55 -05:00
<div class="col-lg-6">
<h4>&nbsp;</h4>
<p class="text-info">
This form allows you to delete the envelope for budget {{{$limit->budget->name}}}, with a content of
{{mf($limit->amount,false)}}
@if($limit->repeats == 0)
in {{$limit->limitrepetitions[0]->startdate->format('M Y')}} ({{$limit->repeat_freq}}).
@endif
</p>
2014-07-23 01:16:04 -05:00
<p class="text-info">
2014-07-30 15:31:35 -05:00
Destroying an envelope does not remove any transactions from the budget.
2014-07-23 01:16:04 -05:00
</p>
<p class="text-danger">
Are you sure?
</p>
<div class="form-group">
<div class="col-sm-8">
2014-07-30 15:31:35 -05:00
<input type="submit" name="submit" value="Remove envelope" class="btn btn-danger" />
@if(Input::get('from') == 'date')
<a href="{{route('budgets.index.date')}}" class="btn-default btn">Cancel</a>
2014-07-30 15:31:35 -05:00
@else
<a href="{{route('budgets.index.budget')}}" class="btn-default btn">Cancel</a>
2014-07-30 15:31:35 -05:00
@endif
2014-07-23 01:16:04 -05:00
</div>
</div>
</div>
2014-07-31 00:29:55 -05:00
@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
2014-07-23 01:16:04 -05:00
</div>
2014-07-30 15:31:35 -05:00
{{Form::close()}}
2014-07-23 01:16:04 -05:00
@stop