{{-- Group of checkboxes --}} {{-- 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 checked inputs --}} {{-- conatainerId --}} {{-- containerExtraClass --}} {{-- inputExtraClass --}} {{-- vertical: boolean indicating stacking of grouped checkboxes, defaults to false --}}
@php( $checked = !empty($checked) ? (gettype($checked) === 'array' ? $checked : [$checked]) : [] ) @foreach($inputs as $input)
@php($id = $input['id'] ?? randomId('checkbox'))
@endforeach