2014-11-14 05:54:49 -06:00
|
|
|
<table class="table table-bordered table-striped">
|
|
|
|
<tr>
|
|
|
|
<th> </th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Matches on</th>
|
|
|
|
<th>Matching amount</th>
|
|
|
|
<th>Last seen match</th>
|
|
|
|
<th>Next expected match</th>
|
|
|
|
<th>Is active</th>
|
|
|
|
<th>Will be automatched</th>
|
|
|
|
<th>Repeats every</th>
|
|
|
|
</tr>
|
|
|
|
@foreach($recurring as $entry)
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="btn-group btn-group-xs">
|
|
|
|
<a href="{{route('recurring.edit',$entry->id)}}" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-pencil"></span></a>
|
|
|
|
<a href="{{route('recurring.delete',$entry->id)}}" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-trash"></span></a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="{{route('recurring.show',$entry->id)}}" title="{{{$entry->name}}}">{{{$entry->name}}}</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
2014-11-19 14:18:16 -06:00
|
|
|
@foreach(explode(',',$entry->match) as $match)
|
2014-11-14 05:54:49 -06:00
|
|
|
<span class="label label-info">{{{$match}}}</span>
|
|
|
|
@endforeach
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{mf($entry->amount_min)}}
|
|
|
|
—
|
|
|
|
{{mf($entry->amount_max)}}
|
|
|
|
</td>
|
|
|
|
<td>
|
2014-11-15 00:46:01 -06:00
|
|
|
<?php $lastMatch = $entry->lastFoundMatch();?>
|
|
|
|
@if($lastMatch)
|
|
|
|
{{$lastMatch->format('j F Y')}}
|
|
|
|
@else
|
|
|
|
<em>Unknown</em>
|
|
|
|
@endif
|
2014-11-14 05:54:49 -06:00
|
|
|
</td>
|
|
|
|
<td>
|
2014-11-15 00:46:01 -06:00
|
|
|
<?php $nextExpectedMatch = $entry->nextExpectedMatch();?>
|
|
|
|
@if($nextExpectedMatch)
|
|
|
|
{{$nextExpectedMatch->format('j F Y')}}
|
|
|
|
@else
|
|
|
|
<em>Unknown</em>
|
|
|
|
@endif
|
2014-11-14 05:54:49 -06:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@if($entry->active)
|
|
|
|
<i class="fa fa-fw fa-check"></i>
|
|
|
|
@else
|
|
|
|
<i class="fa fa-fw fa-ban"></i>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@if($entry->automatch)
|
|
|
|
<i class="fa fa-fw fa-check"></i>
|
|
|
|
@else
|
|
|
|
<i class="fa fa-fw fa-ban"></i>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{{$entry->repeat_freq}}}
|
|
|
|
@if($entry->skip > 0)
|
|
|
|
skips over {{$entry->skip}}
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
@endforeach
|
|
|
|
</table>
|