{{-- CityHub - Tourist infomration - Add / edit category --}}

{{ $title or null }}


{{ Form::open(array('route' => $postRoute, 'role' => 'form', 'class' => 'form-horizontal', 'autocomplete' => 'off', 'files' => true)) }} @if ($mode == 'edit') {{ Form::hidden('id', $blog->id, array('id' => 'id')) }} @endif
{{ Form::text('title', isset($blog->title) ? $blog->title : null, ['class' => 'form-control', 'placeholder' => Lang::get('cityBlog.label_blog_title')]) }} {{ $errors->first('title') }}
{{ Form::text('excerpt', isset($blog->excerpt) ? $blog->excerpt : null, array('class' => 'form-control', 'id' => 'excerpt', 'placeholder' => Lang::get('cityBlog.label_excerpt'))) }} {{ $errors->first('excerpt') }}
{{ Form::textarea('content', isset($blog->content) ? $blog->content : null, array('class' => 'form-control content', 'id' => 'content')) }} {{ $errors->first('content') }}
{{ Form::select('language_id', $languages, isset($blog->language_id) ? $blog->language_id : $preselected_language, ['class' => 'form-control', 'required' => 'required']) }} @if (isset($errors) && ($errors->first('language_id') != '' || $errors->first('language_id') != null)) {{ $errors->first('language_id') }} @endif
{{ Form::file('image', array('class' => 'form-control')) }} @if (isset($errors) && ($errors->first('image') != '' || $errors->first('image') != null)) {{ $errors->first('image') }} @endif
@if ($mode == 'edit') @if ($blog->image != null || $blog->image != '')
{{ HTML::image(URL::to('/') . '/uploads/cityBlog/thumbs/' . $blog->image, $blog->title) }}
@endif @endif
{{ Form::text('tags', null, ['class' => 'form-control select2', 'id' => 'tags']) }} @if (isset($errors) && ($errors->first('language_id') != '' || $errors->first('language_id') != null))

{{ $errors->first('tags') }}

@endif
{{ Lang::get('core.cancel') }} {{ Form::button(' ' . Lang::get('core.save'), array('type' => 'submit', 'class' => 'btn btn-success')) }}
{{ Form::close() }}