<?php $__env->startSection('content'); ?>
    <section class="container-fluid all-container">
        <div class="barra-container">
            <a role="button" href="/asignarApp/<?php echo e($users->id); ?>" class="btn btn-secondary btn-agregar">
                <i class="fab fa-wpforms agregar-usuario-icono"></i> Asignar Aplicacion
            </a>
        </div>
        <div class="card mb-3">
            <div class="card-header titulo-eliminar">
                <div class="button-title">
                    <i class="fas fa-users-cog"></i> usuario
                </div>
                <div onclick="eliminaruser(<?php echo e($users->id); ?>)"class="eliminar-container">
                    <i class="far fa-trash-alt eliminar-icon"></i>
                </div>
            </div>
            <div class="card-body">
                <form action="/updateUser/<?php echo e($users->id); ?>"  class="mx-auto 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="<?php echo e($users->img); ?>" 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 col-md-8 mx-auto">
                        <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 disabled>
                    </div>
                    <div class="form-group mt-2 col-md-8 mx-auto">
                        <label class="form-label-title">Email:</label>
                        <input type="email" class="form-control" id="email" name="email" value="<?php echo e($users->email); ?>" placeholder="Mail" required disabled>
                    </div>
                    <div class="form-group mt-2 col-md-8 mx-auto">
                        <label class="form-label-title">Apellido:</label>
                        <input type="text" class="form-control" id="surname" name="surname" value="<?php echo e($users->surname); ?>" placeholder="Surname" required disabled>
                    </div>
                    <div class="form-group mt-2 col-md-8 mx-auto">
                        <label for="" class="form-label-title">Cedula:</label>
                        <input id="cedula" type="text" class="form-control" name="idCard" value="<?php echo e($users->idCard); ?>" required placeholder="cedula" disabled>
                    </div>
                    <div class="form-group mt-2 col-md-8 mx-auto">
                        <label for="" class="form-label-title">Direccion:</label>
                        <input id="address" type="text" class="form-control" name="address" value="<?php echo e($users->tel); ?>" required placeholder="Direccion" disabled>
                    </div>
                    <div class="form-group mt-2 col-md-8 mx-auto">
                        <label for="" class="form-label-title">tel:</label>
                        <input id="tel" type="nomber" class="form-control" name="tel" value="<?php echo e($users->tel); ?>" required placeholder="clave" disabled>
                    </div>
                    <div class="form-group mt-2 col-md-8 mx-auto">
                        <label class="form-label-title">Rol:</label>
                        <select name="role" id="role" id="role" class="form-control" required disabled>
                            <option value="admin">admin</option>
                            <option value="cliente">cliente</option>
                            <option value="desarrollador">desarrollador</option>
                        </select>
                    </div>
                    <div class="buttons-container col-md-4 mx-auto">
                        <button type="button" onclick="editar()" id="button-editar" class="btn btn-info">editar</button>
                        <button type="submit" class="btn btn-primary">guardar</button>
                    </div><hr>
                </form>
            </div>
                <div class="card-footer small text-muted">Updated yesterday at 11:59 PM</div>
        </div>
        
        <div class="card mb-3">
            <div class="card-header">
            <i class="fas fa-ruler"></i> Aplicaciones del usuario
            </div>
            <div class="card-body">
                <div class="container">
                    <div class="row">
                        <?php if( $aplicacion_name == '[]'): ?>
                          <small>Este usuario no tiene aplicaciones</small>
                        <?php endif; ?>
                        <?php $__currentLoopData = $aplicacion_name; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $aplicaciones): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <a href="../aplicacion/<?php echo e($aplicaciones->app_id); ?>" class="col-md-4 list-group-item list-group-item-action flex-column pointer">
                                <div class="d-flex w-100 justify-content-between">
                                <h5 class="mb-1"><?php echo e($aplicaciones->app_name); ?></h5>
                                </div>
                            </a>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
            </div>
        </div>
    <section>
    <script  src="<?php echo e(asset('js/admin.js')); ?>"> </script>  
	<script src="<?php echo e(asset('js/user.js')); ?>"></script>
	<script src="<?php echo e(asset('js/sweetalert.min.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/general.css')); ?>">
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.dashboard', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>