<?php $__env->startSection('titulo'); ?>
    SGP - <?php echo e(Auth::user()->Unidade->getNome()); ?></b> - <i class="fas fa-user-lock"></i> Trocar Senha
<?php $__env->stopSection(); ?>

<?php $__env->startSection('css'); ?>
    <link rel="stylesheet" href="<?php echo e(URL::asset('css/tempus-dominus/tempusdominus-bootstrap-4.min.css')); ?>" />
    <link rel="stylesheet" href="<?php echo e(URL::asset('css/bootstrap-select-1.13.2/bootstrap-select.min.css')); ?>" />
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
    <script src="<?php echo e(URL::asset('js/moment/min/moment-with-locales.min.js')); ?>"></script>
    <script src="<?php echo e(URL::asset('js/tempus-dominus/tempusdominus-bootstrap-4.min.js')); ?>"></script>
    <script src="<?php echo e(URL::asset('js/bootstrap-select-1.13.2/bootstrap-select.min.js')); ?>"></script>
    <script src="<?php echo e(URL::asset('js/views/adm/trocasenha.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('pagina'); ?>
    
<div class="content-wrapper">
    <div class="container-fluid">
        <input type="hidden" id="txtIdUsuario" name="idusuario" data="<?php echo e(Auth::user()->getId()); ?>"/>
        <input type="hidden" id="txtUsuario" name="usuario" data="<?php echo e(Auth::user()->getNome()); ?>"/>
        <div class="card rounded text-left">
            <div class="card-body">
               <!--  <div class="col-md-4">
                    <h4 style="color:#056367;"><i class="fas fa-user-lock"></i> Trocar Senha do Usuário</h4>
                </div> -->
                <div class="row" >
                    
                    <div class="col col-sm-4 text-left">
                        <label for="cbUsuarioPesq" class="col-form-label text-md-left">Usuário Logado</label>
                        <br/>
                        <select id="cbUsuarioPesq" class="form-control">
                            <option value="">Selecione...</option>
                        </select>
                    </div>
                    
                   
                    <div class="col col-sm-7 text-right">
                        <label for="txtPesquisa" class="col-form-label text-md-left">&nbsp;</label>
                        <br/>
                        <button id="btnTrocarSenha" type="button" class="btn btn-primary" aria-label="Left Align" >
                            <i class="fas fa-user-lock"></i> Trocar Senha
                        </button>
                    </div>
                </div>
            </div>
        </div>
    
        
       
        <br/>
    </div>
</div>
   
    <!-- Inclui formulário modal -->
    <?php echo $__env->make('partials._modal_form',
    [
        'largura'=>700,
        'titulo'=> 'Trocar Senha',
        'rota' => 'adm.trocasenha.salvar',
        'icone' => 'fa-unlock',
        'campos'=>
        [
            [
                'id' =>'hdUsuario',
                'nome'=>'hdusuario',
                'tipo'=>'hidden'
            ],
            [
                'tipo'=>'array',
                'campos'=>
                [
                    [
                        'largura'=>'10',
                        'id' =>'txtNome',
                        'label'=>'Usuário',
                        'nome'=>'nome',
                        'tamanho'=>'50',
                        'tipo'=>'txt',
                        'required'=> true,
                        'autofocus'=> true,
                        'disabled'=>true
                    ],
                ]
            ],                       
            [
                'tipo'=>'array',
                'campos'=>
                [
                    [
                        'largura'=>'5',
                        'id' =>'txtSenha',
                        'label'=>'Nova Senha',
                        'nome'=>'senha',
                        'tamanho'=>'30',
                        'tipo'=>'password',
                        'required'=> true,
                        'disabled'=>false
                    ],
                    [
                        'largura'=>'5',
                        'id' =>'txtConfirmSenha',
                        'label'=>'Confirmar Senha',
                        'nome'=>'confirma_senha',
                        'tamanho'=>'30',
                        'tipo'=>'password',
                        'required'=> true,
                        'disabled'=>false
                    ]
                ]
            ]
        ]
    ], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>