@extends('admin.template.master') @section('stylesheets') {!! Html::style('assets/admin/bower_components/select2/dist/css/select2.min.css') !!} @endsection @section('title')

@if(isset($categories))Category @endif Home Page Section insert and update section

@endsection @section('main-content')

Entry

{!! Form::open(['url' => isset($categories) ? '/admin/category-homepage-sections' : '/admin/homepage-sections']) !!}
@if(isset($categories))
{!! Form::label('Category Name') !!} {!! Form::select('category_name',$categories, null, ['class' => 'form-control', 'placeholder' => 'Enter category name']) !!} @if ($errors->has('category_name')){!! $errors->first('section_name') !!}@endif
@endif
{!! Form::label('Section Name') !!} {!! Form::text('section_name', null, ['class' => 'form-control', 'placeholder' => 'Enter section name']) !!} @if ($errors->has('section_name')){!! $errors->first('section_name') !!}@endif
{!! Form::hidden('name_show', 1, ['id' => 'name_show']) !!}
{!! Form::label('Section Position') !!} @if ($errors->has('section_position')){!! $errors->first('section_position') !!}@endif
{!! Form::label('Status') !!} {!! Form::select('section_is_exist', [1 => 'Active', 0 => 'Inactive'], null, ['class' => 'form-control']) !!}
{!! Form::close() !!}
@endsection @section('javascripts') {!! Html::script('assets/admin/bower_components/select2/dist/js/select2.full.min.js') !!} @endsection