├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── LICENSE.md ├── README.md ├── SECURITY.md ├── UPGRADE.md ├── composer.json ├── config └── form.php ├── package-lock.json ├── package.json ├── resources ├── css │ └── app.css ├── js │ └── app.js └── views │ ├── bootstrap3 │ ├── group │ │ ├── checkbox.blade.php │ │ ├── date.blade.php │ │ ├── email.blade.php │ │ ├── file.blade.php │ │ ├── number.blade.php │ │ ├── password.blade.php │ │ ├── radio.blade.php │ │ ├── range.blade.php │ │ ├── search.blade.php │ │ ├── select.blade.php │ │ ├── selectmonth.blade.php │ │ ├── selectrange.blade.php │ │ ├── selectyear.blade.php │ │ ├── tel.blade.php │ │ ├── text.blade.php │ │ ├── textarea.blade.php │ │ └── url.blade.php │ ├── horizon │ │ ├── checkbox.blade.php │ │ ├── date.blade.php │ │ ├── email.blade.php │ │ ├── file.blade.php │ │ ├── number.blade.php │ │ ├── radio.blade.php │ │ ├── search.blade.php │ │ ├── select.blade.php │ │ ├── selectmonth.blade.php │ │ ├── selectrange.blade.php │ │ ├── selectyear.blade.php │ │ ├── tel.blade.php │ │ ├── text.blade.php │ │ ├── textarea.blade.php │ │ └── url.blade.php │ ├── inline │ │ ├── checkbox.blade.php │ │ ├── date.blade.php │ │ ├── email.blade.php │ │ ├── file.blade.php │ │ ├── number.blade.php │ │ ├── password.blade.php │ │ ├── radio.blade.php │ │ ├── range.blade.php │ │ ├── search.blade.php │ │ ├── select.blade.php │ │ ├── selectmonth.blade.php │ │ ├── selectrange.blade.php │ │ ├── selectyear.blade.php │ │ ├── tel.blade.php │ │ ├── text.blade.php │ │ ├── textarea.blade.php │ │ └── url.blade.php │ └── normal │ │ ├── checkbox.blade.php │ │ ├── date.blade.php │ │ ├── email.blade.php │ │ ├── file.blade.php │ │ ├── number.blade.php │ │ ├── password.blade.php │ │ ├── radio.blade.php │ │ ├── range.blade.php │ │ ├── search.blade.php │ │ ├── select.blade.php │ │ ├── selectmonth.blade.php │ │ ├── selectrange.blade.php │ │ ├── selectyear.blade.php │ │ ├── tel.blade.php │ │ ├── text.blade.php │ │ ├── textarea.blade.php │ │ └── url.blade.php │ ├── bootstrap4 │ ├── horizon │ │ ├── checkbox.blade.php │ │ ├── date.blade.php │ │ ├── email.blade.php │ │ ├── file.blade.php │ │ ├── image.blade.php │ │ ├── number.blade.php │ │ ├── password.blade.php │ │ ├── radio.blade.php │ │ ├── range.blade.php │ │ ├── search.blade.php │ │ ├── select.blade.php │ │ ├── selectmonth.blade.php │ │ ├── selectmulti.blade.php │ │ ├── selectrange.blade.php │ │ ├── tel.blade.php │ │ ├── text.blade.php │ │ ├── textarea.blade.php │ │ └── url.blade.php │ └── regular │ │ ├── checkbox.blade.php │ │ ├── date.blade.php │ │ ├── email.blade.php │ │ ├── file.blade.php │ │ ├── image.blade.php │ │ ├── number.blade.php │ │ ├── password.blade.php │ │ ├── radio.blade.php │ │ ├── range.blade.php │ │ ├── search.blade.php │ │ ├── select.blade.php │ │ ├── selectmonth.blade.php │ │ ├── selectmulti.blade.php │ │ ├── selectrange.blade.php │ │ ├── selectyear.blade.php │ │ ├── tel.blade.php │ │ ├── text.blade.php │ │ ├── textarea.blade.php │ │ └── url.blade.php │ ├── bootstrap5 │ ├── group │ │ ├── checkbox.blade.php │ │ ├── date.blade.php │ │ ├── email.blade.php │ │ ├── file.blade.php │ │ ├── number.blade.php │ │ ├── password.blade.php │ │ ├── radio.blade.php │ │ ├── range.blade.php │ │ ├── search.blade.php │ │ ├── select.blade.php │ │ ├── selectmonth.blade.php │ │ ├── selectrange.blade.php │ │ ├── selectyear.blade.php │ │ ├── tel.blade.php │ │ ├── text.blade.php │ │ ├── textarea.blade.php │ │ └── url.blade.php │ ├── horizon │ │ ├── checkbox.blade.php │ │ ├── date.blade.php │ │ ├── email.blade.php │ │ ├── file.blade.php │ │ ├── number.blade.php │ │ ├── radio.blade.php │ │ ├── search.blade.php │ │ ├── select.blade.php │ │ ├── selectmonth.blade.php │ │ ├── selectrange.blade.php │ │ ├── selectyear.blade.php │ │ ├── tel.blade.php │ │ ├── text.blade.php │ │ ├── textarea.blade.php │ │ └── url.blade.php │ ├── inline │ │ ├── checkbox.blade.php │ │ ├── date.blade.php │ │ ├── email.blade.php │ │ ├── file.blade.php │ │ ├── number.blade.php │ │ ├── password.blade.php │ │ ├── radio.blade.php │ │ ├── range.blade.php │ │ ├── search.blade.php │ │ ├── select.blade.php │ │ ├── selectmonth.blade.php │ │ ├── selectrange.blade.php │ │ ├── selectyear.blade.php │ │ ├── tel.blade.php │ │ ├── text.blade.php │ │ ├── textarea.blade.php │ │ └── url.blade.php │ └── normal │ │ ├── checkbox.blade.php │ │ ├── date.blade.php │ │ ├── email.blade.php │ │ ├── file.blade.php │ │ ├── number.blade.php │ │ ├── password.blade.php │ │ ├── radio.blade.php │ │ ├── range.blade.php │ │ ├── search.blade.php │ │ ├── select.blade.php │ │ ├── selectmonth.blade.php │ │ ├── selectrange.blade.php │ │ ├── selectyear.blade.php │ │ ├── tel.blade.php │ │ ├── text.blade.php │ │ ├── textarea.blade.php │ │ └── url.blade.php │ ├── examples │ ├── bootstrap3.blade.php │ ├── bootstrap4.blade.php │ ├── bootstrap4 │ │ ├── horizon.blade.php │ │ └── regular.blade.php │ ├── bootstrap5.blade.php │ └── html.blade.php │ └── html │ ├── group │ ├── checkbox.blade.php │ ├── date.blade.php │ ├── email.blade.php │ ├── file.blade.php │ ├── number.blade.php │ ├── password.blade.php │ ├── radio.blade.php │ ├── range.blade.php │ ├── search.blade.php │ ├── select.blade.php │ ├── selectmonth.blade.php │ ├── selectrange.blade.php │ ├── selectyear.blade.php │ ├── tel.blade.php │ ├── text.blade.php │ ├── textarea.blade.php │ └── url.blade.php │ ├── horizon │ ├── checkbox.blade.php │ ├── date.blade.php │ ├── email.blade.php │ ├── file.blade.php │ ├── number.blade.php │ ├── radio.blade.php │ ├── search.blade.php │ ├── select.blade.php │ ├── selectmonth.blade.php │ ├── selectrange.blade.php │ ├── selectyear.blade.php │ ├── tel.blade.php │ ├── text.blade.php │ ├── textarea.blade.php │ └── url.blade.php │ ├── inline │ ├── checkbox.blade.php │ ├── date.blade.php │ ├── email.blade.php │ ├── file.blade.php │ ├── number.blade.php │ ├── password.blade.php │ ├── radio.blade.php │ ├── range.blade.php │ ├── search.blade.php │ ├── select.blade.php │ ├── selectmonth.blade.php │ ├── selectrange.blade.php │ ├── selectyear.blade.php │ ├── tel.blade.php │ ├── text.blade.php │ ├── textarea.blade.php │ └── url.blade.php │ └── normal │ ├── checkbox.blade.php │ ├── date.blade.php │ ├── email.blade.php │ ├── file.blade.php │ ├── number.blade.php │ ├── password.blade.php │ ├── radio.blade.php │ ├── range.blade.php │ ├── search.blade.php │ ├── select.blade.php │ ├── selectmonth.blade.php │ ├── selectrange.blade.php │ ├── selectyear.blade.php │ ├── tel.blade.php │ ├── text.blade.php │ ├── textarea.blade.php │ └── url.blade.php ├── routes └── web.php └── src ├── Facades └── Form.php ├── FormBuilder.php ├── FormServiceProvider.php ├── Providers ├── HorizontalFieldServiceProvider.php ├── LabelServiceProvider.php └── RegularFieldServiceProvider.php ├── Traits ├── ComponentTrait.php └── FormAccessibleTrait.php └── helpers.php /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to `form` will be documented in this file. 4 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Mohammad Hafijul Islam 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | Use this section to tell people about which versions of your project are 6 | currently being supported with security updates. 7 | 8 | 9 | | Version | Supported | 10 | | ------- | ------------------ | 11 | | 0.1.1 | :white_check_mark: | 12 | | 0.1.0 | :white_check_mark: | 13 | | 0.0.9 | :x: | 14 | | < 0.0.8 | :x: | 15 | 16 | ## Reporting a Vulnerability 17 | 18 | Use this section to tell people how to report a vulnerability. 19 | 20 | Tell them where to go, how often they can expect to get an update on a 21 | reported vulnerability, what to expect if the vulnerability is accepted or 22 | declined, etc. 23 | -------------------------------------------------------------------------------- /UPGRADE.md: -------------------------------------------------------------------------------- 1 | 0.1.0 2 | -------------------------------------------------------------------------------- /resources/css/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laraflow/form/b316524a392f5bb7be4b1d82bddb8e0c0676af74/resources/css/app.css -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laraflow/form/b316524a392f5bb7be4b1d82bddb8e0c0676af74/resources/js/app.js -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::checkbox($name, $checked, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && ($position = 'before')) 12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 21 | @if (isset($position) && ($position = 'after')) 22 |
23 | 24 | @if (!empty($icon)) 25 | 26 | @endif 27 | 28 |
29 | @endif 30 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 31 |
32 |
33 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/email.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && $position == 'before') 12 |
13 |
14 | @if (!empty($icon)) 15 | 16 | @endif 17 |
18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 21 | 22 | @if (isset($position) && $position == 'after') 23 |
24 |
25 | @if (!empty($icon)) 26 | 27 | @endif 28 |
29 |
30 | @endif 31 |
32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/file.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::fLabel($name, $label, $required, ['class' => 'd-block mb-2']) !!} 3 |
4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | @if (isset($position) && ($position = 'before')) 11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | @endif 19 | {!! \Laraflow\Form\Facades\Form::file($name, $required, $attributes) !!} 20 | @if (isset($position) && ($position = 'after')) 21 |
22 | 23 | @if (!empty($icon)) 24 | 25 | @endif 26 | 27 |
28 | @endif 29 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'custom-file-label']) !!} 30 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 31 |
32 |
33 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && ($position = 'before')) 12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 21 | @if (isset($position) && ($position = 'after')) 22 |
23 | 24 | @if (!empty($icon)) 25 | 26 | @endif 27 | 28 |
29 | @endif 30 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 31 |
32 |
33 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && $position == 'before') 12 |
13 |
14 | @if (!empty($icon)) 15 | 16 | @endif 17 |
18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::password($name, $required, $attributes) !!} 21 | 22 | @if (isset($position) && $position == 'after') 23 |
24 |
25 | @if (!empty($icon)) 26 | 27 | @endif 28 |
29 |
30 | @endif 31 |
32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/radio.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 |
6 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 7 | 8 | @php 9 | 10 | if (isset($required) && $required == true) { 11 | $options['required'] = 'required'; 12 | } 13 | @endphp 14 | 15 | {!! \Laraflow\Form\Facades\Form::radio($name, $checked, $required, $attributes) !!} 16 | 17 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 18 |
19 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/range.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | {!! \Laraflow\Form\Facades\Form::range($name, $default, $required, $attributes) !!} 19 | 20 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 21 |
22 |
23 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | {!! \Laraflow\Form\Facades\Form::search($name, $default, $required, $attributes) !!} 19 | 20 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 21 |
22 |
23 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/selectmonth.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/selectrange.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/selectyear.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectYear($name, $begin, $end, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/tel.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && $position == 'before') 12 |
13 |
14 | @if (!empty($icon)) 15 | 16 | @endif 17 |
18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 21 | 22 | @if (isset($position) && $position == 'after') 23 |
24 |
25 | @if (!empty($icon)) 26 | 27 | @endif 28 |
29 |
30 | @endif 31 |
32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/text.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && $position == 'before') 12 |
13 |
14 | @if (!empty($icon)) 15 | 16 | @endif 17 |
18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::text($name, $default, $required, $attributes) !!} 21 | 22 | @if (isset($position) && $position == 'after') 23 |
24 |
25 | @if (!empty($icon)) 26 | 27 | @endif 28 |
29 |
30 | @endif 31 |
32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/textarea.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 19 | 20 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 21 |
22 |
23 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/group/url.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 19 | 20 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 21 |
22 |
23 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | 6 | $field_size = abs(12 - $col_size); 7 | $options = ['class' => 'form-control ']; 8 | 9 | if (isset($required) && $required == true) { 10 | $options['required'] = 'required'; 11 | } 12 | 13 | @endphp 14 | 15 |
16 | {!! \Laraflow\Form\Facades\Form::checkbox($name, $checked, $required, $attributes) !!} 17 | 18 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 19 |
20 | 21 |
22 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/email.blade.php: -------------------------------------------------------------------------------- 1 | field 2 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/file.blade.php: -------------------------------------------------------------------------------- 1 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required) !!} 2 | 3 | @php 4 | $options = ['class' => 'form-control col-md-10']; 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::file($name, $default, $required, $attributes) !!} 12 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 14 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 15 |
16 |
17 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/radio.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | 6 | $field_size = abs(12 - $col_size); 7 | $options = ['class' => 'form-control ']; 8 | 9 | if (isset($required) && $required == true) { 10 | $options['required'] = 'required'; 11 | } 12 | 13 | @endphp 14 | 15 |
16 | {!! \Laraflow\Form\Facades\Form::radio($name, $checked, $required, $attributes) !!} 17 | 18 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 19 |
20 | 21 |
22 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control custom-select']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/selectmonth.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control custom-select']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/selectrange.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control custom-select']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/selectyear.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control custom-select']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::selectYear($name, $begin, $end, $selected, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/tel.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/text.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/textarea.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 14 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 15 |
16 |
17 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/horizon/url.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 14 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 15 |
16 |
17 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::checkbox($name, $checked, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && ($position = 'before')) 13 |
14 | 15 | @if (!empty($icon)) 16 | 17 | @endif 18 | 19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 22 | @if (isset($position) && ($position = 'after')) 23 |
24 | 25 | @if (!empty($icon)) 26 | 27 | @endif 28 | 29 |
30 | @endif 31 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 32 |
33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/email.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && $position == 'before') 13 |
14 |
15 | @if (!empty($icon)) 16 | 17 | @endif 18 |
19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 22 | 23 | @if (isset($position) && $position == 'after') 24 |
25 |
26 | @if (!empty($icon)) 27 | 28 | @endif 29 |
30 |
31 | @endif 32 |
33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/file.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::fLabel($name, $label, $required, ['class' => 'd-block mb-2']) !!} 3 |
4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | @if (isset($position) && ($position = 'before')) 12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::file($name, $required, $attributes) !!} 21 | @if (isset($position) && ($position = 'after')) 22 |
23 | 24 | @if (!empty($icon)) 25 | 26 | @endif 27 | 28 |
29 | @endif 30 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'custom-file-label']) !!} 31 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 32 |
33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && ($position = 'before')) 13 |
14 | 15 | @if (!empty($icon)) 16 | 17 | @endif 18 | 19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 22 | @if (isset($position) && ($position = 'after')) 23 |
24 | 25 | @if (!empty($icon)) 26 | 27 | @endif 28 | 29 |
30 | @endif 31 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 32 |
33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && $position == 'before') 13 |
14 |
15 | @if (!empty($icon)) 16 | 17 | @endif 18 |
19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::password($name, $required, $attributes) !!} 22 | 23 | @if (isset($position) && $position == 'after') 24 |
25 |
26 | @if (!empty($icon)) 27 | 28 | @endif 29 |
30 |
31 | @endif 32 |
33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/radio.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 |
6 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 7 | 8 | @php 9 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 10 | 11 | if (isset($required) && $required == true) { 12 | $options['required'] = 'required'; 13 | } 14 | @endphp 15 | 16 | {!! \Laraflow\Form\Facades\Form::radio($name, $checked, $required, $attributes) !!} 17 | 18 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 19 |
20 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/range.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::range($name, $default, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::search($name, $default, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/selectmonth.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/selectrange.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/selectyear.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectYear($name, $begin, $end, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/tel.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && $position == 'before') 13 |
14 |
15 | @if (!empty($icon)) 16 | 17 | @endif 18 |
19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 22 | 23 | @if (isset($position) && $position == 'after') 24 |
25 |
26 | @if (!empty($icon)) 27 | 28 | @endif 29 |
30 |
31 | @endif 32 |
33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/text.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && $position == 'before') 13 |
14 |
15 | @if (!empty($icon)) 16 | 17 | @endif 18 |
19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::text($name, $default, $required, $attributes) !!} 22 | 23 | @if (isset($position) && $position == 'after') 24 |
25 |
26 | @if (!empty($icon)) 27 | 28 | @endif 29 |
30 |
31 | @endif 32 |
33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/textarea.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/inline/url.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @php 3 | $options = ['class' => 'form-check-input', 'id' => $name]; 4 | 5 | if (isset($required) && $required == true) { 6 | $options['required'] = 'required'; 7 | } 8 | 9 | if (isset($attributes['inline'])) { 10 | unset($attributes['inline']); 11 | } 12 | 13 | @endphp 14 | 15 |
16 | {!! \Laraflow\Form\Facades\Form::checkbox($name, $default, $checked, $required, $attributes) !!} 17 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'form-check-label']) !!} 18 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 19 |
20 |
21 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/email.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 11 | 12 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 13 |
14 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 12 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 13 |
14 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::password($name, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/radio.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 |
6 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 7 | 8 | @php 9 | 10 | if (isset($required) && $required == true) { 11 | $options['required'] = 'required'; 12 | } 13 | @endphp 14 | 15 | {!! \Laraflow\Form\Facades\Form::radio($name, $checked, $required, $attributes) !!} 16 | 17 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 18 |
19 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/range.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::range($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::search($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/selectmonth.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/selectrange.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/selectyear.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::selectYear($name, $begin, $end, $selected, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/tel.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/text.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::text($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/textarea.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'rows' => 3]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/bootstrap3/normal/url.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 4 | 'class' => 'col-form-label col-sm-' . $col_size, 5 | ]) !!} 6 | 7 | @php 8 | $options = ['class' => 'custom-control-input ']; 9 | 10 | if (isset($required) && $required == true) { 11 | $options['required'] = 'required'; 12 | } 13 | @endphp 14 | 15 |
16 | @foreach ($values as $value => $display) 17 | @php 18 | $id = $name . '-checkbox-' . $value; 19 | $options['id'] = $id; 20 | @endphp 21 | 22 |
23 | {!! \Laraflow\Form\Facades\Form::checkbox($name, $value, in_array($value, $checked), $required, $attributes) !!} 24 | 25 | {!! \Laraflow\Form\Facades\Form::label($id, $display, false, ['class' => 'custom-control-label']) !!} 26 |
27 | @endforeach 28 | 29 | {!! \Laraflow\Form\Facades\Form::error($name . '[]') !!} 30 |
31 |
32 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | 6 | @php 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/email.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | 6 | @php 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/file.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | @php 6 | $options = ['class' => 'form-control custom-file-input ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 |
14 | {!! \Laraflow\Form\Facades\Form::label('', 'Choose file...', false, [ 15 | 'class' => 'custom-file-label', 16 | 'id' => $name . '_file_label', 17 | ]) !!} 18 | {!! \Laraflow\Form\Facades\Form::file($name, $required, $attributes) !!} 19 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 20 |
21 | 28 |
29 |
30 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | 6 | @php 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 |
17 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | 6 | @php 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::password($name, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/radio.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 4 | 'class' => 'col-form-label col-sm-' . $col_size, 5 | ]) !!} 6 | 7 | @php 8 | $options = ['class' => 'custom-control-input ']; 9 | 10 | if (isset($required) && $required == true) { 11 | $options['required'] = 'required'; 12 | } 13 | @endphp 14 |
15 | @foreach ($values as $value => $display) 16 | @php 17 | $id = $name . '-radio-' . $value; 18 | $options['id'] = $id; 19 | @endphp 20 | 21 |
22 | {!! \Laraflow\Form\Facades\Form::radio($name, $value, $value == $checked, $required, $attributes) !!} 23 | 24 | {!! \Laraflow\Form\Facades\Form::label($id, $display, false, ['class' => 'custom-control-label']) !!} 25 |
26 | @endforeach 27 | 28 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 29 |
30 |
31 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/range.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | 6 | @php 7 | $options = ['class' => 'form-control custom-range ']; 8 | 9 | if (isset($required) && $required == true) { 10 | $options['required'] = 'required'; 11 | } 12 | @endphp 13 |
14 | {!! \Laraflow\Form\Facades\Form::range($name, $default, $required, $attributes) !!} 15 | @if (isset($attributes['min']) && isset($attributes['max'])) 16 |
17 |
{{ $attributes['min'] }}
18 |
{{ $attributes['max'] }}
19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | 6 | @php 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::search($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | 6 | @php 7 | $options = ['class' => 'form-control custom-select']; 8 | 9 | if (isset($required) && $required == true) { 10 | $options['required'] = 'required'; 11 | } 12 | @endphp 13 |
14 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 15 | 16 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 17 |
18 |
19 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/selectmonth.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | 6 | @php 7 | $options = ['class' => 'form-control custom-select']; 8 | 9 | if (isset($required) && $required == true) { 10 | $options['required'] = 'required'; 11 | } 12 | @endphp 13 |
14 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 15 | 16 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 17 |
18 |
19 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/selectmulti.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | 6 | @php 7 | $options = ['class' => 'form-control custom-select', 'multiple' => 'multiple']; 8 | $options['id'] = $name; 9 | 10 | if (isset($required) && $required == true) { 11 | $options['required'] = 'required'; 12 | } 13 | @endphp 14 |
15 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 16 | 17 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 18 |
19 |
20 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/selectrange.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | 6 | @php 7 | $options = ['class' => 'form-control custom-select']; 8 | 9 | if (isset($required) && $required == true) { 10 | $options['required'] = 'required'; 11 | } 12 | @endphp 13 |
14 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 15 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/tel.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | 6 | @php 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/text.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | 6 | @php 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::text($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/textarea.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | 6 | @php 7 | $options = ['class' => 'form-control', 'rows' => 3]; 8 | 9 | if (isset($required) && $required == true) { 10 | $options['required'] = 'required'; 11 | } 12 | @endphp 13 |
14 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 15 | 16 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 17 |
18 |
19 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/horizon/url.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, [ 3 | 'class' => 'col-form-label col-sm-' . $col_size, 4 | ]) !!} 5 | 6 | @php 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | 5 | @php $attributes['class'][] = 'custom-control-input' @endphp 6 | 7 | @foreach ($values as $value => $display) 8 | @php 9 | $attributes['id'] = "{$name}-checkbox-{$value}"; 10 | @endphp 11 | 12 |
13 | {!! \Laraflow\Form\Facades\Form::checkbox($name, $value, in_array($value, $checked), $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::label($attributes['id'], $display, false, ['class' => 'custom-control-label']) !!} 16 |
17 | @endforeach 18 | 19 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 20 |
21 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | 5 | @if (isset($attributes['icon'])) 6 |
7 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_PREPEND) 8 |
9 |
10 | @if (isset($attributes['icon'][0])) 11 | 12 | @endif 13 |
14 |
15 | @endif 16 | 17 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 18 | 19 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_APPEND) 20 |
21 |
22 | @if (!empty($attributes['icon'][0])) 23 | 24 | @endif 25 |
26 |
27 | @endif 28 |
29 | @else 30 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 31 | @endif 32 | 33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/email.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | 5 | @if (isset($attributes['icon'])) 6 |
7 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_PREPEND) 8 |
9 |
10 | @if (isset($attributes['icon'][0])) 11 | 12 | @endif 13 |
14 |
15 | @endif 16 | 17 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 18 | 19 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_APPEND) 20 |
21 |
22 | @if (!empty($attributes['icon'][0])) 23 | 24 | @endif 25 |
26 |
27 | @endif 28 |
29 | @else 30 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 31 | @endif 32 | 33 | 34 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 35 |
36 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/file.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | 5 | @php $attributes['class'][] = 'custom-file-input'; @endphp 6 | @php $attributes['id'] = $name; @endphp 7 | 8 |
9 | {!! \Laraflow\Form\Facades\Form::label('', 'Choose file...', false, [ 10 | 'class' => 'custom-file-label', 11 | 'id' => $name . '_file_label', 12 | ]) !!} 13 | {!! \Laraflow\Form\Facades\Form::file($name, $required, $attributes) !!} 14 |
15 | 22 | 23 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 24 |
25 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | 5 | @if (isset($attributes['icon'])) 6 |
7 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_PREPEND) 8 |
9 |
10 | @if (isset($attributes['icon'][0])) 11 | 12 | @endif 13 |
14 |
15 | @endif 16 | 17 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 18 | 19 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_APPEND) 20 |
21 |
22 | @if (!empty($attributes['icon'][0])) 23 | 24 | @endif 25 |
26 |
27 | @endif 28 |
29 | @else 30 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 31 | @endif 32 | 33 | 34 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 35 |
36 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | @if (isset($attributes['icon'])) 5 |
6 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_PREPEND) 7 |
8 |
9 | @if (isset($attributes['icon'][0])) 10 | 11 | @endif 12 |
13 |
14 | @endif 15 | 16 | {!! \Laraflow\Form\Facades\Form::password($name, $required, $attributes) !!} 17 | 18 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_APPEND) 19 |
20 |
21 | @if (!empty($attributes['icon'][0])) 22 | 23 | @endif 24 |
25 |
26 | @endif 27 |
28 | @else 29 | {!! \Laraflow\Form\Facades\Form::password($name, $required, $attributes) !!} 30 | @endif 31 | 32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/radio.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | @php $attributes['class'][] = 'custom-control-input' @endphp 4 | 5 | @foreach ($values ?? [] as $value => $display) 6 | @php $attributes['id'] = $name . '-radio-' . $value @endphp 7 | 8 |
9 | {!! \Laraflow\Form\Facades\Form::radio($name, $value, $value == $checked, $required, $attributes) !!} 10 | 11 | {!! \Laraflow\Form\Facades\Form::label($attributes['id'], $display, false, ['class' => 'custom-control-label']) !!} 12 |
13 | @endforeach 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/range.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | @php $attributes['class'][] = 'custom-range' @endphp 5 | 6 | {!! \Laraflow\Form\Facades\Form::range($name, $default, $required, $attributes) !!} 7 | 8 | @if (isset($attributes['min']) && isset($attributes['max'])) 9 |
10 |
{{ $attributes['min'] }}
11 |
{{ $attributes['max'] }}
12 |
13 | @endif 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | @if (isset($attributes['icon'])) 5 |
6 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_PREPEND) 7 |
8 |
9 | @if (isset($attributes['icon'][0])) 10 | 11 | @endif 12 |
13 |
14 | @endif 15 | 16 | {!! \Laraflow\Form\Facades\Form::search($name, $default, $required, $attributes) !!} 17 | 18 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_APPEND) 19 |
20 |
21 | @if (!empty($attributes['icon'][0])) 22 | 23 | @endif 24 |
25 |
26 | @endif 27 |
28 | @else 29 | {!! \Laraflow\Form\Facades\Form::search($name, $default, $required, $attributes) !!} 30 | @endif 31 | 32 | 33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | @php $attributes['class'][] = 'custom-select' @endphp 5 | @if (isset($attributes['icon'])) 6 |
7 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_PREPEND) 8 |
9 |
10 | @if (isset($attributes['icon'][0])) 11 | 12 | @endif 13 |
14 |
15 | @endif 16 | 17 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 18 | 19 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_APPEND) 20 |
21 |
22 | @if (!empty($attributes['icon'][0])) 23 | 24 | @endif 25 |
26 |
27 | @endif 28 |
29 | @else 30 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 31 | @endif 32 | 33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/selectmonth.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | @php $attributes['class'][] = 'custom-select' @endphp 5 | @if (isset($attributes['icon'])) 6 |
7 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_PREPEND) 8 |
9 |
10 | @if (isset($attributes['icon'][0])) 11 | 12 | @endif 13 |
14 |
15 | @endif 16 | 17 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 18 | 19 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_APPEND) 20 |
21 |
22 | @if (!empty($attributes['icon'][0])) 23 | 24 | @endif 25 |
26 |
27 | @endif 28 |
29 | @else 30 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 31 | @endif 32 | 33 | 34 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 35 |
36 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/selectrange.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | @php $attributes['class'][] = 'custom-select' @endphp 5 | @if (isset($attributes['icon'])) 6 |
7 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == 'before') 8 |
9 |
10 | @if (isset($attributes['icon'][0])) 11 | 12 | @endif 13 |
14 |
15 | @endif 16 | 17 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 18 | 19 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == 'after') 20 |
21 |
22 | @if (!empty($attributes['icon'][0])) 23 | 24 | @endif 25 |
26 |
27 | @endif 28 |
29 | @else 30 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 31 | @endif 32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/selectyear.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | @php $attributes['class'][] = 'custom-select' @endphp 5 | @if (isset($attributes['icon'])) 6 |
7 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_PREPEND) 8 |
9 |
10 | @if (isset($attributes['icon'][0])) 11 | 12 | @endif 13 |
14 |
15 | @endif 16 | 17 | {!! \Laraflow\Form\Facades\Form::selectYear($name, $begin, $end, $selected, $required, $attributes) !!} 18 | 19 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_APPEND) 20 |
21 |
22 | @if (!empty($attributes['icon'][0])) 23 | 24 | @endif 25 |
26 |
27 | @endif 28 |
29 | @else 30 | {!! \Laraflow\Form\Facades\Form::selectYear($name, $begin, $end, $selected, $required, $attributes) !!} 31 | @endif 32 | 33 | 34 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 35 |
36 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/tel.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | @if (isset($attributes['icon'])) 5 |
6 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_PREPEND) 7 |
8 |
9 | @if (isset($attributes['icon'][0])) 10 | 11 | @endif 12 |
13 |
14 | @endif 15 | 16 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 17 | 18 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_APPEND) 19 |
20 |
21 | @if (!empty($attributes['icon'][0])) 22 | 23 | @endif 24 |
25 |
26 | @endif 27 |
28 | @else 29 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 30 | @endif 31 | 32 | 33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/text.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | @if (isset($attributes['icon'])) 5 |
6 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_PREPEND) 7 |
8 |
9 | @if (isset($attributes['icon'][0])) 10 | 11 | @endif 12 |
13 |
14 | @endif 15 | 16 | {!! \Laraflow\Form\Facades\Form::text($name, $default, $required, $attributes) !!} 17 | 18 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_APPEND) 19 |
20 |
21 | @if (!empty($attributes['icon'][0])) 22 | 23 | @endif 24 |
25 |
26 | @endif 27 |
28 | @else 29 | {!! \Laraflow\Form\Facades\Form::text($name, $default, $required, $attributes) !!} 30 | @endif 31 | 32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/textarea.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | @php $attributes['rows'] = $attributes['rows'] ?? 3 @endphp 5 | @if (isset($attributes['icon'])) 6 |
7 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_PREPEND) 8 |
9 |
10 | @if (isset($attributes['icon'][0])) 11 | 12 | @endif 13 |
14 |
15 | @endif 16 | 17 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 18 | 19 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_APPEND) 20 |
21 |
22 | @if (!empty($attributes['icon'][0])) 23 | 24 | @endif 25 |
26 |
27 | @endif 28 |
29 | @else 30 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 31 | @endif 32 | 33 | 34 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 35 |
36 | -------------------------------------------------------------------------------- /resources/views/bootstrap4/regular/url.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 4 | @if (isset($attributes['icon'])) 5 |
6 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_PREPEND) 7 |
8 |
9 | @if (isset($attributes['icon'][0])) 10 | 11 | @endif 12 |
13 |
14 | @endif 15 | 16 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 17 | 18 | @if (isset($attributes['icon'][1]) && $attributes['icon'][1] == \Laraflow\Form\FormBuilder::ICON_APPEND) 19 |
20 |
21 | @if (!empty($attributes['icon'][0])) 22 | 23 | @endif 24 |
25 |
26 | @endif 27 |
28 | @else 29 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 30 | @endif 31 | 32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::checkbox($name, $checked, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && ($position = 'before')) 12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 21 | @if (isset($position) && ($position = 'after')) 22 |
23 | 24 | @if (!empty($icon)) 25 | 26 | @endif 27 | 28 |
29 | @endif 30 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 31 |
32 |
33 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/email.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && $position == 'before') 12 |
13 |
14 | @if (!empty($icon)) 15 | 16 | @endif 17 |
18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 21 | 22 | @if (isset($position) && $position == 'after') 23 |
24 |
25 | @if (!empty($icon)) 26 | 27 | @endif 28 |
29 |
30 | @endif 31 |
32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/file.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::fLabel($name, $label, $required, ['class' => 'd-block mb-2']) !!} 3 |
4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | @if (isset($position) && ($position = 'before')) 11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | @endif 19 | {!! \Laraflow\Form\Facades\Form::file($name, $required, $attributes) !!} 20 | @if (isset($position) && ($position = 'after')) 21 |
22 | 23 | @if (!empty($icon)) 24 | 25 | @endif 26 | 27 |
28 | @endif 29 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'custom-file-label']) !!} 30 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 31 |
32 |
33 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && ($position = 'before')) 12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 21 | @if (isset($position) && ($position = 'after')) 22 |
23 | 24 | @if (!empty($icon)) 25 | 26 | @endif 27 | 28 |
29 | @endif 30 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 31 |
32 |
33 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && $position == 'before') 12 |
13 |
14 | @if (!empty($icon)) 15 | 16 | @endif 17 |
18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::password($name, $required, $attributes) !!} 21 | 22 | @if (isset($position) && $position == 'after') 23 |
24 |
25 | @if (!empty($icon)) 26 | 27 | @endif 28 |
29 |
30 | @endif 31 |
32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/radio.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 |
6 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 7 | 8 | @php 9 | 10 | if (isset($required) && $required == true) { 11 | $options['required'] = 'required'; 12 | } 13 | @endphp 14 | 15 | {!! \Laraflow\Form\Facades\Form::radio($name, $checked, $required, $attributes) !!} 16 | 17 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 18 |
19 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/range.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | {!! \Laraflow\Form\Facades\Form::range($name, $default, $required, $attributes) !!} 19 | 20 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 21 |
22 |
23 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | {!! \Laraflow\Form\Facades\Form::search($name, $default, $required, $attributes) !!} 19 | 20 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 21 |
22 |
23 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/selectmonth.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/selectrange.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/selectyear.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectYear($name, $begin, $end, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/tel.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && $position == 'before') 12 |
13 |
14 | @if (!empty($icon)) 15 | 16 | @endif 17 |
18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 21 | 22 | @if (isset($position) && $position == 'after') 23 |
24 |
25 | @if (!empty($icon)) 26 | 27 | @endif 28 |
29 |
30 | @endif 31 |
32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/text.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && $position == 'before') 12 |
13 |
14 | @if (!empty($icon)) 15 | 16 | @endif 17 |
18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::text($name, $default, $required, $attributes) !!} 21 | 22 | @if (isset($position) && $position == 'after') 23 |
24 |
25 | @if (!empty($icon)) 26 | 27 | @endif 28 |
29 |
30 | @endif 31 |
32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/textarea.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 19 | 20 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 21 |
22 |
23 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/group/url.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 19 | 20 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 21 |
22 |
23 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | 6 | $field_size = abs(12 - $col_size); 7 | $options = ['class' => 'form-control ']; 8 | 9 | if (isset($required) && $required == true) { 10 | $options['required'] = 'required'; 11 | } 12 | 13 | @endphp 14 | 15 |
16 | {!! \Laraflow\Form\Facades\Form::checkbox($name, $checked, $required, $attributes) !!} 17 | 18 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 19 |
20 | 21 |
22 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/email.blade.php: -------------------------------------------------------------------------------- 1 | field 2 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/file.blade.php: -------------------------------------------------------------------------------- 1 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required) !!} 2 | 3 | @php 4 | $options = ['class' => 'form-control col-md-10']; 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::file($name, $default, $required, $attributes) !!} 12 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 14 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 15 |
16 |
17 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/radio.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | 6 | $field_size = abs(12 - $col_size); 7 | $options = ['class' => 'form-control ']; 8 | 9 | if (isset($required) && $required == true) { 10 | $options['required'] = 'required'; 11 | } 12 | 13 | @endphp 14 | 15 |
16 | {!! \Laraflow\Form\Facades\Form::radio($name, $checked, $required, $attributes) !!} 17 | 18 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 19 |
20 | 21 |
22 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control custom-select']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/selectmonth.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control custom-select']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/selectrange.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control custom-select']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/selectyear.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control custom-select']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::selectYear($name, $begin, $end, $selected, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/tel.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/text.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/textarea.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 14 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 15 |
16 |
17 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/horizon/url.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 14 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 15 |
16 |
17 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::checkbox($name, $checked, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && ($position = 'before')) 13 |
14 | 15 | @if (!empty($icon)) 16 | 17 | @endif 18 | 19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 22 | @if (isset($position) && ($position = 'after')) 23 |
24 | 25 | @if (!empty($icon)) 26 | 27 | @endif 28 | 29 |
30 | @endif 31 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 32 |
33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/email.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && $position == 'before') 13 |
14 |
15 | @if (!empty($icon)) 16 | 17 | @endif 18 |
19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 22 | 23 | @if (isset($position) && $position == 'after') 24 |
25 |
26 | @if (!empty($icon)) 27 | 28 | @endif 29 |
30 |
31 | @endif 32 |
33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/file.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::fLabel($name, $label, $required, ['class' => 'd-block mb-2']) !!} 3 |
4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | @if (isset($position) && ($position = 'before')) 12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::file($name, $required, $attributes) !!} 21 | @if (isset($position) && ($position = 'after')) 22 |
23 | 24 | @if (!empty($icon)) 25 | 26 | @endif 27 | 28 |
29 | @endif 30 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'custom-file-label']) !!} 31 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 32 |
33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && ($position = 'before')) 13 |
14 | 15 | @if (!empty($icon)) 16 | 17 | @endif 18 | 19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 22 | @if (isset($position) && ($position = 'after')) 23 |
24 | 25 | @if (!empty($icon)) 26 | 27 | @endif 28 | 29 |
30 | @endif 31 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 32 |
33 |
34 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && $position == 'before') 13 |
14 |
15 | @if (!empty($icon)) 16 | 17 | @endif 18 |
19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::password($name, $required, $attributes) !!} 22 | 23 | @if (isset($position) && $position == 'after') 24 |
25 |
26 | @if (!empty($icon)) 27 | 28 | @endif 29 |
30 |
31 | @endif 32 |
33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/radio.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 |
6 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 7 | 8 | @php 9 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 10 | 11 | if (isset($required) && $required == true) { 12 | $options['required'] = 'required'; 13 | } 14 | @endphp 15 | 16 | {!! \Laraflow\Form\Facades\Form::radio($name, $checked, $required, $attributes) !!} 17 | 18 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 19 |
20 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/range.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::range($name, $default, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::search($name, $default, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/selectmonth.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/selectrange.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/selectyear.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectYear($name, $begin, $end, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/tel.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && $position == 'before') 13 |
14 |
15 | @if (!empty($icon)) 16 | 17 | @endif 18 |
19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 22 | 23 | @if (isset($position) && $position == 'after') 24 |
25 |
26 | @if (!empty($icon)) 27 | 28 | @endif 29 |
30 |
31 | @endif 32 |
33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/text.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && $position == 'before') 13 |
14 |
15 | @if (!empty($icon)) 16 | 17 | @endif 18 |
19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::text($name, $default, $required, $attributes) !!} 22 | 23 | @if (isset($position) && $position == 'after') 24 |
25 |
26 | @if (!empty($icon)) 27 | 28 | @endif 29 |
30 |
31 | @endif 32 |
33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/textarea.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/inline/url.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @php 3 | $options = ['class' => 'form-check-input', 'id' => $name]; 4 | 5 | if (isset($required) && $required == true) { 6 | $options['required'] = 'required'; 7 | } 8 | 9 | if (isset($attributes['inline'])) { 10 | unset($attributes['inline']); 11 | } 12 | 13 | @endphp 14 | 15 |
16 | {!! \Laraflow\Form\Facades\Form::checkbox($name, $default, $checked, $required, $attributes) !!} 17 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'form-check-label']) !!} 18 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 19 |
20 |
21 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/email.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 11 | 12 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 13 |
14 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 12 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 13 |
14 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::password($name, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/radio.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 |
6 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 7 | 8 | @php 9 | 10 | if (isset($required) && $required == true) { 11 | $options['required'] = 'required'; 12 | } 13 | @endphp 14 | 15 | {!! \Laraflow\Form\Facades\Form::radio($name, $checked, $required, $attributes) !!} 16 | 17 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 18 |
19 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/range.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::range($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::search($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/selectmonth.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/selectrange.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/selectyear.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::selectYear($name, $begin, $end, $selected, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/tel.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/text.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::text($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/textarea.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'rows' => 3]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/bootstrap5/normal/url.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/examples/bootstrap5.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12 | 13 | Hello, world! 14 | 15 | 16 | 17 |

Hello, world!

18 | 19 | 20 | 21 | 22 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /resources/views/html/group/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::checkbox($name, $checked, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/html/group/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && ($position = 'before')) 12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 21 | @if (isset($position) && ($position = 'after')) 22 |
23 | 24 | @if (!empty($icon)) 25 | 26 | @endif 27 | 28 |
29 | @endif 30 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 31 |
32 |
33 | -------------------------------------------------------------------------------- /resources/views/html/group/email.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && $position == 'before') 12 |
13 |
14 | @if (!empty($icon)) 15 | 16 | @endif 17 |
18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 21 | 22 | @if (isset($position) && $position == 'after') 23 |
24 |
25 | @if (!empty($icon)) 26 | 27 | @endif 28 |
29 |
30 | @endif 31 |
32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/html/group/file.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::fLabel($name, $label, $required, ['class' => 'd-block mb-2']) !!} 3 |
4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | @if (isset($position) && ($position = 'before')) 11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | @endif 19 | {!! \Laraflow\Form\Facades\Form::file($name, $required, $attributes) !!} 20 | @if (isset($position) && ($position = 'after')) 21 |
22 | 23 | @if (!empty($icon)) 24 | 25 | @endif 26 | 27 |
28 | @endif 29 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'custom-file-label']) !!} 30 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 31 |
32 |
33 | -------------------------------------------------------------------------------- /resources/views/html/group/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && ($position = 'before')) 12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 21 | @if (isset($position) && ($position = 'after')) 22 |
23 | 24 | @if (!empty($icon)) 25 | 26 | @endif 27 | 28 |
29 | @endif 30 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 31 |
32 |
33 | -------------------------------------------------------------------------------- /resources/views/html/group/password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && $position == 'before') 12 |
13 |
14 | @if (!empty($icon)) 15 | 16 | @endif 17 |
18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::password($name, $required, $attributes) !!} 21 | 22 | @if (isset($position) && $position == 'after') 23 |
24 |
25 | @if (!empty($icon)) 26 | 27 | @endif 28 |
29 |
30 | @endif 31 |
32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/html/group/radio.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 |
6 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 7 | 8 | @php 9 | 10 | if (isset($required) && $required == true) { 11 | $options['required'] = 'required'; 12 | } 13 | @endphp 14 | 15 | {!! \Laraflow\Form\Facades\Form::radio($name, $checked, $required, $attributes) !!} 16 | 17 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 18 |
19 | -------------------------------------------------------------------------------- /resources/views/html/group/range.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | {!! \Laraflow\Form\Facades\Form::range($name, $default, $required, $attributes) !!} 19 | 20 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 21 |
22 |
23 | -------------------------------------------------------------------------------- /resources/views/html/group/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | {!! \Laraflow\Form\Facades\Form::search($name, $default, $required, $attributes) !!} 19 | 20 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 21 |
22 |
23 | -------------------------------------------------------------------------------- /resources/views/html/group/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/html/group/selectmonth.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/html/group/selectrange.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/html/group/selectyear.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectYear($name, $begin, $end, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/html/group/tel.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && $position == 'before') 12 |
13 |
14 | @if (!empty($icon)) 15 | 16 | @endif 17 |
18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 21 | 22 | @if (isset($position) && $position == 'after') 23 |
24 |
25 | @if (!empty($icon)) 26 | 27 | @endif 28 |
29 |
30 | @endif 31 |
32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/html/group/text.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 | @if (isset($position) && $position == 'before') 12 |
13 |
14 | @if (!empty($icon)) 15 | 16 | @endif 17 |
18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::text($name, $default, $required, $attributes) !!} 21 | 22 | @if (isset($position) && $position == 'after') 23 |
24 |
25 | @if (!empty($icon)) 26 | 27 | @endif 28 |
29 |
30 | @endif 31 |
32 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 33 |
34 | -------------------------------------------------------------------------------- /resources/views/html/group/textarea.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 19 | 20 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 21 |
22 |
23 | -------------------------------------------------------------------------------- /resources/views/html/group/url.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 |
11 |
12 | 13 | @if (!empty($icon)) 14 | 15 | @endif 16 | 17 |
18 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 19 | 20 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 21 |
22 |
23 | -------------------------------------------------------------------------------- /resources/views/html/horizon/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | 6 | $field_size = abs(12 - $col_size); 7 | $options = ['class' => 'form-control ']; 8 | 9 | if (isset($required) && $required == true) { 10 | $options['required'] = 'required'; 11 | } 12 | 13 | @endphp 14 | 15 |
16 | {!! \Laraflow\Form\Facades\Form::checkbox($name, $checked, $required, $attributes) !!} 17 | 18 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 19 |
20 | 21 |
22 | -------------------------------------------------------------------------------- /resources/views/html/horizon/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/html/horizon/email.blade.php: -------------------------------------------------------------------------------- 1 | field 2 | -------------------------------------------------------------------------------- /resources/views/html/horizon/file.blade.php: -------------------------------------------------------------------------------- 1 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required) !!} 2 | 3 | @php 4 | $options = ['class' => 'form-control col-md-10']; 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::file($name, $default, $required, $attributes) !!} 12 | -------------------------------------------------------------------------------- /resources/views/html/horizon/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 14 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 15 |
16 |
17 | -------------------------------------------------------------------------------- /resources/views/html/horizon/radio.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | 6 | $field_size = abs(12 - $col_size); 7 | $options = ['class' => 'form-control ']; 8 | 9 | if (isset($required) && $required == true) { 10 | $options['required'] = 'required'; 11 | } 12 | 13 | @endphp 14 | 15 |
16 | {!! \Laraflow\Form\Facades\Form::radio($name, $checked, $required, $attributes) !!} 17 | 18 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 19 |
20 | 21 |
22 | -------------------------------------------------------------------------------- /resources/views/html/horizon/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/html/horizon/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control custom-select']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/html/horizon/selectmonth.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control custom-select']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/html/horizon/selectrange.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control custom-select']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/html/horizon/selectyear.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control custom-select']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::selectYear($name, $begin, $end, $selected, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/html/horizon/tel.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/html/horizon/text.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 14 | 15 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/html/horizon/textarea.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 14 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 15 |
16 |
17 | -------------------------------------------------------------------------------- /resources/views/html/horizon/url.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::hLabel($name, $label, $required, $col_size) !!} 3 | 4 | @php 5 | $field_size = abs(12 - $col_size); 6 | $options = ['class' => 'form-control ']; 7 | 8 | if (isset($required) && $required == true) { 9 | $options['required'] = 'required'; 10 | } 11 | @endphp 12 |
13 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 14 | {!! \Laraflow\Form\Facades\Form::hError($name, $msg) !!} 15 |
16 |
17 | -------------------------------------------------------------------------------- /resources/views/html/inline/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::checkbox($name, $checked, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/html/inline/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && ($position = 'before')) 13 |
14 | 15 | @if (!empty($icon)) 16 | 17 | @endif 18 | 19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 22 | @if (isset($position) && ($position = 'after')) 23 |
24 | 25 | @if (!empty($icon)) 26 | 27 | @endif 28 | 29 |
30 | @endif 31 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 32 |
33 |
34 | -------------------------------------------------------------------------------- /resources/views/html/inline/email.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && $position == 'before') 13 |
14 |
15 | @if (!empty($icon)) 16 | 17 | @endif 18 |
19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 22 | 23 | @if (isset($position) && $position == 'after') 24 |
25 |
26 | @if (!empty($icon)) 27 | 28 | @endif 29 |
30 |
31 | @endif 32 |
33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/html/inline/file.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::fLabel($name, $label, $required, ['class' => 'd-block mb-2']) !!} 3 |
4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | @if (isset($position) && ($position = 'before')) 12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | @endif 20 | {!! \Laraflow\Form\Facades\Form::file($name, $required, $attributes) !!} 21 | @if (isset($position) && ($position = 'after')) 22 |
23 | 24 | @if (!empty($icon)) 25 | 26 | @endif 27 | 28 |
29 | @endif 30 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'custom-file-label']) !!} 31 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 32 |
33 |
34 | -------------------------------------------------------------------------------- /resources/views/html/inline/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && ($position = 'before')) 13 |
14 | 15 | @if (!empty($icon)) 16 | 17 | @endif 18 | 19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 22 | @if (isset($position) && ($position = 'after')) 23 |
24 | 25 | @if (!empty($icon)) 26 | 27 | @endif 28 | 29 |
30 | @endif 31 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 32 |
33 |
34 | -------------------------------------------------------------------------------- /resources/views/html/inline/password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && $position == 'before') 13 |
14 |
15 | @if (!empty($icon)) 16 | 17 | @endif 18 |
19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::password($name, $required, $attributes) !!} 22 | 23 | @if (isset($position) && $position == 'after') 24 |
25 |
26 | @if (!empty($icon)) 27 | 28 | @endif 29 |
30 |
31 | @endif 32 |
33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/html/inline/radio.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 |
6 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 7 | 8 | @php 9 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 10 | 11 | if (isset($required) && $required == true) { 12 | $options['required'] = 'required'; 13 | } 14 | @endphp 15 | 16 | {!! \Laraflow\Form\Facades\Form::radio($name, $checked, $required, $attributes) !!} 17 | 18 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 19 |
20 | -------------------------------------------------------------------------------- /resources/views/html/inline/range.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::range($name, $default, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/html/inline/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::search($name, $default, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/html/inline/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/html/inline/selectmonth.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/html/inline/selectrange.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/html/inline/selectyear.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::selectYear($name, $begin, $end, $selected, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/html/inline/tel.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && $position == 'before') 13 |
14 |
15 | @if (!empty($icon)) 16 | 17 | @endif 18 |
19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 22 | 23 | @if (isset($position) && $position == 'after') 24 |
25 |
26 | @if (!empty($icon)) 27 | 28 | @endif 29 |
30 |
31 | @endif 32 |
33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/html/inline/text.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 | @if (isset($position) && $position == 'before') 13 |
14 |
15 | @if (!empty($icon)) 16 | 17 | @endif 18 |
19 |
20 | @endif 21 | {!! \Laraflow\Form\Facades\Form::text($name, $default, $required, $attributes) !!} 22 | 23 | @if (isset($position) && $position == 'after') 24 |
25 |
26 | @if (!empty($icon)) 27 | 28 | @endif 29 |
30 |
31 | @endif 32 |
33 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 34 |
35 | -------------------------------------------------------------------------------- /resources/views/html/inline/textarea.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/html/inline/url.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'd-none']) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'placeholder' => $attributes['placeholder'] ?? $label]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 |
12 |
13 | 14 | @if (!empty($icon)) 15 | 16 | @endif 17 | 18 |
19 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 20 | 21 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /resources/views/html/normal/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @php 3 | $options = ['class' => 'form-check-input', 'id' => $name]; 4 | 5 | if (isset($required) && $required == true) { 6 | $options['required'] = 'required'; 7 | } 8 | 9 | if (isset($attributes['inline'])) { 10 | unset($attributes['inline']); 11 | } 12 | 13 | @endphp 14 | 15 |
16 | {!! \Laraflow\Form\Facades\Form::checkbox($name, $default, $checked, $required, $attributes) !!} 17 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'form-check-label']) !!} 18 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 19 |
20 |
21 | -------------------------------------------------------------------------------- /resources/views/html/normal/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/html/normal/email.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | {!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!} 11 | 12 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 13 |
14 | -------------------------------------------------------------------------------- /resources/views/html/normal/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!} 12 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 13 |
14 | -------------------------------------------------------------------------------- /resources/views/html/normal/password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::password($name, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/html/normal/radio.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 |
6 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 7 | 8 | @php 9 | 10 | if (isset($required) && $required == true) { 11 | $options['required'] = 'required'; 12 | } 13 | @endphp 14 | 15 | {!! \Laraflow\Form\Facades\Form::radio($name, $checked, $required, $attributes) !!} 16 | 17 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 18 |
19 | -------------------------------------------------------------------------------- /resources/views/html/normal/range.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::range($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/html/normal/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::search($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/html/normal/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/html/normal/selectmonth.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::selectMonth($name, $selected, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/html/normal/selectrange.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::selectRange($name, $begin, $end, $selected, $required, $attributes) !!} 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/html/normal/selectyear.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control custom-select']; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::selectYear($name, $begin, $end, $selected, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/html/normal/tel.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::tel($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/html/normal/text.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::text($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /resources/views/html/normal/textarea.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | $options = ['class' => 'form-control', 'rows' => 3]; 6 | 7 | if (isset($required) && $required == true) { 8 | $options['required'] = 'required'; 9 | } 10 | @endphp 11 | 12 | {!! \Laraflow\Form\Facades\Form::textarea($name, $default, $required, $attributes) !!} 13 | 14 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 15 |
16 | -------------------------------------------------------------------------------- /resources/views/html/normal/url.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!} 3 | 4 | @php 5 | 6 | if (isset($required) && $required == true) { 7 | $options['required'] = 'required'; 8 | } 9 | @endphp 10 | 11 | {!! \Laraflow\Form\Facades\Form::url($name, $default, $required, $attributes) !!} 12 | 13 | {!! \Laraflow\Form\Facades\Form::error($name) !!} 14 |
15 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | group(function () { 18 | Route::get('/form/examples', function () { 19 | if (App::environment('local') == true) { 20 | Artisan::call('view:clear'); 21 | } 22 | $viewPath = Config::get('form.style', 'bootstrap4'); 23 | 24 | return view("form::examples.{$viewPath}"); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/helpers.php: -------------------------------------------------------------------------------- 1 |