

<?php $__env->startSection('title', 'PERFIL USUARIO'); ?>

<?php $__env->startSection('content_header'); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
 <br>
<?php if (isset($component)) { $__componentOriginal0016fe8f62f0dc60d54a606049e169e1ae7c8127 = $component; } ?>
<?php $component = $__env->getContainer()->make(JeroenNoten\LaravelAdminLte\View\Components\Widget\Card::class, ['title' => 'PERFIL','theme' => 'dark','icon' => 'fas fa-id-card']); ?>
<?php $component->withName('adminlte-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
    <section class="content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-header">
                            <h3 class="card-title pb-2">Datos Personales : <span class="text-danger">*</span></h3>
                        </div>                        
                        <form action="<?php echo e(url('updatepass')); ?>" id="" method="POST" autocomplete="off">
                            <?php echo csrf_field(); ?>
                            <div class="card-body"> 
                                <div class="row">                                                                      
                                  <div class="col-md-6">
                                    <div class="row">
                                        <div class="col-md-12">
                                                                                
                                            <?php if (isset($component)) { $__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff = $component; } ?>
<?php $component = $__env->getContainer()->make(JeroenNoten\LaravelAdminLte\View\Components\Form\Input::class, ['name' => 'name','label' => 'Nombres y Apellidos','labelClass' => 'text-dark']); ?>
<?php $component->withName('adminlte-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['placeholder' => '','value' => ''.e($user->name).'','disabled' => true]); ?>
                                                 <?php $__env->slot('prependSlot', null, []); ?> 
                                                    <div class="input-group-text">
                                                        <i class="fas fa-user text-dark"></i>
                                                    </div>
                                                 <?php $__env->endSlot(); ?>
                                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff)): ?>
<?php $component = $__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff; ?>
<?php unset($__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff); ?>
<?php endif; ?>  
                                        </div>
                                    </div>
                                  </div>
                                  <div class="col-md-6">
                                    <div class="row">
                                        <div class="col-md-12">
                                                                                
                                            <?php if (isset($component)) { $__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff = $component; } ?>
<?php $component = $__env->getContainer()->make(JeroenNoten\LaravelAdminLte\View\Components\Form\Input::class, ['name' => 'username','label' => 'Usuario','labelClass' => 'text-dark']); ?>
<?php $component->withName('adminlte-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['placeholder' => '','value' => ''.e($user->username).'','disabled' => true]); ?>
                                                 <?php $__env->slot('prependSlot', null, []); ?> 
                                                    <div class="input-group-text">
                                                        <i class="fas fa-id-card text-dark"></i>
                                                    </div>
                                                 <?php $__env->endSlot(); ?>
                                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff)): ?>
<?php $component = $__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff; ?>
<?php unset($__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff); ?>
<?php endif; ?>  
                                        </div>
                                    </div>
                                  </div>
                                  <div class="col-md-6">
                                    <div class="row">
                                        <div class="col-md-12">
                                                                                
                                            <?php if (isset($component)) { $__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff = $component; } ?>
<?php $component = $__env->getContainer()->make(JeroenNoten\LaravelAdminLte\View\Components\Form\Input::class, ['name' => 'old_password','label' => 'Contraseña Actual','labelClass' => 'text-dark']); ?>
<?php $component->withName('adminlte-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['type' => 'password','placeholder' => 'Contraseña Actual']); ?>
                                                 <?php $__env->slot('prependSlot', null, []); ?> 
                                                    <div class="input-group-text">
                                                        <i class="fas fa-lock text-dark"></i>
                                                    </div>
                                                 <?php $__env->endSlot(); ?>
                                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff)): ?>
<?php $component = $__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff; ?>
<?php unset($__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff); ?>
<?php endif; ?>                                           
                                        </div>
                                    </div>
                                  </div>
                                  <div class="col-md-6">
                                    <div class="row">
                                        <div class="col-md-12">
                                                                                
                                            <?php if (isset($component)) { $__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff = $component; } ?>
