<?php $__env->startSection('content'); ?>
    <div class="col-xs-12 col-lg-6 col-lg-offset-3">
        <?php echo Form::open(array('url'=>'user/create')); ?>

        <h2>Lūdzu reģistrējies!</h2>

        <div class="form-group <?php if ($errors->has('name')) echo 'has-error'?>">
            <?php echo Form::text('name', Input::old('name'), array(
                'class'=>'form-control',
                'placeholder'=>'Vārds un uzvārds'
            )); ?>

            <?php if($errors->has('name')): ?>
                <label class="control-label" for="new-form"><?php echo $errors->first('name'); ?></label>
            <?php endif; ?>
        </div>
        <div class="form-group <?php if ($errors->has('email')) echo 'has-error'?>">
            <?php echo Form::text('email', Input::old('email'), array(
                'class'=>'form-control',
                'placeholder'=>'E-pasta adrese'
            )); ?>

            <?php if($errors->has('email')): ?>
                <label class="control-label" for="new-form"><?php echo $errors->first('email'); ?></label>
            <?php endif; ?>
        </div>
        <div class="form-group <?php if ($errors->has('password')) echo 'has-error'?>">
            <?php echo Form::password('password', array(
                'class'=>'form-control',
                'placeholder'=>'Parole'
            )); ?>

            <?php if($errors->has('password')): ?>
                <label class="control-label" for="new-form"><?php echo $errors->first('password'); ?></label>
            <?php endif; ?>
        </div>
        <div class="form-group <?php if ($errors->has('password_confirmation')) echo 'has-error'?>">
            <?php echo Form::password('password_confirmation', array(
                'class'=>'form-control',
                'placeholder'=>'Parole atkārtoti'
            )); ?>

            <?php if($errors->has('password_confirmation')): ?>
                <label class="control-label" for="new-form"><?php echo $errors->first('password_confirmation'); ?></label>
            <?php endif; ?>
        </div>

        <?php echo Form::submit('Reģistrēties', array('class'=>'btn btn-large btn-info btn-block')); ?>

        <?php echo Form::close(); ?>

    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>