@props(['label', 'name', 'optional', 'value', 'type'])
@if ($errors->has($name))
@isset($optional) Optional @endisset

{{ $errors->first($name) }}

@else
@isset($optional) Optional @endisset
@endif