@extends('backend.layouts.app') @section('title', __('labels.backend.hero_slider.title').' | '.app_name()) @push('after-styles') @endpush @section('content') {{ html()->modelForm($slide, 'PATCH', route('admin.sliders.update', $slide->id))->class('form-horizontal')->acceptsFiles()->id('slider-create')->open() }}

@lang('labels.backend.hero_slider.edit')

{{ html()->label(__('labels.backend.hero_slider.fields.name'))->class('col-md-2 form-control-label')->for('first_name') }}
{{ html()->text('name') ->class('form-control') ->placeholder(__('labels.backend.hero_slider.fields.name')) ->attribute('maxlength', 191) ->autofocus() }}
{{ html()->label(__('labels.backend.hero_slider.fields.bg_image'))->class('col-md-2 form-control-label')->for('image') }}
{!! Form::file('image', ['class' => 'form-control d-inline-block', 'placeholder' => '', 'accept' => 'image/jpeg,image/gif,image/png']) !!}

{!! __('labels.backend.hero_slider.note')!!}

{!! Form::hidden('slide_image_max_size', 8) !!} {!! Form::hidden('slide_image_max_width', 4000) !!} {!! Form::hidden('slide_image_max_height', 4000) !!}
{{ html()->label(__('labels.backend.hero_slider.fields.overlay.title'))->class('col-md-2 form-control-label')->for('overlay') }}
{{ html()->label(html()->checkbox('overlay') ->class('switch-input')->value(1) . '') ->class('switch switch-sm switch-3d switch-primary') }}

{!! __('labels.backend.hero_slider.fields.overlay.note')!!}

{{ html()->label(__('labels.backend.hero_slider.fields.hero_text'))->class('col-md-2 form-control-label')->for('hero_text') }}
{{ html()->text('hero_text') ->class('form-control') ->placeholder(__('labels.backend.hero_slider.fields.hero_text')) }}
{{ html()->label(__('labels.backend.hero_slider.fields.sub_text'))->class('col-md-2 form-control-label')->for('sub_text') }}
{{ html()->text('sub_text') ->class('form-control') ->placeholder(__('labels.backend.hero_slider.fields.sub_text')) }}
{{ html()->label(__('labels.backend.hero_slider.fields.widget.title'))->class('col-md-2 form-control-label')->for('widget') }}
{!! Form::select('widget', [""=>trans('labels.backend.hero_slider.fields.widget.select_widget'),1=>trans('labels.backend.hero_slider.fields.widget.search_bar'),2=>trans('labels.backend.hero_slider.fields.widget.countdown_timer')], (request('widget')) ? request('widget') : old('widget'), ['class' => 'form-control ', 'id'=>'widget']) !!}
{{ html()->text('timer') ->class('form-control') ->placeholder(trans('labels.backend.hero_slider.fields.widget.input_date_time')) ->id('timer') }}
{{ html()->label(__('labels.backend.hero_slider.fields.buttons.title'))->class('col-md-2 col-2 form-control-label')->for('buttons') }}
{{--{{ html()->input('number','buttons')--}} {{--->class('form-control')--}} {{--->placeholder(__('labels.backend.hero_slider.fields.buttons.placeholder'))--}} {{--->attributes(['max'=>4,'pattern'=>'[0-9]','min'=>1])--}} {{--->id('buttons')--}} {{--}}--}}

{!! __('labels.backend.hero_slider.fields.buttons.note')!!}

{{ form_cancel(route('admin.sliders.index'), __('buttons.general.cancel')) }}
{{ html()->form()->close() }} @endsection @push('after-scripts') @endpush