@props([ 'groups' => [], 'fields' => [] ]) @foreach($groups as $group)
Groupe {{ $group }}
@foreach(($fields[$group] ?? []) as $field) @forelse(($field['data']['bounds'] ?? []) as $bound) @continue(! isset($bound['var'])) @php $boundEnum = FieldBounds::from($bound['var']) @endphp @empty @endforelse @endforeach
Type de taux Conditions Taux
{{ RateType::from($field['type'])->label() }} {{ $boundEnum->label() }} @if($bound['lb']) {{ $bound['oplb'] === 'gt' ? '>' : '>=' }} {{ $bound['lb'] }} @endif @if($bound['lb'] && $bound['ub']) et @endif @if($bound['ub']) {{ $bound['opub'] === 'lt' ? '<' : '<=' }} {{ $bound['ub'] }} @endif {{ $bound['val'] }}%
{{ RateType::from($field['type'])->label() }} {{ $field['data']['static']?? '' }}%
@endforeach