2015-06-20 07:29:25 +02:00
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header with-border">
|
2015-06-21 10:50:45 +02:00
|
|
|
<h3 class="box-title">{{ 'bills'|_ }}</h3>
|
2015-05-17 17:54:13 +02:00
|
|
|
</div>
|
2015-06-21 10:50:45 +02:00
|
|
|
<div class="box-body table-responsive no-padding">
|
|
|
|
|
<table class="table table-hover sortable">
|
|
|
|
|
<thead>
|
2015-05-17 17:54:13 +02:00
|
|
|
<tr>
|
2016-11-20 17:36:11 +01:00
|
|
|
<th data-defaultsign="az">{{ trans('form.name') }}</th>
|
2017-01-02 21:04:17 +01:00
|
|
|
<th data-defaultsign="_19" class="hidden-xs" style="text-align: right;">{{ trans('form.amount_min') }}</th>
|
|
|
|
|
<th data-defaultsign="_19" class="hidden-xs" style="text-align: right;">{{ trans('form.amount_max') }}</th>
|
|
|
|
|
<th data-defaultsign="_19" style="text-align: right;">{{ trans('form.amount') }}</th>
|
2017-03-29 21:20:54 +02:00
|
|
|
<th data-defaultsign="_19" class="hidden-xs" style="text-align: right;">{{ trans('form.under') }}</th>
|
2015-05-17 17:54:13 +02:00
|
|
|
</tr>
|
2015-06-21 10:50:45 +02:00
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{% for line in bills.getBills %}
|
2016-02-06 20:17:55 +01:00
|
|
|
<tr>
|
|
|
|
|
<td data-value="{{ line.getBill.name }}">
|
|
|
|
|
<a href="{{ route('bills.show',line.getBill.id) }}">{{ line.getBill.name }}</a>
|
2017-12-29 09:05:35 +01:00
|
|
|
<small class="text-muted"><br/>
|
2017-12-02 07:10:36 +01:00
|
|
|
{{ trans('firefly.bill_expected_between', {start: line.getPayDate.formatLocalized(monthAndDayFormat), end: line.getEndOfPayDate.formatLocalized(monthAndDayFormat) }) }}
|
|
|
|
|
</small>
|
2016-02-06 20:17:55 +01:00
|
|
|
</td>
|
2017-01-02 21:04:17 +01:00
|
|
|
<td class="hidden-xs" data-value="{{ line.getMin }}" style="text-align: right;">{{ line.getMin|formatAmount }}</td>
|
|
|
|
|
<td class="hidden-xs" data-value="{{ line.getMax }}" style="text-align: right;">{{ line.getMax|formatAmount }}</td>
|
2017-11-03 06:42:36 +01:00
|
|
|
|
|
|
|
|
{# if bill is hit, show hit amount #}
|
2016-02-06 20:17:55 +01:00
|
|
|
{% if line.isHit %}
|
2017-01-02 21:04:17 +01:00
|
|
|
<td data-value="{{ line.getAmount }}" style="text-align: right;">
|
2016-02-06 20:17:55 +01:00
|
|
|
<a href="{{ route('transactions.show', line.getTransactionJournalId) }}">
|
|
|
|
|
{{ line.getAmount|formatAmount }}
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
{% endif %}
|
2017-11-03 06:42:36 +01:00
|
|
|
{# if not but is active, show "not yet charged #}
|
2016-02-06 20:17:55 +01:00
|
|
|
{% if not line.isHit and line.isActive %}
|
|
|
|
|
<td data-value="0" class="bg-success">{{ 'notCharged'|_ }}</td>
|
2015-05-17 17:54:13 +02:00
|
|
|
{% endif %}
|
2017-11-03 06:42:36 +01:00
|
|
|
{% if not line.isActive and not line.isHit %}
|
2016-02-06 20:17:55 +01:00
|
|
|
<td data-value="-1"> </td>
|
2015-05-17 17:54:13 +02:00
|
|
|
{% endif %}
|
2017-03-29 21:20:54 +02:00
|
|
|
<td data-value="{{ (line.getMax - line.getAmount) }}" style="text-align: right;" class="hidden-xs">
|
2017-11-03 06:42:36 +01:00
|
|
|
{% if line.isHit %}
|
2016-02-06 20:17:55 +01:00
|
|
|
{{ (line.getMax + line.getAmount)|formatAmount }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
</td>
|
2015-06-21 10:50:45 +02:00
|
|
|
</tr>
|
2015-05-17 17:54:13 +02:00
|
|
|
|
2015-06-21 10:50:45 +02:00
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2015-05-20 19:56:14 +02:00
|
|
|
</div>
|