<?php $component = $__env->getContainer()->make(JeroenNoten\LaravelAdminLte\View\Components\Form\Input::class, ['name' => 'new_password','label' => 'Nueva Contraseña','labelClass' => 'text-dark']); ?>
<?php $component->withName('adminlte-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['type' => 'password','placeholder' => 'Contraseña Nueva']); ?>
                                                 <?php $__env->slot('prependSlot', null, []); ?> 
                                                    <div class="input-group-text">
                                                        <i class="fas fa-lock text-dark"></i>
                                                    </div>
                                                 <?php $__env->endSlot(); ?>
                                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff)): ?>
<?php $component = $__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff; ?>
<?php unset($__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff); ?>
<?php endif; ?>  
                                        </div>
                                    </div>
                                  </div>
                                  <div class="col-md-6">
                                    <div class="row">
                                        <div class="col-md-12">
                                                                                
                                            <?php if (isset($component)) { $__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff = $component; } ?>
<?php $component = $__env->getContainer()->make(JeroenNoten\LaravelAdminLte\View\Components\Form\Input::class, ['name' => 'new_password_confirmation','label' => 'Confirmar Nueva Contraseña','labelClass' => 'text-dark']); ?>
<?php $component->withName('adminlte-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['type' => 'password','placeholder' => 'Confirmar Contraseña Nueva']); ?>
                                                 <?php $__env->slot('prependSlot', null, []); ?> 
                                                    <div class="input-group-text">
                                                        <i class="fas fa-lock text-dark"></i>
                                                    </div>
                                                 <?php $__env->endSlot(); ?>
                                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff)): ?>
<?php $component = $__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff; ?>
<?php unset($__componentOriginal7d1474369c7a69c75ad2fc0edfd903b7880af2ff); ?>
<?php endif; ?>  
                                        </div>
                                    </div>
                                  </div>
                                  <div class="col-md-12">
                                        <div class="row text-right">
                                                <div class="col-sm-12">
                                                    <button class="btn btn-primary btn-update">
                                                        <i class="fas fa-user-edit"></i>
                                                        Actualizar 
                                                    </button>
                                                    <a href="<?php echo e(route('profile')); ?>" id="btnTrim" class="btn btn-primary">
                                                        <i class="fas fa-eraser"></i>
                                                        Limpiar
                                                    </a>                                                                         
                                                </div>                                       
                                        </div>
                                 </div>
                                </div>                                   
                                
                            </div>   
                        </form>
                        <!-- /.form -->
                    </div>
                <!-- /.card -->            
                </div>
                <!-- /.col -->
          </div>
          <!-- /.row -->
        </div>
        <!-- /.container-fluid -->        
    </section> 
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0016fe8f62f0dc60d54a606049e169e1ae7c8127)): ?>
<?php $component = $__componentOriginal0016fe8f62f0dc60d54a606049e169e1ae7c8127; ?>
<?php unset($__componentOriginal0016fe8f62f0dc60d54a606049e169e1ae7c8127); ?>
<?php endif; ?>

<form wire:submit.prevent="storeFile()">

<input type="file" name="file" id="file" >
<input type="text" name="text" id="text">


<button type="submit" class="btn btn-primary">Guardar</button>
</form>





<?php $__env->stopSection(); ?>
<?php $__env->startSection('footer'); ?>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('js'); ?>

<?php if(session('password') == 'ok'): ?>
    <script>
        Swal.fire(
        'Exito!',
        'Se actualizo la contraseña',
        'success'
        )
    </script>
<?php endif; ?>

<?php if(session('password') == 'incorrect'): ?>
    <script>
        Swal.fire({
            icon: 'error',
            title:'Ups...',
            text: 'Contraseña incorrecta',
        })
    </script>
<?php endif; ?>

<?php if(session('password') == 'fail'): ?>
    <script>
        Swal.fire({
            icon: 'error',
            title:'Ups...',
            text: 'No se pudo actualizar la contraseña',
        })
    </script>
<?php endif; ?>

<?php if(session('password') == 'empty'): ?>
    <script>
        Swal.fire(
            'Campo faltante!',
            'No procedio la solicitud',
            'warning'
        )
    </script>
<?php endif; ?>

<?php if(session('password') == 'nomatch'): ?>
    <script>
        Swal.fire(
            'Contraseña incorrecta!',
            'No coinciden las contraseñas',
            'warning'
        )
    </script>
<?php endif; ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('adminlte::page', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\cementerioLivewire\resources\views/profile/index.blade.php ENDPATH**/ ?>