2015-03-06 13:33:23 -06:00
|
|
|
<div class="row">
|
2015-03-07 02:21:06 -06:00
|
|
|
@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">
|
2015-03-07 02:29:43 -06:00
|
|
|
<a href="{{route('reminders.show',$reminder->id)}}">
|
2015-03-07 02:21:06 -06:00
|
|
|
@if($reminder->notnow === true)
|
|
|
|
Dismissed reminder
|
|
|
|
@else
|
|
|
|
Reminder
|
|
|
|
@endif
|
|
|
|
for piggy bank "{{$reminder->remindersable->name}}"
|
2015-03-07 02:29:43 -06:00
|
|
|
</a>
|
2015-03-07 02:21:06 -06:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<p>
|
2015-03-08 03:00:04 -05:00
|
|
|
This reminder is active between {{$reminder->startdate->format('jS F Y')}}
|
2015-03-07 02:21:06 -06:00
|
|
|
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">
|
2015-03-25 13:12:33 -05:00
|
|
|
@if($reminder->notnow !== true)
|
2015-03-07 02:21:06 -06:00
|
|
|
<a class="btn btn-warning" href="{{route('reminders.dismiss',$reminder->id)}}">Dismiss</a>
|
2015-03-25 13:12:33 -05:00
|
|
|
@endif
|
|
|
|
@if($reminder->active === true)
|
2015-03-08 14:20:58 -05:00
|
|
|
<a class="btn btn-success" href="{{route('reminders.act',$reminder->id)}}">Act</a>
|
2015-03-07 02:21:06 -06:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-06 13:33:23 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-07 02:21:06 -06:00
|
|
|
@endforeach
|
|
|
|
@else
|
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
|
|
|
<p class="small">
|
|
|
|
(No reminders)
|
|
|
|
</p>
|
2015-03-06 13:33:23 -06:00
|
|
|
</div>
|
2015-03-07 02:21:06 -06:00
|
|
|
@endif
|
2015-03-29 01:20:37 -05:00
|
|
|
</div>
|