@php $control = !(isset($control)) ? "input" : $control; @endphp @if ($control == "input" || $control == "textarea" || $control == "text") @if ($control == "textarea") @elseif($control == "text")
{{ $value }}
@else @endif @if ($errors->has($name)) @error($name)
{{ $message }}
@enderror @endif @else @endif