@if($errors->has('image')) {{ $errors->first('image') }} @endif
Odaberite glavnu sliku {!! Form::file('image', ['id' => 'fileUpload']) !!}
@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.'[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
@endforeach
{!! Form::label('location', 'Lokacija *', ['class' => 'control-label']) !!} {!! Form::text('location', null, ['class' => 'form-control']) !!} @if($errors->has('location')) {{ $errors->first('location') }} @endif
{!! 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('featured', 0); !!} {!! Form::checkbox('featured', 1, null, ['class' => 'icheck']) !!} {!! Form::label('featured', 'Istaknuto?') !!}
{!! 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