@php $total = 0; $colspan = 3 + count($calculation_months); @endphp
@foreach($calculation_months as $period) @endforeach @forelse($sources as $idx => $source) 0) data-toggle="collapse" data-target="#transactions-{{ $type }}-{{ $source['id'] }}" aria-expanded="false" @endif > @foreach($source['monthly'] as $mp) @endforeach @if(count($source['transactions']) > 0) @endif @php $total += $source['total']; @endphp @empty @endforelse @if(count($sources) > 0) @endif
{{ $label_header }} {{ $date_header }} {{ __('incentive.onetime') }}{{ str_pad($period['month'], 2, '0', STR_PAD_LEFT) }}/{{ $period['year'] }}{{ __('incentive.sum') }}
@if(count($source['transactions']) > 0) @endif {{ $source['label'] }} {{ str_pad($source['month'], 2, '0', STR_PAD_LEFT) }}/{{ $source['year'] }} {{ number_format($source['onetime'], 0, ',', '.') }}{{ $mp > 0 ? number_format($mp, 0, ',', '.') : '-' }}{{ number_format($source['total'], 0, ',', '.') }}
@foreach($source['transactions'] as $tx) @endforeach
{{ __('incentive.transaction_date') }} {{ __('incentive.transaction_description') }} {{ __('incentive.transaction_period') }} {{ __('incentive.transaction_type') }} {{ __('incentive.transaction_points') }}
{{ $tx['date'] }} {{ $tx['label'] }} {{ str_pad($tx['month'], 2, '0', STR_PAD_LEFT) }}/{{ $tx['year'] }} @if($tx['type'] === 'onetime') {{ __('incentive.onetime') }} @else {{ __('incentive.accumulated') }} @endif {{ number_format($tx['points'], 0, ',', '.') }}
{{ $empty_message }}
{{ __('incentive.subtotal') }} {{ number_format($total, 0, ',', '.') }}