@extends('layouts.app') @push('styles') @endpush @section('content')

Manage Sliders

@include('layouts.flash.alert')

{{!empty($slider) ? 'Update Slider' : 'Create Slider'}}

@if(isset($slider)) {{ Form::model($slider, ['route' => ['sliders.update', $slider->id], 'method' => 'patch','enctype'=>"multipart/form-data"]) }} @else {{ Form::open(['route' => 'sliders.store','enctype'=>"multipart/form-data"]) }} @endif
{{Form::label('title', 'Title')}}* {{Form::text('title',(isset($slider))?$slider->title:'', [ 'class' => "form-control", 'id' => "title", ])}} @if($errors->has('title')) {{$errors->first('title')}} @endif
{{ Form::textarea('description', (isset($slider))?$slider->description:'', ['class' => 'form-control', "style"=>"width: 100%; height: 150px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;",'placeholder' => 'Description']) }} @if($errors->has('description')) {{ $errors->first('description') }} @endif
{{Form::label('status', 'Status')}} {!!Form::select('status', ['1'=>'Active','0'=>'InActive'], (isset($slider))?$slider->status:'', ['class' => 'form-control'])!!}
{{Form::submit('Submit', [ 'class' => "btn btn-primary btn-flat" ])}}
{{ Form::close() }}
@endsection @push('scripts') @endpush