@if ($type === 'checkbox') @if ($label) {{ $label }} @else {{ $name }} @endif @if ($required) * @endif @else @if ($label) {{ $label }} @else {{ $name }} @endif @if ($required) * @endif @endif @error($name) {{ $message }} @enderror