{{-- Group of radio inputs --}} {{-- Required settings: --}} {{-- none --}} {{-- Optional settings: --}} {{-- name: name of group of inputs --}} {{-- inputs: array of inputs with value, id and label options --}} {{-- checked: string or array of values of checed inputs --}} {{-- conatainerId --}} {{-- containerExtraClass --}} {{-- inputExtraClass --}} {{-- groupLabel: label describing group of inputs --}}
@if(!empty($groupLabel)) {{$groupLabel}} @endif @php( $checked = !empty($checked) ? (gettype($checked) === 'array' ? $checked : [$checked]) : [] ) @foreach($inputs as $input)
@php($id = $input['id'] ?? randomId('radio'))
@endforeach