{!! Form::label('name', 'Nome *') !!} {!! Form::text('name', null, ['class' => 'form-control', 'required' => '']) !!}
{!! Form::label('email', 'Email *') !!} {!! Form::email('email', null, ['class' => 'form-control', 'required' => '']) !!}
@if ($type == 'create')
{!! Form::label('password', 'Password *') !!} {!! Form::password('password', ['class' => 'form-control', 'required' => '']) !!}
@else
{!! Form::label('password', 'Password') !!} {!! Form::password('password', ['class' => 'form-control']) !!}
@endif
{!! Form::label('is_admin', 'Amministratore') !!} {!! Form::hidden('is_admin', 0) !!} {!! Form::checkbox('is_admin', 1) !!}
{!! Form::submit(($type == 'create') ? 'Crea utente' : 'Salva utente', ['class' => 'btn btn-primary form-control']) !!}