From 24a29d1dc9cebd6029f8aacef2e6f4239d5c0bf9 Mon Sep 17 00:00:00 2001 From: Mohammad Hafijul Islam Date: Sat, 5 Mar 2022 22:56:26 +0600 Subject: [PATCH] inline default icon space issue fixed --- .../views/bootstrap4/inline/date.blade.php | 43 +++++++++--------- .../views/bootstrap4/inline/email.blade.php | 44 ++++++++++--------- .../views/bootstrap4/inline/number.blade.php | 43 ++++++++++-------- .../bootstrap4/inline/password.blade.php | 43 +++++++++--------- .../views/bootstrap4/inline/search.blade.php | 43 +++++++++--------- .../views/bootstrap4/inline/select.blade.php | 43 +++++++++--------- .../bootstrap4/inline/selectmonth.blade.php | 43 +++++++++--------- .../bootstrap4/inline/selectmulti.blade.php | 43 +++++++++--------- .../bootstrap4/inline/selectrange.blade.php | 42 ++++++++++-------- .../views/bootstrap4/inline/tel.blade.php | 42 ++++++++++-------- .../views/bootstrap4/inline/text.blade.php | 43 +++++++++--------- .../bootstrap4/inline/textarea.blade.php | 43 +++++++++--------- .../views/bootstrap4/inline/url.blade.php | 43 +++++++++--------- 13 files changed, 301 insertions(+), 257 deletions(-) diff --git a/resources/views/bootstrap4/inline/date.blade.php b/resources/views/bootstrap4/inline/date.blade.php index 33682c2..717df1d 100644 --- a/resources/views/bootstrap4/inline/date.blade.php +++ b/resources/views/bootstrap4/inline/date.blade.php @@ -10,29 +10,32 @@ $options['required'] = 'required' @endphp -
- @if(isset($position) && $position == 'before') -
-
- @if(!empty($icon)) - - @endif + @if(!empty($icon)) +
+ @if(isset($position) && $position == 'before') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif + @endif - {!! Form::date($name, $default, array_merge($options, $attributes)) !!} + {!! Form::date($name, $default, array_merge($options, $attributes)) !!} - @if(isset($position) && $position == 'after') -
-
- @if(!empty($icon)) - - @endif + @if(isset($position) && $position == 'after') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif -
- + @endif +
+ @else + {!! Form::date($name, $default, array_merge($options, $attributes)) !!} + @endif {!! Form::nError($name, $msg) !!}
diff --git a/resources/views/bootstrap4/inline/email.blade.php b/resources/views/bootstrap4/inline/email.blade.php index fa4d925..a6dd483 100644 --- a/resources/views/bootstrap4/inline/email.blade.php +++ b/resources/views/bootstrap4/inline/email.blade.php @@ -9,29 +9,33 @@ if(isset($required) && $required == true) $options['required'] = 'required'; @endphp -
- @if(isset($position) && $position == 'before') -
-
- @if(!empty($icon)) - - @endif + + @if(!empty($icon)) +
+ @if(isset($position) && $position == 'before') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif + @endif - {!! Form::email($name, $default, array_merge($options, $attributes)) !!} + {!! Form::email($name, $default, array_merge($options, $attributes)) !!} - @if(isset($position) && $position == 'after') -
-
- @if(!empty($icon)) - - @endif + @if(isset($position) && $position == 'after') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif -
- + @endif +
+ @else + {!! Form::email($name, $default, array_merge($options, $attributes)) !!} + @endif {!! Form::nError($name, $msg) !!}
diff --git a/resources/views/bootstrap4/inline/number.blade.php b/resources/views/bootstrap4/inline/number.blade.php index c5aab31..e5a2f44 100644 --- a/resources/views/bootstrap4/inline/number.blade.php +++ b/resources/views/bootstrap4/inline/number.blade.php @@ -10,28 +10,33 @@ $options['required'] = 'required' @endphp -
- @if(isset($position) && $position == 'before') -
-
- @if(!empty($icon)) - - @endif + @if(!empty($icon)) +
+ @if(isset($position) && $position == 'before') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif + @endif - {!! Form::number($name, $default, array_merge($options, $attributes)) !!} + {!! Form::number($name, $default, array_merge($options, $attributes)) !!} - @if(isset($position) && $position == 'after') -
-
- @if(!empty($icon)) - - @endif + @if(isset($position) && $position == 'after') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif -
+ @endif +
+ @else + {!! Form::number($name, $default, array_merge($options, $attributes)) !!} + @endif + {!! Form::nError($name, $msg) !!}
diff --git a/resources/views/bootstrap4/inline/password.blade.php b/resources/views/bootstrap4/inline/password.blade.php index 5b0fd4e..f0c120b 100644 --- a/resources/views/bootstrap4/inline/password.blade.php +++ b/resources/views/bootstrap4/inline/password.blade.php @@ -10,29 +10,32 @@ $options['required'] = 'required' @endphp -
- @if(isset($position) && $position == 'before') -
-
- @if(!empty($icon)) - - @endif + @if(!empty($icon)) +
+ @if(isset($position) && $position == 'before') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif + @endif - {!! Form::password($name, array_merge($options, $attributes)) !!} + {!! Form::password($name, array_merge($options, $attributes)) !!} - @if(isset($position) && $position == 'after') -
-
- @if(!empty($icon)) - - @endif + @if(isset($position) && $position == 'after') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif -
- + @endif +
+ @else + {!! Form::password($name, array_merge($options, $attributes)) !!} + @endif {!! Form::nError($name, $msg) !!}
diff --git a/resources/views/bootstrap4/inline/search.blade.php b/resources/views/bootstrap4/inline/search.blade.php index c93e628..15db206 100644 --- a/resources/views/bootstrap4/inline/search.blade.php +++ b/resources/views/bootstrap4/inline/search.blade.php @@ -10,29 +10,32 @@ $options['required'] = 'required' @endphp -
- @if(isset($position) && $position == 'before') -
-
- @if(!empty($icon)) - - @endif + @if(!empty($icon)) +
+ @if(isset($position) && $position == 'before') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif + @endif - {!! Form::search($name, $default, array_merge($options, $attributes)) !!} + {!! Form::search($name, $default, array_merge($options, $attributes)) !!} - @if(isset($position) && $position == 'after') -
-
- @if(!empty($icon)) - - @endif + @if(isset($position) && $position == 'after') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif -
- + @endif +
+ @else + {!! Form::search($name, $default, array_merge($options, $attributes)) !!} + @endif {!! Form::nError($name, $msg) !!}
diff --git a/resources/views/bootstrap4/inline/select.blade.php b/resources/views/bootstrap4/inline/select.blade.php index 1ce2a16..c9feced 100644 --- a/resources/views/bootstrap4/inline/select.blade.php +++ b/resources/views/bootstrap4/inline/select.blade.php @@ -10,29 +10,32 @@ $options['required'] = 'required' @endphp -
- @if(isset($position) && $position == 'before') -
-
- @if(!empty($icon)) - - @endif + @if(!empty($icon)) +
+ @if(isset($position) && $position == 'before') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif + @endif - {!! Form::select($name, $data, $selected, array_merge($options, $attributes)) !!} + {!! Form::select($name, $data, $selected, array_merge($options, $attributes)) !!} - @if(isset($position) && $position == 'after') -
-
- @if(!empty($icon)) - - @endif + @if(isset($position) && $position == 'after') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif -
- + @endif +
+ @else + {!! Form::select($name, $data, $selected, array_merge($options, $attributes)) !!} + @endif {!! Form::nError($name, $msg) !!}
diff --git a/resources/views/bootstrap4/inline/selectmonth.blade.php b/resources/views/bootstrap4/inline/selectmonth.blade.php index fcc7be3..3d151cd 100644 --- a/resources/views/bootstrap4/inline/selectmonth.blade.php +++ b/resources/views/bootstrap4/inline/selectmonth.blade.php @@ -10,29 +10,32 @@ $options['required'] = 'required' @endphp -
- @if(isset($position) && $position == 'before') -
-
- @if(!empty($icon)) - - @endif + @if(!empty($icon)) +
+ @if(isset($position) && $position == 'before') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif + @endif - {!! Form::select($name, config('form.months'), $selected, array_merge($options, $attributes)) !!} + {!! Form::select($name, config('form.months'), $selected, array_merge($options, $attributes)) !!} - @if(isset($position) && $position == 'after') -
-
- @if(!empty($icon)) - - @endif + @if(isset($position) && $position == 'after') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif -
- + @endif +
+ @else + {!! Form::select($name, config('form.months'), $selected, array_merge($options, $attributes)) !!} + @endif {!! Form::nError($name, $msg) !!}
diff --git a/resources/views/bootstrap4/inline/selectmulti.blade.php b/resources/views/bootstrap4/inline/selectmulti.blade.php index 23b7721..21fad07 100644 --- a/resources/views/bootstrap4/inline/selectmulti.blade.php +++ b/resources/views/bootstrap4/inline/selectmulti.blade.php @@ -10,29 +10,32 @@ $options['required'] = 'required' @endphp -
- @if(isset($position) && $position == 'before') -
-
- @if(!empty($icon)) - - @endif + @if(!empty($icon)) +
+ @if(isset($position) && $position == 'before') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif + @endif - {!! Form::select($name . '[]', $data, $selected, array_merge($options, $attributes)) !!} + {!! Form::select($name . '[]', $data, $selected, array_merge($options, $attributes)) !!} - @if(isset($position) && $position == 'after') -
-
- @if(!empty($icon)) - - @endif + @if(isset($position) && $position == 'after') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif -
- + @endif +
+ @else + {!! Form::select($name . '[]', $data, $selected, array_merge($options, $attributes)) !!} + @endif {!! Form::nError($name, $msg) !!}
diff --git a/resources/views/bootstrap4/inline/selectrange.blade.php b/resources/views/bootstrap4/inline/selectrange.blade.php index 219255e..55111c4 100644 --- a/resources/views/bootstrap4/inline/selectrange.blade.php +++ b/resources/views/bootstrap4/inline/selectrange.blade.php @@ -10,28 +10,32 @@ $options['required'] = 'required' @endphp -
- @if(isset($position) && $position == 'before') -
-
- @if(!empty($icon)) - - @endif + @if(!empty($icon)) +
+ @if(isset($position) && $position == 'before') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif + @endif - {!! Form::selectRange($name, $begin, $end, $selected, array_merge($options, $attributes)) !!} + {!! Form::selectRange($name, $begin, $end, $selected, array_merge($options, $attributes)) !!} - @if(isset($position) && $position == 'after') -
-
- @if(!empty($icon)) - - @endif + @if(isset($position) && $position == 'after') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif -
+ @endif +
+ @else + {!! Form::selectRange($name, $begin, $end, $selected, array_merge($options, $attributes)) !!} + @endif {!! Form::nError($name, $msg) !!}
diff --git a/resources/views/bootstrap4/inline/tel.blade.php b/resources/views/bootstrap4/inline/tel.blade.php index 41c2d46..92cbd84 100644 --- a/resources/views/bootstrap4/inline/tel.blade.php +++ b/resources/views/bootstrap4/inline/tel.blade.php @@ -10,29 +10,33 @@ $options['required'] = 'required' @endphp -
- @if(isset($position) && $position == 'before') -
-
- @if(!empty($icon)) - - @endif + @if(!empty($icon)) +
+ @if(isset($position) && $position == 'before') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif + @endif - {!! Form::tel($name, $default, array_merge($options, $attributes)) !!} + {!! Form::tel($name, $default, array_merge($options, $attributes)) !!} - @if(isset($position) && $position == 'after') -
-
- @if(!empty($icon)) - - @endif + @if(isset($position) && $position == 'after') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif -
+ @endif +
+ @else + {!! Form::tel($name, $default, array_merge($options, $attributes)) !!} + @endif {!! Form::nError($name, $msg) !!}
diff --git a/resources/views/bootstrap4/inline/text.blade.php b/resources/views/bootstrap4/inline/text.blade.php index 0cc2669..1750752 100644 --- a/resources/views/bootstrap4/inline/text.blade.php +++ b/resources/views/bootstrap4/inline/text.blade.php @@ -10,29 +10,32 @@ $options['required'] = 'required' @endphp -
- @if(isset($position) && $position == 'before') -
-
- @if(!empty($icon)) - - @endif + @if(!empty($icon)) +
+ @if(isset($position) && $position == 'before') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif + @endif - {!! Form::text($name, $default, array_merge($options, $attributes)) !!} + {!! Form::text($name, $default, array_merge($options, $attributes)) !!} - @if(isset($position) && $position == 'after') -
-
- @if(!empty($icon)) - - @endif + @if(isset($position) && $position == 'after') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif -
- + @endif +
+ @else + {!! Form::text($name, $default, array_merge($options, $attributes)) !!} + @endif {!! Form::nError($name, $msg) !!}
diff --git a/resources/views/bootstrap4/inline/textarea.blade.php b/resources/views/bootstrap4/inline/textarea.blade.php index a94aed6..477c82f 100644 --- a/resources/views/bootstrap4/inline/textarea.blade.php +++ b/resources/views/bootstrap4/inline/textarea.blade.php @@ -10,29 +10,32 @@ $options['required'] = 'required' @endphp -
- @if(isset($position) && $position == 'before') -
-
- @if(!empty($icon)) - - @endif + @if(!empty($icon)) +
+ @if(isset($position) && $position == 'before') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif + @endif - {!! Form::textarea($name, $default, array_merge($options, $attributes)) !!} + {!! Form::textarea($name, $default, array_merge($options, $attributes)) !!} - @if(isset($position) && $position == 'after') -
-
- @if(!empty($icon)) - - @endif + @if(isset($position) && $position == 'after') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif -
- + @endif +
+ @else + {!! Form::textarea($name, $default, array_merge($options, $attributes)) !!} + @endif {!! Form::nError($name, $msg) !!}
diff --git a/resources/views/bootstrap4/inline/url.blade.php b/resources/views/bootstrap4/inline/url.blade.php index 07d5e7c..4f956d4 100644 --- a/resources/views/bootstrap4/inline/url.blade.php +++ b/resources/views/bootstrap4/inline/url.blade.php @@ -10,29 +10,32 @@ $options['required'] = 'required' @endphp -
- @if(isset($position) && $position == 'before') -
-
- @if(!empty($icon)) - - @endif + @if(!empty($icon)) +
+ @if(isset($position) && $position == 'before') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif + @endif - {!! Form::url($name, $default, array_merge($options, $attributes)) !!} + {!! Form::url($name, $default, array_merge($options, $attributes)) !!} - @if(isset($position) && $position == 'after') -
-
- @if(!empty($icon)) - - @endif + @if(isset($position) && $position == 'after') +
+
+ @if(!empty($icon)) + + @endif +
-
- @endif -
- + @endif +
+ @else + {!! Form::url($name, $default, array_merge($options, $attributes)) !!} + @endif {!! Form::nError($name, $msg) !!}