<?php $__env->startSection('content'); ?>
    <section class="container-fluid">
        <div class="card mb-3 mt-4">
            <div class="card-header">
                <i class="fas fa-users-cog"></i> Registrar usuario
            </div>
            <div class="card-body">
                <form action="<?php echo e(route('register')); ?>"  class="form-inline mt-2" method="post" id="form-datos">
                    <?php echo csrf_field(); ?>
                    <div class="container">
                        <div class="image-profile-container">
                            <div class="card col-md-4" style="">
                                <img id="image-profile-img" class="card-img-top" src="https://x1.xingassets.com/assets/frontend_minified/img/users/nobody_m.original.jpg" alt="Card image cap">
                                <div class="card-body">
                                    <input id="img-file" name="img" class="image-profile-input" type="file" onchange="cargarIMG(this.files[0])" accept="image/jpeg">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group mt-2">
                        <span>
                    
                        </span>
                        <label class="form-label-title">Nombre:</label>
                        <input type="text" id="name" name="name" class="form-control" value="<?php echo e($users->name); ?>" placeholder="Nombre" required>
                    </div>
                    <div class="form-group mt-2">
                        <label class="form-label-title">Email:</label>
                        <input type="email" class="form-control" id="email" name="email" placeholder="Mail" required>
                    </div>
                    <div class="form-group mt-2">
                        <label class="form-label-title">Apellido:</label>
                        <input type="text" class="form-control" id="surname" name="surname" placeholder="Surname" required>
                    </div>
                    <div class="form-group mt-2">
                        <label for="inputPassword6" class="form-label-title">Contraseña:</label>
                        <input type="password" id="password" name="password" class="form-control" placeholder="Contraseña">
                    </div>
                    <div class="form-group mt-2">
                        <label for="inputPassword6" class="form-label-title">Confirmar:</label>
                        <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required placeholder="Confirmar clave">
                    </div>
                    <div class="form-group mt-2">
                        <label for="" class="form-label-title">Cedula:</label>
                        <input id="cedula" type="text" class="form-control" name="idCard" required placeholder="cedula">
                    </div>
                    <div class="form-group mt-2">
                        <label for="" class="form-label-title">Direccion:</label>
                        <input id="address" type="text" class="form-control" name="address" required placeholder="Direccion">
                    </div>
                    <div class="form-group mt-2">
                        <label for="" class="form-label-title">tel:</label>
                        <input id="tel" type="nomber" class="form-control" name="tel" required placeholder="clave">
                    </div>
                    <div class="form-group mt-2">
                        <label class="form-label-title">Rol:</label>
                        <select name="role" id="role" id="role" class="form-control" required>
                            <option value="admin">admin</option>
                            <option value="user">user</option>
                            <option value="desarrollador">desarrollador</option>
                        </select>
                    </div><hr>
                    <div class="buttons-container">
                        <button type="submit" class="btn btn-primary btn-sm">Registrar</button>
                    </div>
                </form>
            </div>
                <div class="card-footer small text-muted">Updated yesterday at 11:59 PM</div>
        </div>
    <section>
    <script  src="<?php echo e(asset('js/admin.js')); ?>"> </script>  
    <link  media="all" rel="stylesheet" type="text/css" href="<?php echo e(asset('css/admin.css')); ?>">
    <link  media="all" rel="stylesheet" type="text/css" href="<?php echo e(asset('css/registrar.css')); ?>">
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>