@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('type_module', $controller::getLabel('type_module')) }} {{ Form::select('type_module', $controller::getTypeModuleForm(), isset($item->type_module) ? $item->type_module:null , ['class' => 'form-control']) }}
{{ Form::label('position', $controller::getLabel('position')) }} {{ Form::select('position', $controller::getPositionForm(), isset($item->position) ? $item->position:null , ['class' => 'form-control']) }}
{{ Form::label('url_href', $controller::getLabel('url_href')) }} {{ Form::text('url_href', isset($item->url_href) ? $item->url_href : null, array('class' => 'form-control')) }}
{{ Form::label('target_blank', $controller::getLabel('target_blank')) }} {{ Form::select('target_blank', ['1'=>'DA','0'=>'NU'], isset($item->target_blank) ? $item->target_blank : 0 , ['class' => 'form-control']) }}
{{ Form::label('pic', $controller::getLabel('pic')) }} {{ Form::file('pic','', ['class' => 'form-control', 'rows'=>2]) }} @if (isset($item->pic) && ($item->pic != "")) @endif
{{ Form::label('cmsmenuitem_id', $controller::getLabel('cmsmenuitem_id')) }} {{ Form::select('cmsmenuitem_id', [''=> '-']+ Cmsmenuitem::orderBy('name')->pluck('name', 'id')->all(), isset($item->cmsmenuitem_id) ? $item->cmsmenuitem_id:null, ['class' => 'form-control']) }}
{{ Form::label('cmscategory_id', $controller::getLabel('cmscategory_id')) }} {{ Form::select('cmscategory_id', [''=> '-']+ Cmscategory::orderBy('name')->pluck('name', 'id')->all(), isset($item->cmscategory_id) ? $item->cmscategory_id:null, ['class' => 'form-control']) }}
{{ Form::label('cmsorderby', $controller::getLabel('cmsorderby')) }} {{ Form::select('type_cmsorderby', $controller::getTypeCmsorderbyForm(), isset($item->cmsorderby) ? $item->cmsorderby:null , ['class' => 'form-control']) }}
{{ Form::label('cmsitem_id', $controller::getLabel('cmsitem_id')) }} {{ Form::select('cmsitem_id', [''=> '-']+ Cmsitem::orderBy('name')->pluck('name', 'id')->all(), isset($item->cmsitem_id) ? $item->cmsitem_id:null, ['class' => 'form-control']) }}
{{ Form::label('cmspage_id', $controller::getLabel('cmspage_id')) }} {{ Form::select('cmspage_id', [''=> '-']+ Cmspage::orderBy('name')->pluck('name', 'id')->all(), isset($item->cmspage_id) ? $item->cmspage_id:null, ['class' => 'form-control']) }}

{{ 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('show_name', $controller::getLabel('show_name')) }} {{ Form::select('show_name', ['1'=>'Da','0'=>'Nu'], isset($item->show_name) ? $item->show_name:null , ['class' => 'form-control']) }}

{{ 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::submit('save', array('class' => 'btn btn-lg btn-success action btn-block')) }}
@section('scripts.header') @stop @section('scripts.footer') @stop