@extends('layouts.app') @section('styles') @endsection @section('content')
Crear Anuncio
{{ Form::model($viewData['new'], ['id' => 'create_new', 'class' => 'form', 'route' => ['publicities.update',$viewData['new']->id], 'files' => true,'method'=>'PATCH'] ) }}
{{ Form::label( 'fd_title', 'Título')}} {{ Form::text( 'fd_title', null, ['id' => 'new_fd_title', 'class' => 'form-control', 'required'] ) }} @if ( $errors->get( 'fd_title' ) ) @foreach ( $errors->get( 'fd_title' ) as $error )
{{ $error }}
@endforeach @endif
{{ Form::label( 'fd_author', 'Autor')}} {{ Form::text( 'fd_author', null, ['id' => 'new_fd_author', 'class' => 'form-control'] ) }} @if ( $errors->get( 'fd_author' ) ) @foreach ( $errors->get( 'fd_author' ) as $error )
{{ $error }}
@endforeach @endif
{{ Form::label( 'fd_order', 'Orden Present.')}} {{ Form::number( 'fd_order', null, ['id' => 'new_fd_order', 'class' => 'form-control', 'required'] ) }} @if ( $errors->get( 'fd_order' ) ) @foreach ( $errors->get( 'fd_order' ) as $error )
{{ $error }}
@endforeach @endif
{{ Form::label( 'fd_image', 'Imagen')}} {{ Form::file( 'fd_image', null, ['id' => 'new_fd_image', 'class' => 'form-control', 'required'] ) }} @if ( $errors->get( 'fd_image' ) ) @foreach ( $errors->get( 'fd_image' ) as $error )
{{ $error }}
@endforeach @endif
{!! Form::label('fd_active', 'Publicar:') !!}
{!! Form::checkbox('fd_active',null,null, array('class' => 'custom-control-input', 'id'=>"defaultUnchecked")) !!}
@if ( $errors->get( 'fd_active' ) ) @foreach ( $errors->get( 'fd_active' ) as $error )
{{ $error }}
@endforeach @endif
{{ Form::label( 'fd_description', 'Resumen')}} {{ Form::textarea( 'fd_description', null, ['id' => 'new_fd_description', 'class' => 'form-control', 'required'] ) }} @if ( $errors->get( 'fd_description' ) ) @foreach ( $errors->get( 'fd_description' ) as $error )
{{ $error }}
@endforeach @endif
{{ Form::label( 'fd_review', 'Descripción')}} {{ Form::textarea( 'fd_review', null, ['id' => 'new_fd_review', 'class' => 'form-control', 'required'] ) }} @if ( $errors->get( 'fd_review' ) ) @foreach ( $errors->get( 'fd_review' ) as $error )
{{ $error }}
@endforeach @endif
{{ Form::close() }}
@endsection @section('scripts') @endsection