@foreach(\App\Enums\Penalty\PenaltyType::labels() as $key => $label)
type?->value) == $key ? 'checked' : '' }}>
@endforeach
@foreach(\App\Enums\Penalty\CalculationType::labels() as $key => $label)
calculation_type?->value) == $key ? 'checked' : ($loop->first ? 'checked' : '') }}>
@endforeach
@foreach(['first','second','third','fourth','more_than_four_times'] as $time)
@php
$column = $time === 'more_than_four_times' ? $time : $time.'_time';
$descriptionColumn = $time === 'more_than_four_times' ? $time.'_description' : $time.'_time_description';
@endphp
@endforeach