@extends('layout') @section('title', 'Add a Contact') @section('content') {{ Form::open(['route' => 'contacts.store']) }}

Agregar contacto

@if(Session::has('message')) @endif
{{ Form::label('name', 'Nombre de contacto') }} {{ Form::text('name', false, array('class' => 'form-control', 'placeholder' => 'Please enter the contact\'s name')) }}
{{ $errors->first('name', '

:message

') }}
{{ Form::label('email', 'Direcion de Correo electronico') }} {{ Form::text('email', false, array('class' => 'form-control', 'placeholder' => 'Please enter the contact\'s e-mail address')) }}
{{ $errors->first('email', '

:message

') }}
{{ Form::label('phone', 'Numero de telefono') }} {{ Form::text('phone', false, array('class' => 'form-control', 'placeholder' => 'Please enter the contact\'s telephone number')) }}
{{ $errors->first('phone', '

:message

') }}
{{ Form::label('company', 'Nombre de empresa') }} {{ Form::select('company', array('default' => '[Please select a company]') + $companies, null, array('class' => 'form-control')) }}
{{ $errors->first('company', '

:message

') }}

Funciones

{{ Form::submit('Agregar nuevo contacto', array('class' => 'btn btn-success btn-block')) }}
{{ Form::close() }}
Cancelar e ir a contactos
@stop