@extends('andes.zbase::layout') @section('content')
{!! Breadcrumbs::render('paginas.editar') !!}

Páginas

Dados da página
{!! Form::model($pagina, ['route'=>['andes.paginas.salvar', $pagina->id], 'class'=>'form-horizontal form-validate', 'role'=>'form', 'files'=>true]) !!}
{!! Form::text('title', null, ['class'=>'form-control', 'maxlength'=>'60', 'required']) !!} @if($errors->has('title')) {{ $errors->first('title') }} @endif
{!! Form::text('description', null, ['class'=>'form-control', 'maxlength'=>'255']) !!} @if($errors->has('description')) {{ $errors->first('description') }} @endif
@if(auth()->guard('andes')->user()->grupo->id == 1)
{!! Form::text('uri', null, ['class'=>'form-control', 'maxlength'=>'255', 'required']) !!} @if($errors->has('uri')) {{ $errors->first('uri') }} @endif
@endif
 
Selecionar imagem Trocar {{ Form::file('image', ['accept'=>'image/*']) }} Remover
@if($errors->has('image')) {{ $errors->first('image') }} @else Dimensão: 200x200 px @endif @if($pagina->image) Ver/cortar imagem @endif
{!! Form::url('link', null, ['class'=>'form-control', 'maxlength'=>'255']) !!} @if($errors->has('link')) {{ $errors->first('link') }} @endif
@if(auth()->guard('andes')->user()->grupo->id == 1)
{!! Form::text('rota', null, ['class'=>'form-control', 'maxlength'=>'45']) !!} @if($errors->has('rota')) {{ $errors->first('rota') }} @endif
@endif
{!! Form::hidden('grupo', auth()->guard('andes')->user()->grupo->id) !!} {!! Form::submit('Salvar', ['class'=>'btn green']) !!}
{!! Form::close() !!}
@endsection @section('scripts') @endsection