@extends('admin.template.master') @section('title')

Slider

@endsection @section('main-content')

Entry

{!! Form::open(['method' => 'PATCH', 'url' => '/admin/sliders/' .$slider->slider_id, 'enctype' => 'multipart/form-data']) !!}
{!! Form::label('Title') !!} {!! Form::text('slider_title', $slider->slider_title, ['class' => 'form-control', 'placeholder' => 'Enter slider title']) !!} @if ($errors->has('slider_title')) {!! $errors->first('slider_title') !!}@endif
{!! Form::label('Slider Image') !!} {!! Form::file('slider_image_name', ['onchange' => 'readURL(this);']) !!} @if ($errors->has('slider_image_name')){!! $errors->first('slider_image_name') !!}@endif
{!! Form::label('URL') !!} {!! Form::text('slider_url', $slider->slider_url, ['class' => 'form-control', 'placeholder' => 'Enter url']) !!} @if ($errors->has('slider_url')){!! $errors->first('slider_url') !!}@endif
{!! Form::label('Category Name') !!} {!! Form::select('category_name',$categories, $slider->category_id, ['class' => 'form-control', 'placeholder' => 'Enter category name']) !!} @if ($errors->has('category_name')){!! $errors->first('section_name') !!}@endif
{!! Form::label('Slider Position') !!} {!! Form::select('slider_position', $slider_position, $slider->slider_position, ['class' => 'form-control item_type_select2', 'placeholder' => 'Select slider position']) !!} @if ($errors->has('slider_position')) {!! $errors->first('slider_position') !!}@endif
{!! Form::label('From') !!} {!! Form::date('from', $slider->slider_start_date , ['class' => 'form-control']) !!}
{!! Form::label('To') !!} {!! Form::date('to', $slider->slider_end_date, ['class' => 'form-control']) !!}
{!! Form::label('Status') !!} {!! Form::select('slider_is_exist', [1 => 'Active', 0 => 'Inactive'], isset($slider->slider_is_exist) ? $slider->slider_is_exist : null, ['class' => 'form-control']) !!}
{!! Form::close() !!}
@endsection @section('javascripts') @endsection