{{ $pageTitle ?? __('messages.list') }}
@if($auth_user->can('slider list')) @endif {{ __('messages.back') }}
{{ Form::model($sliderdata,['method' => 'POST','route'=>'slider.store', 'enctype'=>'multipart/form-data', 'data-toggle'=>"validator" ,'id'=>'slider'] ) }} {{ Form::hidden('id') }} {{ Form::hidden('type','service') }}
{{ Form::label('title',__('messages.title').' *',['class'=>'form-control-label'], false ) }} {{ Form::text('title',old('title'),['placeholder' => __('messages.title'),'class' =>'form-control','required']) }}
{{ Form::label('type_id', __('messages.select_name',[ 'select' => __('messages.service') ]).' *',['class'=>'form-control-label'],false) }}
{{ Form::select('type_id', [optional($sliderdata->service)->id => optional($sliderdata->service)->name], optional($sliderdata->service)->id, [ 'class' => 'select2js form-group service', 'required', 'data-placeholder' => __('messages.select_name',[ 'select' => __('messages.service') ]), 'data-ajax--url' => route('ajax-list', ['type' => 'service-list']), ]) }}
{{ Form::label('status',__('messages.status').' *',['class'=>'form-control-label'],false) }} {{ Form::select('status',['1' => __('messages.active') , '0' => __('messages.inactive') ],old('status'),[ 'id' => 'status' ,'class' =>'form-control select2js','required']) }}
@if(getMediaFileExit($sliderdata, 'slider_image')) @endif
{{ Form::label('description',__('messages.description'), ['class' => 'form-control-label']) }} {{ Form::textarea('description', null, ['class'=>"form-control textarea" , 'rows'=>3 , 'placeholder'=> __('messages.description') ]) }}
{{ Form::submit( __('messages.save'), ['class'=>'btn btn-md btn-primary float-right']) }} {{ Form::close() }}