firefly-iii/app/views/repeatedexpense/index.blade.php

51 lines
1.8 KiB
PHP
Raw Normal View History

@extends('layouts.default')
@section('content')
2014-11-28 09:15:30 -06:00
{{ Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) }}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
2014-11-22 16:32:24 -06:00
<p>
<a class="btn btn-lg btn-success" href="{{route('repeated.create')}}">Create new repeated expense</a>
</p>
</div>
</div>
2014-11-22 16:32:24 -06:00
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
</div>
</div>
2014-11-28 09:15:30 -06:00
<!-- TODO create update and destroy -->
2014-11-22 16:32:24 -06:00
<div class="row">
@foreach($expenses as $entry)
<div class="col-lg-3 col-md-4 col-sm-6">
2014-11-22 16:32:24 -06:00
<div class="panel panel-default">
<div class="panel-heading">
2014-11-24 03:12:34 -06:00
<a href="{{route('repeated.show',$entry->id)}}" title="{{{$entry->name}}}">{{{$entry->name}}}</a>
({{mf($entry->targetamount)}})
2014-11-22 16:32:24 -06:00
</div>
<div class="panel-body">
<div class="progress progress-striped">
<div class="progress-bar" role="progressbar" aria-valuenow="{{Steam::percentage($entry,$entry->currentRep)}}" aria-valuemin="0" aria-valuemax="100" style="width: {{Steam::percentage($entry,$entry->currentRep)}}%; min-width:15px;">
@if(Steam::percentage($entry,$entry->currentRep) > 30)
{{mf($entry->currentRep->currentamount,false)}}
@endif
2014-11-24 03:12:34 -06:00
</div>
@if(Steam::percentage($entry,$entry->currentRep) <= 30)
&nbsp;<small>{{mf($entry->currentRep->currentamount,false)}}</small>
@endif
2014-11-22 16:32:24 -06:00
</div>
</div>
<div class="panel-footer">
<small>{{$entry->currentRep->startdate->format('j F Y')}} to {{$entry->currentRep->targetdate->format('j F Y')}}</small>
</div>
2014-11-22 16:32:24 -06:00
</div>
</div>
@endforeach
2014-11-22 16:32:24 -06:00
</div>
@stop
@section('scripts')
@stop