{{-- ? To set: * required: input_id as string for id tag array option: label as string html label_pill as string label_pill_color as string color default = secondary label_pill_attr as string attributes input_name as string if empty = input_id input_type as string type from input field, default is text input_class as string for custom css class in input field input_attr as string for custom attr in input field {{ ! activ in textarea ! }} placeholder as string title as string for tooltip value as string for validate input value at start autocomplete as boolean default false required as boolean default false disabled as boolean default false btn_color as string secondary, primary, light, dark, warnig, danger btn{{ num }}_color as string secondary, primary, light, dark, warnig, danger SELECT: options as array [ option_value, option_label, option_attr ] find_select same as SELECT in BLADE : @php $options = []; foreach ($model as $item) { $options[] => [ 'option_value' => $item['id'], 'option_label' => $item['id'] .' - ' .$item['name'], ]; } @endphp GENDER: gender or gender2 ( as icons ) icon_radio_slider [ radio_id, radio_name, radio_value, radio_icon_width, options as array [ option_value, option_icon_name, option_icon_class, option_icon_width, option_label, as html rgb, default_checked, as boolean default false ] ] CHECKBOX: margin_top as int in px label_class as string check_label as string in html ? To implement in Blade: * @includeIf('layouts.components.inputs', [ 'input_id' => 'example' ]) --}} @if (isset($input_id)) @if (isset($label) && !empty($label)) @endif {{-- Text input --}} @if (!isset($input_type) || $input_type === 'text') @endif {{-- Text input --}} @if (isset($input_type) && $input_type === 'number') @endif {{-- Gender radio --}} @if (isset($input_type) && $input_type === 'gender')
@endif @if (isset($input_type) && $input_type === 'gender2') @section('section-css') @parent @once @endonce @stop
@endif {{-- Icon radio --}} @if (isset($input_type) && $input_type === 'icon_radio_slider') {{-- @section('section-css') @parent @once @endonce @stop --}} @foreach ($options as $key => $item) @endforeach
@foreach ($options as $key => $item) @endforeach
@endif {{-- Select --}} @if (isset($input_type) && $input_type === 'select') @endif @if (isset($input_type) && $input_type === 'find_select') @endif {{-- Checkbox --}} @if (isset($input_type) && $input_type === 'checkbox')
@endif {{-- Textarea --}} @if ( isset($input_type) && $input_type === 'textarea' ) @if ( isset($text_editor) && $text_editor === true )
{!! old(($input_name ?? $input_id), $value ?? '') !!}
@endif @endif @error ( $input_name ?? $input_id )
{{ $message }}
@enderror {{--
{{ $label ?? $input_id ?? 'Eingabe' }} überprüfen
--}} @endif