@if($errors->has('image')) {{ $errors->first('image') }} @endif
Odaberite glavnu sliku {!! Form::file('image', ['id' => 'fileUpload']) !!}
{!! Form::label('category', 'Kategorija', ['class' => 'control-label']) !!} {!! Form::select('category', $categories, null, ['class' => 'form-control']) !!} @if($errors->has('category')) {{ $errors->first('category') }} @endif
{!! Form::label('name', 'Naziv *', ['class' => 'control-label']) !!} {!! Form::text('name', null, ['class' => 'form-control']) !!} @if($errors->has('name')) {{ $errors->first('name') }} @endif
@foreach($locales as $locale)
{!! Form::label($locale.'[url]', 'URL *', ['class' => 'control-label']) !!} {!! Form::text($locale.'[url]', $page->translateOrNew($locale)->url, ['class' => 'form-control']) !!} @if($errors->has($locale.'.url')) {{ $errors->first($locale.'.url') }} @endif
{!! Form::label($locale.'[meta_title]', 'Meta naslov *', ['class' => 'control-label']) !!} {!! Form::text($locale.'[meta_title]', $page->translateOrNew($locale)->meta_title, ['class' => 'form-control']) !!} @if($errors->has($locale.'.meta_title')) {{ $errors->first($locale.'.meta_title') }} @endif
{!! Form::label($locale.'[title]', 'Naslov *', ['class' => 'control-label']) !!} {!! Form::text($locale.'[title]', $page->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]', $page->translateOrNew($locale)->content, ['class' => 'form-control tinymce']) !!} @if($errors->has($locale.'.content')) {{ $errors->first($locale.'.content') }} @endif
@endforeach
{!! Form::submit('Spremi', ['class' => 'btn btn-primary']) !!} {!! link_to_route('admin.page.index', 'Natrag', null, ['class' => 'btn btn-default']) !!}
@section('styles') @endsection @section('scripts') @endsection