@props([ 'type' => 'text', 'name' => '', ]) @switch($type) @case('hidden') @case('text') @case('email') @case('password') @case('number') only(['value', ':value', 'v-model', 'rules', ':rules', 'label', ':label']) }} > except(['value', ':value', 'v-model', 'rules', ':rules', 'label', ':label'])->merge(['class' => 'w-full appearance-none rounded-md border px-3 py-2 text-sm text-gray-600 transition-all hover:border-gray-400']) }} > @break @case('select') only(['value', ':value', 'v-model', 'rules', ':rules', 'label', ':label']) }} > @break @case('checkbox') @break @endswitch