@include('admin.layouts.errors')
{{ Form::submit('save', array('class' => 'btn btn-lg btn-success action btn-block')) }}
{{ csrf_field() }}
{{ Form::label('name', $controller::getLabel('name'), ['class' => 'required']) }} {{ Form::text('name', isset($item->name) ? $item->name : null, array('class' => 'form-control')) }}
{{ Form::label('slug', $controller::getLabel('slug')) }} {{ Form::text('slug', isset($item->slug) ? $item->slug : null, array('class' => 'form-control')) }}
{{ Form::label('code', $controller::getLabel('code')) }} {{ Form::text('code', isset($item->code) ? $item->code : null, array('class' => 'form-control demo minicolors-input', 'data-position'=>'bottom left')) }}

{{ Form::label('short_description', $controller::getLabel('short_description')) }} {{ Form::textarea('short_description', isset($item->short_description) ? $item->short_description : null, ['class' => 'form-control', 'rows'=>5]) }}
{{ Form::label('description', $controller::getLabel('description')) }} {{ Form::textarea('description', isset($item->description) ? $item->description: null, ['class' => 'form-control', 'rows'=>25]) }}
{{ Form::label('published', $controller::getLabel('published')) }} {{ Form::select('published', ['1'=>'Published','0'=>'NotPublished'], isset($item->published) ? $item->published:null , ['class' => 'form-control']) }}
{{ Form::label('cmslanguage_id', $controller::getLabel('cmslanguage_id')) }} {{ Form::select('cmslanguage_id', [''=> '-']+ Cmslanguage::orderBy('name')->pluck('name', 'id')->all(), isset($item->cmslanguage_id) ? $item->cmslanguage_id:null, ['class' => 'form-control']) }}
{{ Form::hidden('user_id', isset($item->user_id) ? $item->user_id : null , array('class' => 'form-control')) }}
{{ Form::label('order_number', $controller::getLabel('order_number')) }} {{ Form::text('order_number', isset($item->order_number) ? $item->order_number : null , array('class' => 'form-control')) }}

{{ Form::label('metatitle', $controller::getLabel('metatitle')) }} {{ Form::textarea('metatitle', isset($item->metatitle) ? $item->metatitle : null, ['class' => 'form-control', 'rows'=>2]) }}
{{ Form::label('metadescription', $controller::getLabel('metadescription')) }} {{ Form::textarea('metadescription', isset($item->metadescription) ? $item->metadescription : null, ['class' => 'form-control', 'rows'=>2]) }}
{{ Form::label('metatags', $controller::getLabel('metatags')) }} {{ Form::textarea('metatags', isset($item->metatags) ? $item->metatags : null, ['class' => 'form-control', 'rows'=>2]) }}

{{ Form::label('pic', $controller::getLabel('pic')) }} {{ Form::file('pic','', ['class' => 'form-control', 'rows'=>2]) }} @if (isset($item->pic) && ($item->pic != "")) @endif
{{ Form::submit('save', array('class' => 'btn btn-lg btn-success action btn-block')) }}