@if (!empty($type)) @switch($type) @case('text') @break @case('texteditor') @break @case('mail') @break @case('tel') @break @default @break @endswitch @endif