@if($errors->has('image')) {{ $errors->first('image') }} @endif
Odaberite glavnu sliku {!! Form::file('image', ['id' => 'fileUpload']) !!}
{!! Form::label('category_id', 'Kategorija *', ['class' => 'control-label']) !!} {!! Form::select('category_id', $categories, null, ['class' => 'form-control']) !!} @if($errors->has('category_id')) {{ $errors->first('category_id') }} @endif
@foreach($locales as $locale)
{!! Form::label($locale.'[title]', 'Naslov *', ['class' => 'control-label']) !!} {!! Form::text($locale.'[title]', $post->translateOrNew($locale)->title, ['class' => 'form-control']) !!} @if($errors->has($locale.'.title')) {{ $errors->first($locale.'.title') }} @endif
{!! Form::label($locale.'[summary]', 'Sažetak *', ['class' => 'control-label']) !!} {!! Form::textarea($locale.'[summary]', $post->translateOrNew($locale)->summary, ['class' => 'form-control']) !!} @if($errors->has($locale.'.summary')) {{ $errors->first($locale.'.summary') }} @endif
{!! Form::label($locale.'[content]', 'Sadržaj *', ['class' => 'control-label']) !!} {!! Form::textarea($locale.'[content]', $post->translateOrNew($locale)->content, ['class' => 'form-control tinymce']) !!} @if($errors->has($locale.'.content')) {{ $errors->first($locale.'.content') }} @endif

SEO

{!! Form::label($locale.'[slug]', 'URL *', ['class' => 'control-label']) !!} {!! Form::text($locale.'[slug]', $post->translateOrNew($locale)->slug, ['class' => 'form-control']) !!} @if($errors->has($locale.'.slug')) {{ $errors->first($locale.'.slug') }} @endif
{!! Form::label($locale.'[meta_title]', 'Meta naslov', ['class' => 'control-label']) !!} {!! Form::text($locale.'[meta_title]', $post->translateOrNew($locale)->meta_title, ['class' => 'form-control']) !!} @if($errors->has($locale.'.meta_title')) {{ $errors->first($locale.'.meta_title') }} @endif
{!! Form::label($locale.'[meta_description]', 'Meta opis', ['class' => 'control-label']) !!} {!! Form::textarea($locale.'[meta_description]', $post->translateOrNew($locale)->meta_description, ['class' => 'form-control']) !!} @if($errors->has($locale.'.meta_description')) {{ $errors->first($locale.'.meta_description') }} @endif
@endforeach
{!! Form::label('date', 'Datum *', ['class' => 'control-label']) !!} {!! Form::text('date', null, ['class' => 'form-control datepicker', 'autocomplete' => 'off']) !!} @if($errors->has('date')) {{ $errors->first('date') }} @endif
{!! Form::hidden('published', 0) !!} {!! Form::checkbox('published', 1, null, ['class' => 'icheck']) !!} {!! Form::label('published', 'Objavljeno?') !!}
{!! Form::submit('Spremi', ['class' => 'btn btn-primary']) !!} {!! link_to_route('admin.post.index', 'Natrag', null, ['class' => 'btn btn-default']) !!}
@section('styles') @endsection @section('scripts') @endsection