@extends('themes.default1.admin.layout.kb') @section('category') active @stop @section('add-category') class="active" @stop @section('content') {!! Form::open(array('route' => 'category.store' , 'method' => 'post') )!!}

Add Category

{!! Form::submit('save',['class'=>'form-group btn btn-primary pull-right'])!!}
@if(Session::has('success'))
{{Session::get('success')}}
@endif @if(Session::has('fails'))
{{Session::get('fails')}}
@endif
{!! Form::label('name',Lang::get('lang.name')) !!} {!! $errors->first('name', ':message') !!} {!! Form::text('name',null,['class' => 'form-control']) !!}
{!! Form::label('slug',Lang::get('lang.slug')) !!} {!! $errors->first('slug', ':message') !!} {!! Form::text('slug',null,['class' => 'form-control']) !!}
{!! Form::label('parent',Lang::get('lang.parent')) !!} {!! $errors->first('parent', ':message') !!} {!!Form::select('parent',[''=>'Select a Group','Categorys'=>$category->pluck('name','name')],null,['class' => 'form-control select']) !!}
{!! Form::label('status',Lang::get('lang.status')) !!} {!! $errors->first('status', ':message') !!}
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}} {!! Form::radio('status','0',null) !!} {{Lang::get('lang.inactive')}}
{!! Form::label('description',Lang::get('lang.description')) !!} {!! $errors->first('description', ':message') !!} {!! Form::textarea('description',null,['class' => 'form-control','id'=>'description','placeholder'=>'Enter the description']) !!}
@stop @section('FooterInclude') @stop