firefly-iii/resources/views/list/reminders.blade.php
2015-03-29 08:20:37 +02:00

46 lines
1.9 KiB
PHP

<div class="row">
@if($reminders->count() > 0)
@foreach($reminders as $reminder)
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">
<a href="{{route('reminders.show',$reminder->id)}}">
@if($reminder->notnow === true)
Dismissed reminder
@else
Reminder
@endif
for piggy bank "{{$reminder->remindersable->name}}"
</a>
</div>
<div class="panel-body">
<p>
This reminder is active between {{$reminder->startdate->format('jS F Y')}}
and {{$reminder->enddate->format('jS F Y')}}.
</p>
@if(isset($reminder->description))
<p>{!! $reminder->description !!}</p>
@endif
</div>
<div class="panel-footer">
<div class="btn-group">
@if($reminder->notnow !== true)
<a class="btn btn-warning" href="{{route('reminders.dismiss',$reminder->id)}}">Dismiss</a>
@endif
@if($reminder->active === true)
<a class="btn btn-success" href="{{route('reminders.act',$reminder->id)}}">Act</a>
@endif
</div>
</div>
</div>
</div>
@endforeach
@else
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<p class="small">
(No reminders)
</p>
</div>
@endif
</div>