@props(['label' => null]) @php $inputAttributeNames = [ 'name', 'value', 'id', 'form', 'required', 'disabled', 'checked', 'x-bind:name', 'x-bind:value', 'x-bind:id', 'x-bind:required', 'x-bind:disabled', 'x-bind:checked', 'x-model', 'x-on:change', 'aria-label', 'aria-describedby', ]; $inputAttributes = $attributes->only($inputAttributeNames); $labelAttributes = $attributes->except($inputAttributeNames)->class(['employer-toggle']); @endphp