diff --git a/src/views/bootstrap3/default/base.blade.php b/src/views/bootstrap3/default/base.blade.php index dd30670..7ab71d5 100644 --- a/src/views/bootstrap3/default/base.blade.php +++ b/src/views/bootstrap3/default/base.blade.php @@ -1,7 +1,7 @@ -
+
{!! $tag !!} - @if ($errors->has($fieldName)) + @if (!empty($fieldName) && $errors->has($fieldName)) {{ $errors->first($fieldName) }} diff --git a/src/views/bootstrap3/default/checkbox.blade.php b/src/views/bootstrap3/default/checkbox.blade.php index 341db8c..321c761 100644 --- a/src/views/bootstrap3/default/checkbox.blade.php +++ b/src/views/bootstrap3/default/checkbox.blade.php @@ -1,13 +1,13 @@ -
+
- @if ($errors->has($fieldName)) + @if (!empty($fieldName) && $errors->has($fieldName)) - {{ $errors->first($fieldName) }} - + {{ $errors->first($fieldName) }} + @endif @if(!is_null($help) && !empty($help))

{{ $help }}

diff --git a/src/views/bootstrap3/default/radio.blade.php b/src/views/bootstrap3/default/radio.blade.php index 626e177..6e6be6e 100644 --- a/src/views/bootstrap3/default/radio.blade.php +++ b/src/views/bootstrap3/default/radio.blade.php @@ -1,13 +1,13 @@ -
+
- @if ($errors->has($fieldName)) + @if (!empty($fieldName) && $errors->has($fieldName)) - {{ $errors->first($fieldName) }} - + {{ $errors->first($fieldName) }} + @endif @if(!is_null($help) && !empty($help))

{{ $help }}

diff --git a/src/views/bootstrap3/horizontal/base.blade.php b/src/views/bootstrap3/horizontal/base.blade.php index 7500ee7..c862aa0 100644 --- a/src/views/bootstrap3/horizontal/base.blade.php +++ b/src/views/bootstrap3/horizontal/base.blade.php @@ -1,8 +1,8 @@ -
+
{!! $tag !!} - @if ($errors->has($fieldName)) + @if (!empty($fieldName) && $errors->has($fieldName)) {{ $errors->first($fieldName) }} diff --git a/src/views/bootstrap3/horizontal/checkbox.blade.php b/src/views/bootstrap3/horizontal/checkbox.blade.php index b4bcfd2..ad0b9e9 100644 --- a/src/views/bootstrap3/horizontal/checkbox.blade.php +++ b/src/views/bootstrap3/horizontal/checkbox.blade.php @@ -1,11 +1,11 @@ -
+
- @if ($errors->has($fieldName)) + @if (!empty($fieldName) && $errors->has($fieldName)) {{ $errors->first($fieldName) }} diff --git a/src/views/bootstrap3/horizontal/radio.blade.php b/src/views/bootstrap3/horizontal/radio.blade.php index 83ceb04..da9f69e 100644 --- a/src/views/bootstrap3/horizontal/radio.blade.php +++ b/src/views/bootstrap3/horizontal/radio.blade.php @@ -1,11 +1,11 @@ -
+
- @if ($errors->has($fieldName)) + @if (!empty($fieldName) && $errors->has($fieldName)) {{ $errors->first($fieldName) }}