@extends('su-admin.layout.master') @section('content') @php $languages = LaravelLocalization::getLocalesOrder(); $animations_in = array( 'Attention seekers' => array( 'bounce' => 'bounce', 'flash' => 'flash', 'pulse' => 'pulse', 'rubberBand' => 'rubberBand', 'shakeX' => 'shakeX', 'shakeY' => 'shakeY', 'headShake' => 'headShake', 'swing' => 'swing', 'tada' => 'tada', 'wobble' => 'wobble', 'jello' => 'jello', 'heartBeat' => 'heartBeat' ), 'Back entrances' => array( 'backInDown' => 'backInDown', 'backInLeft' => 'backInLeft', 'backInRight' => 'backInRight', 'backInUp' => 'backInUp' ), 'Bouncing entrances' => array( 'bounceIn' => 'bounceIn', 'bounceInDown' => 'bounceInDown', 'bounceInLeft' => 'bounceInLeft', 'bounceInRight' => 'bounceInRight', 'bounceInUp' => 'bounceInUp' ), 'Fading entrances' => array( 'fadeIn' => 'fadeIn', 'fadeInDown' => 'fadeInDown', 'fadeInDownBig' => 'fadeInDownBig', 'fadeInLeft' => 'fadeInLeft', 'fadeInLeftBig' => 'fadeInLeftBig', 'fadeInRight' => 'fadeInRight', 'fadeInRightBig' => 'fadeInRightBig', 'fadeInUp' => 'fadeInUp', 'fadeInUpBig' => 'fadeInUpBig', 'fadeInTopLeft' => 'fadeInTopLeft', 'fadeInTopRight' => 'fadeInTopRight', 'fadeInBottomLeft' => 'fadeInBottomLeft', 'fadeInBottomRight' => 'fadeInBottomRight' ), 'Flippers' => array( 'flip' => 'flip', 'flipInX' => 'flipInX', 'flipInY' => 'flipInY' ), 'Lightspeed' => array( 'lightSpeedInRight' => 'lightSpeedInRight', 'lightSpeedInLeft' => 'lightSpeedInLeft', ), 'Rotating entrances' => array( 'rotateIn' => 'rotateIn', 'rotateInDownLeft' => 'rotateInDownLeft', 'rotateInDownRight' => 'rotateInDownRight', 'rotateInUpLeft' => 'rotateInUpLeft', 'rotateInUpRight' => 'rotateInUpRight' ), 'Specials' => array( 'hinge' => 'hinge', 'jackInTheBox' => 'jackInTheBox', 'rollIn' => 'rollIn', ), 'Zooming entrances' => array( 'zoomIn' => 'zoomIn', 'zoomInDown' => 'zoomInDown', 'zoomInLeft' => 'zoomInLeft', 'zoomInRight' => 'zoomInRight', 'zoomInUp' => 'zoomInUp' ), 'Sliding entrances' => array( 'slideInDown' => 'slideInDown', 'slideInLeft' => 'slideInLeft', 'slideInRight' => 'slideInRight', 'slideInUp' => 'slideInUp' ), ); $animations_out = array( 'Attention seekers' => array( 'bounce' => 'bounce', 'flash' => 'flash', 'pulse' => 'pulse', 'rubberBand' => 'rubberBand', 'shakeX' => 'shakeX', 'shakeY' => 'shakeY', 'headShake' => 'headShake', 'swing' => 'swing', 'tada' => 'tada', 'wobble' => 'wobble', 'jello' => 'jello', 'heartBeat' => 'heartBeat' ), 'Back exits' => array( 'backOutDown' => 'backOutDown', 'backOutLeft' => 'backOutLeft', 'backOutRight' => 'backOutRight', 'backOutUp' => 'backOutUp' ), 'Bouncing exits' => array( 'bounceOut' => 'bounceOut', 'bounceOutDown' => 'bounceOutDown', 'bounceOutLeft' => 'bounceOutLeft', 'bounceOutRight' => 'bounceOutRight', 'bounceOutUp' => 'bounceOutUp' ), 'Fading exits' => array( 'fadeOut' => 'fadeOut', 'fadeOutDown' => 'fadeOutDown', 'fadeOutDownBig' => 'fadeOutDownBig', 'fadeOutLeft' => 'fadeOutLeft', 'fadeOutLeftBig' => 'fadeOutLeftBig', 'fadeOutRight' => 'fadeOutRight', 'fadeOutRightBig' => 'fadeOutRightBig', 'fadeOutUp' => 'fadeOutUp', 'fadeOutUpBig' => 'fadeOutUpBig', 'fadeOutTopLeft' => 'fadeOutTopLeft', 'fadeOutTopRight' => 'fadeOutTopRight', 'fadeOutBottomRight' => 'fadeOutBottomRight', 'fadeOutBottomLeft' => 'fadeOutBottomLeft' ), 'Flippers' => array( 'flip' => 'flip', 'flipOutX' => 'flipOutX', 'flipOutY' => 'flipOutY' ), 'Lightspeed' => array( 'lightSpeedOutRight' => 'lightSpeedOutRight', 'lightSpeedOutLeft' => 'lightSpeedOutLeft' ), 'Rotating exits' => array( 'rotateOut' => 'rotateOut', 'rotateOutDownLeft' => 'rotateOutDownLeft', 'rotateOutDownRight' => 'rotateOutDownRight', 'rotateOutUpLeft' => 'rotateOutUpLeft', 'rotateOutUpRight' => 'rotateOutUpRight' ), 'Specials' => array( 'hinge' => 'hinge', 'jackInTheBox' => 'jackInTheBox', 'rollOut' => 'rollOut' ), 'Zooming exits' => array( 'zoomOut' => 'zoomOut', 'zoomOutDown' => 'zoomOutDown', 'zoomOutLeft' => 'zoomOutLeft', 'zoomOutRight' => 'zoomOutRight', 'zoomOutUp' => 'zoomOutUp' ), 'Sliding exits' => array( 'slideOutDown' => 'slideOutDown', 'slideOutLeft' => 'slideOutLeft', 'slideOutRight' => 'slideOutRight', 'slideOutUp' => 'slideOutUp' ), ); @endphp
@if (session()->has('message')) @endif @if (session()->has('error')) @endif

