@foreach($bills as $objectGroupOrder => $objectGroup)
| {{ __('list.name') }} | {{ trans('list.matchingAmount') }} | |||||
|---|---|---|---|---|---|---|
| @if(!$entry['active']) @endif {{ $entry['name'] }} {{-- count attachments --}} @if(count($entry['attachments']) > 0) @endif | ~ {!! format_amount_by_symbol(($entry['amount_max'] + $entry['amount_min'])/2, $entry['currency_symbol'], $entry['currency_decimal_places']) !!} @if('0' !== $entry['pc_amount_max'] && null !== $entry['pc_amount_max']) (~ {!! format_amount_by_symbol(($entry['pc_amount_max'] + $entry['pc_amount_min'])/2, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }}) @endif | {{-- paidDates = 0 (bill not paid in period) pay_dates = 0 (bill not expected to be paid in this period) bill is active. --}} @if(0 === count($entry['paid_dates']) && 0 === count($entry['pay_dates']) && $entry['active']){{ trans('firefly.not_expected_period') }} | @endif {{-- paid_dates = 0 (bill not paid in period) pay_dates > 0 (bill IS expected to be paid in this period) bill is active first pay date is in the past. --}} @if(0 === count($entry['paid_dates']) && count($entry['pay_dates']) > 0 && $entry['active']) @if($entry['next_expected_match_diff'] === __('firefly.not_expected_period')) {{-- terrible code, you should sue me for this. --}}{{ $entry['next_expected_match_diff'] }} | @else{{ $entry['next_expected_match_diff'] }} | @endif @endif {{-- paid_dates >= 0 (bill is paid X times). Don't care about pay_dates. --}} @if(count($entry['paid_dates']) > 0 && $entry['active'])
@foreach($entry['paid_dates'] as $currentPaid)
{{ new \Carbon\Carbon($currentPaid['date'])->isoFormat($monthAndDayFormat) }}
@endforeach |
@endif
{{-- bill is not active --}}
@if(!$entry['active'])
~ | @endif
| {{ __('firefly.sum') }} ({{ $sum['currency_name'] }}) ({{ __('firefly.active_exp_bills_only') }}) | {!! format_amount_by_symbol($sum['avg'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!} | |||||
| {{ __('firefly.sum') }} ({{ $sum['currency_name'] }}) ({{ __('firefly.left_to_pay_active_bills') }}) | {!! format_amount_by_symbol($sum['total_left_to_pay'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!} | |||||
| {{ __('firefly.per_period_sum_' . $sum['period']) }} ({{ $sum['currency_name'] }}) ({{ __('firefly.active_bills_only') }}) | {!! format_amount_by_symbol($sum['per_period'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!} | |||||
| {{ __('firefly.sum') }} ({{ $sum['currency_name'] }}) ({{ __('firefly.active_exp_bills_only_total') }}) | {!! format_amount_by_symbol($sum['avg'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!} |
| {{ __('firefly.per_period_sum_' . $sum['period']) }} ({{ $sum['currency_name'] }}) ({{ __('firefly.active_bills_only_total') }}) | {!! format_amount_by_symbol($sum['per_period'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!} |