+ |
+
+ |
+
+
+ |
+
+ @if(!$entry['active'])
+
+ @endif
+ {{ $entry['name'] }}
+ {{-- count attachments --}}
+ @if(count($entry['attachments']) > 0)
+
+ @endif
- |
-
- @if(count($entry['rules']) > 0)
-
- @foreach($entry['rules'] as $rule)
- -
-
- {{ $rule['title'] }}
-
- @if(!$rule['active'])({{ strtolower(__('firefly.list_inactive_rule')) }})@endif
-
- @endforeach
-
- @endif
- |
-
-
+ |
+
+ @if(count($entry['rules']) > 0)
+
+ @foreach($entry['rules'] as $rule)
+ -
+
+ {{ $rule['title'] }}
+
+ @if(!$rule['active'])
+ ({{ strtolower(__('firefly.list_inactive_rule')) }})
+ @endif
+
+ @endforeach
+
+ @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) !!})
+ (~ {!! 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') }}
- |
-
- @if($entry['next_expected_match'])
- {{ new \Carbon\Carbon($entry['next_expected_match'])->isoFormat($monthAndDayFormat) }}
- @endif
- |
- @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') }}
+ |
+
+ @if($entry['next_expected_match'])
+ {{ new \Carbon\Carbon($entry['next_expected_match'])->isoFormat($monthAndDayFormat) }}
+ @endif
+ |
+ @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
-
- @foreach($entry['pay_dates'] as $date)
- {{ new \Carbon\Carbon($date)->isoFormat($monthAndDayFormat) }}
- @endforeach
+ {{--
+ 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
+
+ @foreach($entry['pay_dates'] as $date)
+ {{ new \Carbon\Carbon($date)->isoFormat($monthAndDayFormat) }}
+ @endforeach
- |
- @endif
+
+ @endif
- {{--
- paid_dates >= 0 (bill is paid X times).
- Don't care about pay_dates.
- --}}
+ {{--
+ 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
- |
-
-
- @if($entry['next_expected_match'] && 1 === count($entry['pay_dates']))
- {{ new \Carbon\Carbon($entry['next_expected_match'])->isoFormat($monthAndDayFormat) }}
- @elseif($entry['next_expected_match'] && count($entry['pay_dates']) > 0)
- @foreach($entry['pay_dates'] as $date)
- {{ new \Carbon\Carbon($date)->isoFormat($monthAndDayFormat) }}
- @endforeach
- @else
- {{ $entry['next_expected_match_diff'] }}
- @endif
- |
- @endif
- {{-- bill is not active --}}
- @if(!$entry['active'])
-
- ~
- |
- ~ |
- @endif
-
- {{ __('firefly.repeat_freq_' . $entry['repeat_freq']) }}
- @if($entry['skip'] > 0)
- {{ __('firefly.skips_over') }} {{ $entry['skip'] }}
- @endif
- @if(null !== $entry['end_date'])
-
- @if(new \Carbon\Carbon($entry['end_date'])->lte($today))
- {{ trans('firefly.bill_end_index_line', ['date' => new \Carbon\Carbon($entry['end_date'])->isoFormat($monthAndDayFormat)]) }}
- @else
- {{ trans('firefly.bill_end_index_line', ['date' => new \Carbon\Carbon($entry['end_date'])->isoFormat($monthAndDayFormat)]) }}
- @endif
- @endif
- @if($entry['extension_date'])
-
- @if(new \Carbon\Carbon($entry['extension_date'])->lte($today))
- {{ trans('firefly.bill_extension_index_line', ['date' => new \Carbon\Carbon($entry['extension_date'])->isoFormat($monthAndDayFormat)]) }}
- @else
- {{ trans('firefly.bill_extension_index_line', ['date' => new \Carbon\Carbon($entry['extension_date'])->isoFormat($monthAndDayFormat)]) }}
- @endif
- @endif
- |
-
- @endforeach
- @foreach(($sums[$objectGroupOrder] ?? []) as $sum)
- @if('0' !== $sum['avg'])
-