2015-06-21 04:59:35 -05:00
|
|
|
<table class="table table-hover sortable">
|
2015-05-08 10:04:24 -05:00
|
|
|
<thead>
|
2015-05-02 05:51:02 -05:00
|
|
|
<tr>
|
2016-03-14 11:18:28 -05:00
|
|
|
<th class="hidden-sm hidden-xs" data-defaultsort="disabled"> </th>
|
2015-05-14 06:00:43 -05:00
|
|
|
<th>{{ trans('list.name') }}</th>
|
2016-11-20 08:30:16 -06:00
|
|
|
<th data-defaultsign="az" class="hidden-sm hidden-xs">{{ trans('list.matchesOn') }}</th>
|
|
|
|
<th data-defaultsign="_19" colspan="2">{{ trans('list.matchingAmount') }}</th>
|
|
|
|
<th data-defaultsign="month" class="hidden-sm hidden-xs">{{ trans('list.paid_current_period') }}</th>
|
|
|
|
<th data-defaultsign="month" class="hidden-sm hidden-xs">{{ trans('list.next_expected_match') }}</th>
|
2015-06-25 10:06:20 -05:00
|
|
|
<th class="hidden-sm hidden-xs">{{ trans('list.active') }}</th>
|
|
|
|
<th class="hidden-sm hidden-xs">{{ trans('list.automatch') }}</th>
|
2016-11-20 08:30:16 -06:00
|
|
|
<th data-defaultsign="az" class="hidden-sm hidden-xs">{{ trans('list.repeat_freq') }}</th>
|
2015-06-27 01:06:24 -05:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2015-05-08 10:04:24 -05:00
|
|
|
<tbody>
|
2015-05-02 05:51:02 -05:00
|
|
|
{% for entry in bills %}
|
2015-06-27 01:06:24 -05:00
|
|
|
<tr>
|
2016-03-14 11:18:28 -05:00
|
|
|
<td class="hidden-sm hidden-xs">
|
2015-06-27 01:06:24 -05:00
|
|
|
<div class="btn-group btn-group-xs">
|
|
|
|
<a href="{{ route('bills.edit',entry.id) }}" class="btn btn-default btn-xs"><i class="fa fa-fw fa-pencil"></i></a>
|
|
|
|
<a href="{{ route('bills.delete',entry.id) }}" class="btn btn-danger btn-xs"><i class="fa fa-fw fa-trash-o"></i></a>
|
|
|
|
</div>
|
2015-05-08 10:00:39 -05:00
|
|
|
</td>
|
2015-06-27 01:06:24 -05:00
|
|
|
<td>
|
|
|
|
<a href="{{ route('bills.show',entry.id) }}" title="{{ entry.name }}">{{ entry.name }}</a>
|
2015-05-08 10:00:39 -05:00
|
|
|
</td>
|
2015-06-27 01:06:24 -05:00
|
|
|
<td class="hidden-sm hidden-xs" data-value="{{ entry.match }}">
|
|
|
|
{% for match in entry.match|split(',') %}
|
|
|
|
<span class="label label-info">{{ match }}</span>
|
|
|
|
{% endfor %}
|
2015-05-08 10:00:39 -05:00
|
|
|
</td>
|
2015-06-27 01:06:24 -05:00
|
|
|
<td data-value="{{ entry.amount_min }}">
|
|
|
|
{{ entry.amount_min|formatAmount }}
|
|
|
|
</td>
|
|
|
|
<td data-value="{{ entry.amount_max }}">
|
|
|
|
{{ entry.amount_max|formatAmount }}
|
2015-05-08 10:00:39 -05:00
|
|
|
</td>
|
2016-10-23 07:56:05 -05:00
|
|
|
|
|
|
|
{% if entry.paidDates.count() == 0 and entry.payDates.count() == 0 and entry.active %}
|
2016-11-20 08:30:16 -06:00
|
|
|
<td class="text-muted" data-value="0001-00-00-00-00-00">
|
2016-10-23 07:56:05 -05:00
|
|
|
{{ 'not_expected_period'|_ }}
|
2015-06-27 01:06:24 -05:00
|
|
|
</td>
|
2016-11-20 08:30:16 -06:00
|
|
|
<td class=" hidden-sm hidden-xs" data-value="{{ entry.nextExpectedMatch.format('Y-m-d-H-i-s') }}">
|
2016-10-23 07:56:05 -05:00
|
|
|
{{ entry.nextExpectedMatch.formatLocalized(monthAndDayFormat) }}
|
2015-06-27 01:06:24 -05:00
|
|
|
</td>
|
2015-05-02 05:51:02 -05:00
|
|
|
{% endif %}
|
2016-10-23 07:56:05 -05:00
|
|
|
{% if entry.paidDates.count() == 0 and entry.payDates.count() > 0 and entry.active %}
|
2016-11-20 08:30:16 -06:00
|
|
|
<td class="text-danger" data-value="0002-00-00-00-00-00">
|
2016-10-23 07:56:05 -05:00
|
|
|
{{ 'not_or_not_yet'|_ }}
|
2015-06-27 01:06:24 -05:00
|
|
|
</td>
|
2016-11-20 08:30:16 -06:00
|
|
|
<td class=" hidden-sm hidden-xs" data-value="{{ entry.nextExpectedMatch.format('Y-m-d-H-i-s') }}">
|
2016-10-23 07:56:05 -05:00
|
|
|
{{ entry.nextExpectedMatch.formatLocalized(monthAndDayFormat) }}
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% if entry.paidDates.count() == entry.payDates.count() and entry.payDates.count() > 0 and entry.active %}
|
2016-11-20 08:30:16 -06:00
|
|
|
<td class="text-success" data-value="{{ entry.paidDates.first.format('Y-m-d-H-i-s') }}">
|
2016-10-23 07:56:05 -05:00
|
|
|
{% for date in entry.paidDates %}
|
|
|
|
{{ date.formatLocalized(monthAndDayFormat) }}<br/>
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
2016-11-20 08:30:16 -06:00
|
|
|
<td class=" hidden-sm hidden-xs" data-value="{{ entry.nextExpectedMatch.format('Y-m-d-H-i-s') }}">
|
2016-10-23 07:56:05 -05:00
|
|
|
{{ entry.nextExpectedMatch.formatLocalized(monthAndDayFormat) }}
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% if not entry.active %}
|
2016-11-20 08:30:16 -06:00
|
|
|
<td class="text-muted" data-value="0000-00-00-00-00-00">
|
2016-10-23 07:56:05 -05:00
|
|
|
~
|
|
|
|
</td>
|
2016-11-20 08:30:16 -06:00
|
|
|
<td class="text-muted hidden-sm hidden-xs" data-value="0">
|
2016-10-23 07:56:05 -05:00
|
|
|
~
|
2016-02-09 23:55:08 -06:00
|
|
|
</td>
|
2015-05-02 05:51:02 -05:00
|
|
|
{% endif %}
|
2015-06-27 01:06:24 -05:00
|
|
|
<td class="hidden-sm hidden-xs" data-value="{{ entry.active }}">
|
|
|
|
{% if entry.active %}
|
|
|
|
<i class="fa fa-fw fa-check"></i>
|
|
|
|
{% else %}
|
|
|
|
<i class="fa fa-fw fa-ban"></i>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td class="hidden-sm hidden-xs" data-value="{{ entry.automatch }}">
|
|
|
|
{% if entry.automatch %}
|
|
|
|
<i class="fa fa-fw fa-check"></i>
|
|
|
|
{% else %}
|
|
|
|
<i class="fa fa-fw fa-ban"></i>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td class="hidden-sm hidden-xs" data-value="{{ entry.repeat_freq }}{{ entry.skip }}">
|
|
|
|
{{ entry.repeat_freq|_ }}
|
|
|
|
{% if entry.skip > 0 %}
|
|
|
|
skips over {{ entry.skip }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2015-05-02 05:51:02 -05:00
|
|
|
|
|
|
|
{% endfor %}
|
2015-05-08 10:04:24 -05:00
|
|
|
</tbody>
|
2015-05-02 05:51:02 -05:00
|
|
|
</table>
|