@extends('admin.layouts.app') @section('content') {{--
--}} {{--
--}}

Crear Usuario

InformaciĆ³n personal

{{-- Mensajes --}}
{{-- De error --}} @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- De exito --}} @if(Session::has('guardado')) @endif
{!! Form::open(array('route' => 'user.store', 'method' => 'POST','enctype'=>"multipart/form-data", 'class' => 'form-horizontal')) !!} {!! Form::token() !!}
{!! Form::label('', 'Nombre:', ['class' => 'col-sm-3']) !!}
{!! Form::text('name', '', ['class' => 'form-control']) !!}
{!! Form::label('', 'Apellido:', ['class' => 'col-sm-3']) !!}
{!! Form::text('surname', '', ['class' => 'form-control']) !!}
{!! Form::label('', 'Email:', ['class' => 'col-sm-3']) !!}
{!! Form::text('email', '', ['class' => 'form-control']) !!}
{!! Form::label('', 'Usuario:', ['class' => 'col-sm-3']) !!}
{!! Form::text('user', '', ['class' => 'form-control']) !!}
{!! Form::label('', 'Password:', ['class' => 'col-sm-3']) !!}
{!! Form::password('password', ['class' => 'form-control']) !!}
{!! Form::label('', 'Rol:', ['class' => 'col-sm-3']) !!}
@foreach($roles as $rol) {{$rol}} {{ Form::checkbox('rol[]', $rol, false) }}
@endforeach {{-- {{ Form::select('rol', $roles, null, ['placeholder' => 'Seleccionar']) }} --}}
{!! Form::submit() !!}
{!! Form::close() !!}
@endsection @section('scripts') @endsection