Slider

{!! Form::open(['url' => Request::url(), 'method' => 'post', 'class' => 'form-horizontal form-slider']) !!}
Informazioni
@php $id_args = [ 'class' => 'form-control', 'data-label' => 'Identificativo' ]; if(!empty($slider)){ $id_args['readonly'] = 'true'; } @endphp
{!! Form::label('id', 'Identificativo', ['class' => 'form-label']) !!}
{!! Form::input('text', 'id', (!empty($slider) ? $slider->get_id() : ''), $id_args) !!}
{!! Form::label('label', 'Label', ['class' => 'form-label']) !!}
{!! Form::input('text', 'label', (!empty($slider) ? $slider->get_label() : ''), [ 'class' => 'form-control', 'data-label' => 'Label' ]) !!}
{!! Form::label('slider_border', 'Bordi', ['class' => 'form-label']) !!}
{!! Form::checkbox('slider_border', "1", (empty($slider) ? "0" : (($slider->get_slider_border()) ? "1" : "0")), ['class' => 'form-check-input', 'id' => 'slider_border' ]) !!}
{!! Form::input('color', 'slider_border_color', (!empty($slider) ? $slider->get_slider_border_color() : '#000000'), ['class' => 'form-control form-control-color form-control-sm']) !!}
{!! Form::select('slider_border_style', array('solid' => 'solid', 'dashed' => 'dashed', 'dotted' => 'dotted', 'double' => 'double'), (!empty($slider) ? $slider->get_slider_border_style() : 'solid'), ['class' => 'form-select form-select-sm']) !!}
{!! Form::input('text', 'slider_border_width', (!empty($slider) ? $slider->get_slider_border_width() : '1px'), [ 'class' => 'form-control form-control-sm' ]) !!}
{!! Form::label('slider_arrow', 'Frecce', ['class' => 'form-label']) !!}
{!! Form::checkbox('slider_arrow', "1", (empty($slider) ? "0" : (($slider->get_slider_arrow()) ? "1" : "0")), ['class' => 'form-check-input', 'id' => 'slider_arrow' ]) !!}
{!! Form::select('slider_arrow_style', array('layout-1' => 'Layout 1', 'layout-2' => 'Layout 2'), (!empty($slider) ? $slider->get_slider_arrow_style() : 'layout-1'), ['class' => 'form-select form-select-sm']) !!}
{!! Form::label('slider_nav', 'Navigatore', ['class' => 'form-label']) !!}
{!! Form::checkbox('slider_nav', "1", (empty($slider) ? "0" : (($slider->get_slider_nav()) ? "1" : "0")), ['class' => 'form-check-input', 'id' => 'slider_nav' ]) !!}
{!! Form::select('slider_nav_style', array('round' => 'Tondi', 'square' => 'Quadrati'), (!empty($slider) ? $slider->get_slider_nav_style() : 'round'), ['class' => 'form-select form-select-sm']) !!}
{!! Form::select('slider_nav_position', array( 'top-left' => 'Top-Left', 'top-center' => 'Top-Center', 'top-right' => 'Top-Right', 'center-left' => 'Center-Left', 'center-right' => 'Center-Right', 'bottom-left' => 'Bottom-Left', 'bottom-center' => 'Bottom-Center', 'bottom-right' => 'Bottom-Right', ), (!empty($slider) ? $slider->get_slider_nav_position() : 'bottom-center'), ['class' => 'form-select form-select-sm']) !!}
Opzioni
{!! Form::label('slider_direction', 'Direzione', ['class' => 'form-label']) !!}
{!! Form::select('slider_direction', array('horizontal' => 'Orizzontale', 'vertical' => 'Verticale'), (!empty($slider) ? $slider->get_slider_direction() : 'horizontal'), ['class' => 'form-select']) !!}
{!! Form::label('slider_size', 'Dimensioni', ['class' => 'form-label']) !!}
{!! Form::select('slider_size', array('auto' => 'Altezza variabile', 'block-height' => 'Altezza fissa', 'full-screen' => 'Tutto schermo'), (!empty($slider) ? $slider->get_slider_size() : 'auto'), ['class' => 'form-select']) !!}
{!! Form::label('slider_height', 'Altezza / Altezza massima', ['class' => 'form-label']) !!}
{!! Form::label('slider_height', 'Desktop', ['class' => 'form-label', 'style' => 'border-bottom: none; margin-bottom: 0; font-size: 12px; line-height: 14px;']) !!} {!! Form::input('text', 'slider_height', (!empty($slider) ? $slider->get_slider_height() : '400px'), [ 'class' => 'form-control' ]) !!}
{!! Form::label('slider_height_tablet', 'Tablet', ['class' => 'form-label', 'style' => 'border-bottom: none; margin-bottom: 0; font-size: 12px; line-height: 14px;']) !!} {!! Form::input('text', 'slider_height_tablet', (!empty($slider) ? $slider->get_slider_height_tablet() : '400px'), [ 'class' => 'form-control' ]) !!}
{!! Form::label('slider_height_mobile', 'Mobile', ['class' => 'form-label', 'style' => 'border-bottom: none; margin-bottom: 0; font-size: 12px; line-height: 14px;']) !!} {!! Form::input('text', 'slider_height_mobile', (!empty($slider) ? $slider->get_slider_height_mobile() : '400px'), [ 'class' => 'form-control' ]) !!}
{!! Form::label('slider_background_color', 'Background', ['class' => 'form-label'] ) !!}
{!! Form::input('color', 'slider_background_color', (!empty($slider) ? $slider->get_slider_background_color() : '#ffffff'), ['class' => 'form-control form-control-color']) !!}
{!! Form::label('slider_transition_in', 'Transizione in entrata', ['class' => 'form-label']) !!}
{!! Form::select('slider_transition_in', $animations_in, (!empty($slider) ? $slider->get_slider_transition_in() : 'fadeIn'), ['class' => 'form-select']) !!}
{!! Form::label('slider_transition_out', 'Transizione in uscita', ['class' => 'form-label']) !!}
{!! Form::select('slider_transition_out', $animations_out, (!empty($slider) ? $slider->get_slider_transition_out() : 'fadeOut'), ['class' => 'form-select']) !!}
{!! Form::label('slider_transition_delay', 'Transizione delay (in ms)', ['class' => 'form-label']) !!}
{!! Form::input('number', 'slider_transition_delay', (!empty($slider) ? $slider->get_slider_transition_delay() : '4000'), [ 'class' => 'form-control', 'min' => 0, 'step' => 100 ]) !!}
{!! Form::hidden('delete', '0') !!} @if(!empty($slider)) {!! Form::button('Elimina', ['class' => 'btn btn-danger btn-fw remove_slider'] ) !!} {!! Form::button('Salva', ['class' => 'btn btn-primary btn-fw submit_slider'] ) !!} @else {!! Form::hidden('new', '1') !!} {!! Form::button('Crea', ['class' => 'btn btn-primary btn-fw submit_slider'] ) !!} @endif
Elementi
@if(!empty($slider)) @if(!empty($slider->get_items())) @foreach ($slider->get_items() as $item) @get_template_part('su-admin.pages.sliders.parts.item', null, ['code' => $item->get_code(), 'disabled' => ($item->is_disabled() ? 'true' : 'false'), 'json' => $item->get_settings(), "item" => $item]) @endforeach @endif
@endif
{!! Form::close() !!}
@endsection