2015-06-20 00:29:25 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2015-06-21 03:50:45 -05:00
|
|
|
<h3 class="box-title">{{ 'bills'|_ }}</h3>
|
2015-05-17 10:54:13 -05:00
|
|
|
</div>
|
2015-06-21 03:50:45 -05:00
|
|
|
<div class="box-body table-responsive no-padding">
|
|
|
|
<table class="table table-hover sortable">
|
|
|
|
<thead>
|
2015-05-17 10:54:13 -05:00
|
|
|
<tr>
|
|
|
|
<th>{{ trans('form.name') }}</th>
|
|
|
|
<th>{{ trans('form.amount_min') }}</th>
|
|
|
|
<th>{{ trans('form.amount_max') }}</th>
|
|
|
|
<th>{{ trans('form.amount') }}</th>
|
|
|
|
<th>{{ trans('form.under') }}</th>
|
|
|
|
</tr>
|
2015-06-21 03:50:45 -05:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for line in bills.getBills %}
|
|
|
|
{% if not line.isActive %}
|
|
|
|
<tr class="text-muted">
|
|
|
|
{% else %}
|
|
|
|
<tr>
|
|
|
|
{% endif %}
|
2015-05-17 10:54:13 -05:00
|
|
|
<td data-value="{{ line.getBill.name }}">
|
|
|
|
<a href="{{ route('bills.show',line.getBill.id) }}">{{ line.getBill.name }}</a>
|
|
|
|
{% if not line.isActive %}
|
|
|
|
({{ 'inactive'|_|lower }})
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td data-value="{{ line.getMin }}">{{ line.getMin|formatAmount }}</td>
|
|
|
|
<td data-value="{{ line.getMax }}">{{ line.getMax|formatAmount }}</td>
|
|
|
|
{% if line.isHit %}
|
|
|
|
<td data-value="{{ line.getAmount }}">{{ line.getAmount|formatAmount }}</td>
|
|
|
|
{% endif %}
|
|
|
|
{% if not line.isHit and line.isActive %}
|
|
|
|
<td data-value="0" class="bg-success">{{ 'notCharged'|_ }}</td>
|
|
|
|
{% endif %}
|
|
|
|
{% if not line.isActive %}
|
|
|
|
<td data-value="-1"> </td>
|
2015-06-21 03:50:45 -05:00
|
|
|
{% endif %}
|
2015-05-17 10:54:13 -05:00
|
|
|
<td data-value="{{ (line.getMax - line.getAmount) }}">
|
|
|
|
{% if line.isActive %}
|
2015-12-02 02:03:34 -06:00
|
|
|
{{ (line.getMax + line.getAmount)|formatAmount }}
|
2015-05-17 10:54:13 -05:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
|
2015-06-21 03:50:45 -05:00
|
|
|
</tr>
|
2015-05-17 10:54:13 -05:00
|
|
|
|
2015-06-21 03:50:45 -05:00
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2015-05-20 12:56:14 -05:00
|
|
|
</div>
|