@props([ "type" => 'text' ]) @if(View::exists('components.input.' . strtolower($type)) || file_exists($global_components_path . 'input/'. strtolower($type) . '.blade.php')) @php $componentName = 'input.' . strtolower($type); @endphp @php $notExists = false; @endphp @else @php $componentName = 'input.text'; @endphp @php $notExists = true; @endphp @endif @if($notExists)
{{ __('The field type ":type" does not have form component ', ['type' => $type]) }}
@endif