@php $languages = LaravelLocalization::getLocalesOrder(); @endphp {!! Form::open(['url' => Request::url(), 'method' => 'post', 'class' => 'form-horizontal form-sliderSettings']) !!} {!! Form::hidden('code', $settings['code']) !!}
{!! Form::checkbox('disabled', "1", (!isset($settings['disabled']) ? 0 : $settings['disabled']), ['class' => 'form-check-input', 'id' => 'disabled' ]) !!} {!! Form::label('disabled', 'Slider disattivata', ['class' => 'form-check-label'] ) !!}
{!! Form::label('type', 'Tipo sfondo', ['class' => 'form-label']) !!}
{!! Form::select('type', array( 'color' => 'Colore', 'image' => 'Immagine', 'video' => 'Video', ), (!isset($settings['type']) ? 'color' : $settings['type']), ['class' => 'form-select']) !!}
{!! Form::label('slide_background_color', 'Colore sfondo', ['class' => 'form-label'] ) !!}
{!! Form::input('color', 'slide_background_color', (!isset($settings['slide_background_color']) ? '#ffffff' : $settings['slide_background_color']), ['class' => 'form-control form-control-color']) !!}
{!! Form::label('horizontal_border_space', 'Spazio orizzontale dal bordo', ['class' => 'form-label'] ) !!}
{!! Form::label('horizontal_border_space', 'Desktop', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('horizontal_border_space', (!isset($settings['horizontal_border_space']) ? '10%' : $settings['horizontal_border_space']), ['class' => 'form-control']) !!}
{!! Form::label('horizontal_border_space_tablet', 'Tablet', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('horizontal_border_space_tablet', (!isset($settings['horizontal_border_space_tablet']) ? '10%' : $settings['horizontal_border_space_tablet']), ['class' => 'form-control']) !!}
{!! Form::label('horizontal_border_space_mobile', 'Mobile', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('horizontal_border_space_mobile', (!isset($settings['horizontal_border_space_mobile']) ? '10%' : $settings['horizontal_border_space_mobile']), ['class' => 'form-control']) !!}
{!! Form::label('vertical_border_space', 'Spazio verticale dal bordo', ['class' => 'form-label'] ) !!}
{!! Form::label('vertical_border_space', 'Desktop', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('vertical_border_space', (!isset($settings['vertical_border_space']) ? '10%' : $settings['vertical_border_space']), ['class' => 'form-control']) !!}
{!! Form::label('vertical_border_space_tablet', 'Tablet', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('vertical_border_space_tablet', (!isset($settings['vertical_border_space_tablet']) ? '10%' : $settings['vertical_border_space_tablet']), ['class' => 'form-control']) !!}
{!! Form::label('vertical_border_space_mobile', 'Mobile', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('vertical_border_space_mobile', (!isset($settings['vertical_border_space_mobile']) ? '10%' : $settings['vertical_border_space_mobile']), ['class' => 'form-control']) !!}
{!! Form::label('add_button', 'Aggiungi pulsante', ['class' => 'form-label']) !!}
{!! Form::select('add_button', array( 'none' => 'No', 'top' => 'Top', 'bottom' => 'Bottom', ), (!isset($settings['add_button']) ? 'none' : $settings['add_button']), ['class' => 'form-select']) !!}
{!! Form::label('class', 'Classi', ['class' => 'form-label'] ) !!}
{!! Form::text('class', (!isset($settings['class']) ? '' : $settings['class']), ['class' => 'form-control']) !!}
{!! Form::label('id', 'Id componente', ['class' => 'form-label'] ) !!}
{!! Form::text('id', (!isset($settings['id']) ? '' : $settings['id']), ['class' => 'form-control']) !!}
{!! Form::label('image', 'Immagine', ['class' => 'form-label'] ) !!}
@get_template_part('su-admin.components.input.image-manager', null, ['settings' => $settings, 'field' => 'image', 'max_width' => '500px'])
{!! Form::label('image_horizontal_alignment', 'Allineamento orizzontale', ['class' => 'form-label'] ) !!}
{!! Form::label('image_horizontal_alignment', 'Desktop', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('image_horizontal_alignment', (!isset($settings['image_horizontal_alignment']) ? 'center' : $settings['image_horizontal_alignment']), ['class' => 'form-control']) !!}
{!! Form::label('image_horizontal_alignment_tablet', 'Tablet', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('image_horizontal_alignment_tablet', (!isset($settings['image_horizontal_alignment_tablet']) ? 'center' : $settings['image_horizontal_alignment_tablet']), ['class' => 'form-control']) !!}
{!! Form::label('image_horizontal_alignment_mobile', 'Mobile', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('image_horizontal_alignment_mobile', (!isset($settings['image_horizontal_alignment_mobile']) ? 'center' : $settings['image_horizontal_alignment_mobile']), ['class' => 'form-control']) !!}
{!! Form::label('image_vertical_alignment', 'Allineamento verticale', ['class' => 'form-label'] ) !!}
{!! Form::label('image_vertical_alignment', 'Desktop', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('image_vertical_alignment', (!isset($settings['image_vertical_alignment']) ? 'center' : $settings['image_vertical_alignment']), ['class' => 'form-control']) !!}
{!! Form::label('image_vertical_alignment_tablet', 'Tablet', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('image_vertical_alignment_tablet', (!isset($settings['image_vertical_alignment_tablet']) ? 'center' : $settings['image_vertical_alignment_tablet']), ['class' => 'form-control']) !!}
{!! Form::label('image_vertical_alignment_mobile', 'Mobile', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('image_vertical_alignment_mobile', (!isset($settings['image_vertical_alignment_mobile']) ? 'center' : $settings['image_vertical_alignment_mobile']), ['class' => 'form-control']) !!}
{!! Form::label('video', 'Link video (YouTube | Vimeo | Personalizzato)', ['class' => 'form-label'] ) !!}
{!! Form::text('video', (!isset($settings['video']) ? '' : $settings['video']), ['class' => 'form-control']) !!}
@php $field = 'title'; @endphp {!! Form::label($field , 'Titolo', ['class' => 'form-label']) !!}
@foreach($languages as $localeCode => $properties) @php $title_status = 'false'; $title_status_collapsed = ' collapsed'; $title_status_collapse = ''; if ($localeCode === array_key_first($languages)) { $title_status = 'true'; $title_status_collapsed = ''; $title_status_collapse = ' show'; } @endphp

{!! Form::text($field . '[' . $localeCode . ']', (!isset($settings[$field][$localeCode]) ? '' : $settings[$field][$localeCode]), ['class' => 'form-control']) !!}
@endforeach
@php $field = 'text'; @endphp {!! Form::label($field , 'Testo', ['class' => 'form-label']) !!}
@foreach($languages as $localeCode => $properties) @php $text_status = 'false'; $text_status_collapsed = ' collapsed'; $text_status_collapse = ''; if ($localeCode === array_key_first($languages)) { $text_status = 'true'; $text_status_collapsed = ''; $text_status_collapse = ' show'; } @endphp

{!! Form::textarea($field . '[' . $localeCode . ']', (!isset($settings[$field][$localeCode]) ? '' : $settings[$field][$localeCode]), ['class' => 'admin-component-tinymce-text', 'id' => $field . '_' . $localeCode, 'rows' => 5, 'style' => 'resize:none']) !!}
@endforeach
{!! Form::label('title_font_size', 'Titolo font size', ['class' => 'form-label']) !!}
{!! Form::text('title_font_size', (!isset($settings['title_font_size']) ? '18px' : $settings['title_font_size']), ['class' => 'form-control']) !!}
{!! Form::label('text_font_size', 'Testo font size', ['class' => 'form-label']) !!}
{!! Form::text('text_font_size', (!isset($settings['text_font_size']) ? '14px' : $settings['text_font_size']), ['class' => 'form-control']) !!}
{!! Form::label('title_line_height', 'Titolo line height', ['class' => 'form-label']) !!}
{!! Form::text('title_line_height', (!isset($settings['title_line_height']) ? '20px' : $settings['title_line_height']), ['class' => 'form-control']) !!}
{!! Form::label('text_line_height', 'Testo line height', ['class' => 'form-label']) !!}
{!! Form::text('text_line_height', (!isset($settings['text_line_height']) ? '16px' : $settings['text_line_height']), ['class' => 'form-control']) !!}
{!! Form::label('title_color', 'Colore titolo', ['class' => 'form-label'] ) !!}
{!! Form::input('color', 'title_color', (!isset($settings['title_color']) ? '#000000' : $settings['title_color']), ['class' => 'form-control form-control-color']) !!}
{!! Form::label('text_color', 'Colore testo', ['class' => 'form-label'] ) !!}
{!! Form::input('color', 'text_color', (!isset($settings['text_color']) ? '#94999d' : $settings['text_color']), ['class' => 'form-control form-control-color']) !!}
{!! Form::label('text_alignment', 'Allineamento testo', ['class' => 'form-label']) !!}
{!! Form::select('text_alignment', array( 'left' => 'left', 'right' => 'right', 'center' => 'center', 'justify' => 'justify', ), (!isset($settings['text_alignment']) ? 'left' : $settings['text_alignment']), ['class' => 'form-select']) !!}
{!! Form::label('text_position', 'Posizione testo', ['class' => 'form-label']) !!}
{!! Form::label('text_position', 'Desktop', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::select('text_position', array( 'top-left' => 'Top-Left', 'top-center' => 'Top-Center', 'top-right' => 'Top-Right', 'center-left' => 'Center-Left', 'center-center' => 'Center-Center', 'center-right' => 'Center-Right', 'bottom-left' => 'Bottom-Left', 'bottom-center' => 'Bottom-Center', 'bottom-right' => 'Bottom-Right', ), (!isset($settings['text_position']) ? 'center-center' : $settings['text_position']), ['class' => 'form-select']) !!}
{!! Form::label('text_position_tablet', 'Tablet', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::select('text_position_tablet', array( 'top-left' => 'Top-Left', 'top-center' => 'Top-Center', 'top-right' => 'Top-Right', 'center-left' => 'Center-Left', 'center-center' => 'Center-Center', 'center-right' => 'Center-Right', 'bottom-left' => 'Bottom-Left', 'bottom-center' => 'Bottom-Center', 'bottom-right' => 'Bottom-Right', ), (!isset($settings['text_position_tablet']) ? 'center-center' : $settings['text_position_tablet']), ['class' => 'form-select']) !!}
{!! Form::label('text_position_mobile', 'Mobile', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::select('text_position_mobile', array( 'top-left' => 'Top-Left', 'top-center' => 'Top-Center', 'top-right' => 'Top-Right', 'center-left' => 'Center-Left', 'center-center' => 'Center-Center', 'center-right' => 'Center-Right', 'bottom-left' => 'Bottom-Left', 'bottom-center' => 'Bottom-Center', 'bottom-right' => 'Bottom-Right', ), (!isset($settings['text_position_mobile']) ? 'center-center' : $settings['text_position_mobile']), ['class' => 'form-select']) !!}
{!! Form::label('text_gap', 'Gap testi', ['class' => 'form-label']) !!}
{!! Form::text('text_gap', (!isset($settings['text_gap']) ? '12px' : $settings['text_gap']), ['class' => 'form-control']) !!}
{!! Form::label('text_max_width', 'Larghezza massima box testi', ['class' => 'form-label']) !!}
{!! Form::label('text_max_width', 'Desktop', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('text_max_width', (!isset($settings['text_max_width']) ? '60%' : $settings['text_max_width']), ['class' => 'form-control']) !!}
{!! Form::label('text_max_width_tablet', 'Tablet', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('text_max_width_tablet', (!isset($settings['text_max_width_tablet']) ? '60%' : $settings['text_max_width_tablet']), ['class' => 'form-control']) !!}
{!! Form::label('text_max_width_mobile', 'Mobile', ['class' => 'form-label', 'style' => 'font-size: 12px; line-height: 14px; margin-bottom: 0px;']) !!} {!! Form::text('text_max_width_mobile', (!isset($settings['text_max_width_mobile']) ? '60%' : $settings['text_max_width_mobile']), ['class' => 'form-control']) !!}
@get_template_part('su-admin.components.input.animate-manager', null, ['settings' => $settings, 'only_in' => true])
@php $field = 'button_text'; @endphp {!! Form::label($field , 'Testo', ['class' => 'form-label']) !!}
@foreach($languages as $localeCode => $properties) @php $button_text_status = 'false'; $button_text_status_collapsed = ' collapsed'; $button_text_status_collapse = ''; if ($localeCode === array_key_first($languages)) { $button_text_status = 'true'; $button_text_status_collapsed = ''; $button_text_status_collapse = ' show'; } @endphp

{!! Form::text($field . '[' . $localeCode . ']', (!isset($settings[$field][$localeCode]) ? '' : $settings[$field][$localeCode]), ['class' => 'form-control']) !!}
@endforeach
@get_template_part('su-admin.components.input.link-manager', null, ['settings' => $settings, 'field' => 'link', 'label' => 'Link'])
{!! Form::label('button_color', 'Colore pulsante', ['class' => 'form-label'] ) !!}
{!! Form::input('color', 'button_color', (!isset($settings['button_color']) ? '#94999d' : $settings['button_color']), ['class' => 'form-control form-control-color']) !!}
{!! Form::label('button_text_color', 'Colore testo pulsante', ['class' => 'form-label'] ) !!}
{!! Form::input('color', 'button_text_color', (!isset($settings['button_text_color']) ? '#000000' : $settings['button_text_color']), ['class' => 'form-control form-control-color']) !!}
{!! Form::label('button_border_color', 'Colore bordo pulsante', ['class' => 'form-label'] ) !!}
{!! Form::input('color', 'button_border_color', (!isset($settings['button_border_color']) ? '#000000' : $settings['button_border_color']), ['class' => 'form-control form-control-color']) !!}
{!! Form::label('button_style', 'Stile pulsante', ['class' => 'form-label']) !!}
{!! Form::select('button_style', array( 'classic' => 'classic', 'flat' => 'flat', 'outline' => 'outline', '3d' => '3d', ), (!isset($settings['button_style']) ? 'classic' : $settings['button_style']), ['class' => 'form-select']) !!}
{!! Form::label('button_shape', 'Shape pulsante', ['class' => 'form-label']) !!}
{!! Form::select('button_shape', array( 'rounded' => 'rounded', 'square' => 'square', 'round' => 'round', ), (!isset($settings['button_shape']) ? 'rounded' : $settings['button_shape']), ['class' => 'form-select']) !!}
{!! Form::label('button_dimension', 'Dimensione pulsante', ['class' => 'form-label']) !!}
{!! Form::select('button_dimension', array( 'xs' => 'Mini', 'sm' => 'Small', 'md' => 'Normal', 'lg' => 'Large', ), (!isset($settings['button_dimension']) ? 'md' : $settings['button_dimension']), ['class' => 'form-select']) !!}
{!! Form::label('button_alignment', 'Allinemaneto', ['class' => 'form-label']) !!}
{!! Form::select('button_alignment', array( 'inline' => 'In linea', 'left' => 'Left', 'right' => 'Right', 'center' => 'Center', ), (!isset($settings['button_alignment']) ? 'inline' : $settings['button_alignment']), ['class' => 'form-select']) !!}
{!! Form::label('button_margin', 'Margine dal testo', ['class' => 'form-label'] ) !!}
{!! Form::text('button_margin', (!isset($settings['button_margin']) ? '0px' : $settings['button_margin']), ['class' => 'form-control']) !!}
{!! Form::label('button_hover_color', 'Colore hover pulsante', ['class' => 'form-label'] ) !!}
{!! Form::input('color', 'button_hover_color', (!isset($settings['button_hover_color']) ? '#94999d' : $settings['button_hover_color']), ['class' => 'form-control form-control-color']) !!}
{!! Form::label('button_text_hover_color', 'Colore hover testo pulsante', ['class' => 'form-label'] ) !!}
{!! Form::input('color', 'button_text_hover_color', (!isset($settings['button_text_hover_color']) ? '#000000' : $settings['button_text_hover_color']), ['class' => 'form-control form-control-color']) !!}
{!! Form::label('button_border_hover_color', 'Colore hover bordo', ['class' => 'form-label'] ) !!}
{!! Form::input('color', 'button_border_hover_color', (!isset($settings['button_border_hover_color']) ? '#000000' : $settings['button_border_hover_color']), ['class' => 'form-control form-control-color']) !!}
@get_template_part('su-admin.components.input.icon-manager', null, ['settings' => $settings, 'field' => 'button_icon', 'label' => 'Icona pulsante'])
{!! Form::label('button_icon_alignment', 'Allineamento icona pulsante', ['class' => 'form-label']) !!}
{!! Form::select('button_icon_alignment', array( 'left' => 'left', 'right' => 'right', ), (!isset($settings['button_icon_alignment']) ? 'left' : $settings['button_icon_alignment']), ['class' => 'form-select']) !!}
{!! Form::close() !!}