@push('scripts') @endpush @props([ 'name' => '', 'label' => '', 'required' => false, 'value' => '', ]) @if ($label == '') @php $label = str_replace('_', ' ', $name); $label = preg_split('/(?=[A-Z])/', $label); $label = implode(' ', $label); $label = ucwords(strtolower($label)); @endphp @endif
@if ($label !== 'none') @endif
@error($name)

{{ $message }}

@enderror