<!DOCTYPE html>
<html lang="es">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <?php
        $cs = Yii::app()->clientScript;
        $url = Yii::app()->request->baseUrl;
        $cs->registerCssFile($url . '/public/css/bootstrap.min.css');
        $cs->registerCssFile($url . '/public/css/metismenu.min.css');
        $cs->registerCssFile($url . '/public/css/icons.css');
        $cs->registerCssFile($url . '/public/css/style.css');
        $cs->registerCssFile($url . '/public/css/form.css');
        $cs->registerCoreScript('jquery.ui', CClientScript::POS_END);
        $cs->registerCoreScript('jquery', CClientScript::POS_END);
        $cs->registerScriptFile($url . '/public/js/bootstrap.bundle.min.js', CClientScript::POS_END);
        $cs->registerScriptFile($url . '/public/js/metismenu.min.js', CClientScript::POS_END);
        $cs->registerScriptFile($url . '/public/js/jquery.slimscroll.js', CClientScript::POS_END);
        $cs->registerScriptFile($url . '/public/js/waves.min.js', CClientScript::POS_END);
        $cs->registerScriptFile($url . '/public/js/app.js', CClientScript::POS_END);
        $cs->registerScriptFile($url . '/public/js/jquery.validate.js', CClientScript::POS_END);
        $cs->registerScriptFile($url . '/public/js/jquery.mask.js', CClientScript::POS_END);
        ?> 
        <link rel="icon" type="image/png" sizes="16x16" href="<?php echo Yii::app()->request->baseUrl . '/public/images/logo.png'; ?>">
        <style>
            legend{
                font-size: 20px;
                text-transform: uppercase;
            }
            col-nuevo{
                padding-right: 0px; 
                padding-left:0px;
            }
            #sidebar-menu > ul > li > a.mm-active {
                color: #ffffff !important;
                background-color: #000000;
            }
            
            .enlarged #wrapper .left.side-menu #sidebar-menu > ul > li > a:hover, .enlarged #wrapper .left.side-menu #sidebar-menu > ul > li > a:active, .enlarged #wrapper .left.side-menu #sidebar-menu > ul > li > a:focus {
    color: #ffffff;
    background-color: #c0c0c0;
}
            
            
          #sidebar-menu > ul > li > a:hover, #sidebar-menu > ul > li > a:focus, #sidebar-menu > ul > li > a:active {
    color: #fff;
    text-decoration: none;
    color: aquamarine;
    background: rgba(248,80,50,1);
background: -moz-linear-gradient(-45deg, rgba(248,80,50,1) 0%, rgba(241,111,92,1) 25%, rgba(240,47,23,1) 60%, rgba(246,41,12,1) 71%, rgba(231,56,39,1) 100%);
background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(248,80,50,1)), color-stop(25%, rgba(241,111,92,1)), color-stop(60%, rgba(240,47,23,1)), color-stop(71%, rgba(246,41,12,1)), color-stop(100%, rgba(231,56,39,1)));
background: -webkit-linear-gradient(-45deg, rgba(248,80,50,1) 0%, rgba(241,111,92,1) 25%, rgba(240,47,23,1) 60%, rgba(246,41,12,1) 71%, rgba(231,56,39,1) 100%);
background: -o-linear-gradient(-45deg, rgba(248,80,50,1) 0%, rgba(241,111,92,1) 25%, rgba(240,47,23,1) 60%, rgba(246,41,12,1) 71%, rgba(231,56,39,1) 100%);
background: -ms-linear-gradient(-45deg, rgba(248,80,50,1) 0%, rgba(241,111,92,1) 25%, rgba(240,47,23,1) 60%, rgba(246,41,12,1) 71%, rgba(231,56,39,1) 100%);
background: linear-gradient(135deg, rgba(248,80,50,1) 0%, rgba(241,111,92,1) 25%, rgba(240,47,23,1) 60%, rgba(246,41,12,1) 71%, rgba(231,56,39,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f85032', endColorstr='#e73827', GradientType=1 );

}
      
      
body {
    
background: rgba(255,255,255,1);
background: -moz-linear-gradient(-45deg, rgba(255,255,255,1) 0%, rgba(241,111,92,1) 40%, rgba(241,111,92,1) 92%);
background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(40%, rgba(241,111,92,1)), color-stop(92%, rgba(241,111,92,1)));
background: -webkit-linear-gradient(-45deg, rgba(255,255,255,1) 0%, rgba(241,111,92,1) 40%, rgba(241,111,92,1) 92%);
background: -o-linear-gradient(-45deg, rgba(255,255,255,1) 0%, rgba(241,111,92,1) 40%, rgba(241,111,92,1) 92%);
background: -ms-linear-gradient(-45deg, rgba(255,255,255,1) 0%, rgba(241,111,92,1) 40%, rgba(241,111,92,1) 92%);
background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(241,111,92,1) 40%, rgba(241,111,92,1) 92%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f16f5c', GradientType=1 );
}  
      
      
      
            
            
            td{
            font-weight: bold;
            }
            .badge {
                font-weight: 700;
                font-size: 12px;
            }
            fieldset{
                    border-radius: 4px;
                    border: 1px solid #dc3545;
                    padding-top: 200
                    
            }
            .font-16 {
    font-size: 18px;
}
            
            
            legend{
                    color: #000;
                    font-size: 17px;
                    padding: 3px 5px 3px 7px;
                    width: auto;
            }
            .select2-container, .select2-drop, .select2-search, .select2-search input {
                -webkit-box-sizing: border-box;
                -khtml-box-sizing: border-box;
                -moz-box-sizing: border-box;
                -ms-box-sizing: border-box;
                box-sizing: border-box;
                width: 100%;
            }
            
            .table th {

                background-color: #F7DC6F;
            }
        a {
            color: #343a40;
        }
            
            
        </style>
        
        <style>
        .select2-container {
           margin-top: 10px !important;
           margin-bottom: 10px  !important;
           position: relative;
           display: inline-block;
           width: 100% !important;
           zoom: 1;
           *display: inline;
           vertical-align: top;
  
       }
       
       span.select2-selection__rendered {
            white-space: nowrap;
          }
          .errorMessage{
            color: red   !important;
          
          }
          
          label{
             text-transform: uppercase; 
          
          }
          
        </style>

    </head>
<body>
        <!-- Begin page -->
        <div id="wrapper">

            <!-- Top Bar Start -->
            <div class="topbar">

                <!-- LOGO -->
                <div class="topbar-left"  style=" background-color: #9c9c9c;" >
                    <a href="<?php echo Yii::app()->request->baseUrl.'/site/sistema'; ?>" class="logo">
                        <span class="logo-light">
                            <img src="<?php echo Yii::app()->request->baseUrl . '/public/images/logo.png'; ?>" class="img-responsive" style="max-width: 150px;">
                        </span>
                        <span class="logo-sm">
                        <img src="<?php echo Yii::app()->request->baseUrl . '/public/images/logo.png'; ?>" class="img-responsive" style="max-width: 50px;">
                        </span>
                    </a>
                </div>

                <nav class="navbar-custom">
                    <ul class="navbar-right list-inline float-right mb-0">
                        <!-- full screen -->
           
                    <?php
                        if (!Yii::app()->user->isGuest) {
                            ?>
                          <li class="dropdown notification-list list-inline-item">
                                    <a class="nav-link  dropdown-toggle text-uppercase"  href="#" data-toggle="dropdown">
                                        <i class="icon-user mx-0"></i> 
                                        <?php
                                        if(!empty($_SESSION['login'])){
                                            echo $_SESSION['login'];
                                        }

                                        ?>
                                    </a>
                            </li>
                            <li class="dropdown notification-list list-inline-item">
                                <a class="nav-link  dropdown-toggle text-uppercase"  href="<?php echo $url . '/site/logout'; ?>">
                                    <i class="icon-logout"></i>
                                    <span class="menu-title">Cerrar sesi&oacute;n</span>
                                </a>
                            </li>
                            
                        <li class="dropdown notification-list list-inline-item d-none d-md-inline-block">
                            <a class="nav-link waves-effect" href="#" id="btn-fullscreen">
                                <i class="mdi mdi-arrow-expand-all noti-icon"></i>
                            </a>
                        </li>
                       <?php
                        }
                        ?>
                            
                            
                            
                    </ul>

                    <ul class="list-inline menu-left mb-0">
                        <li class="float-left">
                            <button class="button-menu-mobile open-left waves-effect">
                                <i class="mdi mdi-menu"></i>
                            </button>
                        </li>
                   
                    </ul>

                </nav>

            </div>
            <!-- Top Bar End -->

            <!-- ========== Left Sidebar Start ========== -->
            <div class="left side-menu" style=" background-color: #9c9c9c;"    >
                <div class="slimscroll-menu" id="remove-scroll">

                    <!--- Sidemenu -->
                    <div id="sidebar-menu" >
                        <!-- Left Menu Start -->
                        <ul class="metismenu" id="side-menu">
                            <li class="menu-title">MENU</li>
<?php




 if(empty($_SESSION['perfil']) and empty($_SESSION['gestor']) and ($_SESSION['id_perfil']!=3)  and (Yii::app()->user->name!='jacky')  ){
?>
                                
<!--                                <li><a id='color' style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/prestamo/actualizar';  ?> "class='waves-effect'>
                                    <i class='icon-rotate'></i> ACTUALIZAR</a>
                                </li>
                                -->
                                
                                 <li><a id='color' style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/prestamo/actualizarpendiente';  ?> "class='waves-effect'>
                                    <i class='icon-rotate'></i> PENDIENTE</a>
                                </li>
                                
                     <li><a id='color' style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/prestamo/actualizaraldia';  ?> "class='waves-effect'>
                                    <i class='icon-rotate'></i> AL DIA</a>
                                </li>
                                
                                
                       
                        <li><a id='color' style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/prestamo/actualizarcancelado';  ?> "class='waves-effect'>
                                    <i class='icon-rotate'></i>CANCELADOS</a>
                                </li>  
                    
                                
                                
                    <?php
                    
                    }
                    ?>
                    
                    <li><a  style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/prestamo/nuevo';  ?> "class='waves-effect'>
                                    <i class='fas fa-donate'></i> COMISION NUEVOS</a></li>
                               

  <li><a  style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/renovacion/renovar';  ?> "class='waves-effect'>
                                    <i class='fas fa-donate'></i> COMISION RENOVACIONES</a></li>
                                         



                                                                                      <?php
  if(Yii::app()->user->name!='jacky' ){
?> 
                                
                                  <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/prestamo/clientec';  ?> "class='waves-effect'>
                                    <i class='fa fa-search  '></i> CONSULTAR/CLIENTES</a>
                                </li> 
   <?php
                    
                    }
                    ?>
                
     


                                                              <?php
  if(empty($_SESSION['perfil']) and empty($_SESSION['gestor']) and ($_SESSION['id_perfil']!=3) and (Yii::app()->user->name!='jacky')  ){
?>   
                                  <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/cliente';  ?> "class='waves-effect'>
                                    <i class='icon-profile-add '></i> CLIENTES</a>
                                </li>   
                           
                                <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/cliente/filtrar';  ?> "class='waves-effect'>
                                    <i class='icon-profile-add '></i> FILTRAR</a>
                                </li>
                      
                             
                           
                                   <li><a  style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/prestamo';  ?> "class='waves-effect'>
                                    <i class='fas fa-donate'></i> PRESTAMOS</a></li>
                                    
                                   <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/renovacion';  ?> "class='waves-effect'>
                                    <i class='fas fa-donate'></i> RENOVACION</a></li>
                                    
                                   
                                    
                                     <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/pagos/relacion';  ?> "class='waves-effect'>
                                    <i class='fas fa-donate'></i> RELACION DE PAGOS</a></li>
                                    
                                               <?php
                    
                    }
                    ?>
                              
                                    
     
                                       <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/pagos';  ?> "class='waves-effect'>
                                    <i class='mdi mdi-bank'></i> PAGOS</a></li>  
                                    
                                    <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/pagos/borrado';  ?> "class='waves-effect'>
                                    <i class='mdi mdi-bank'></i> PAGOS ELIMINADOS</a></li>
                                 


 <?php
                                       
                                        if(empty($_SESSION['perfil']) and empty($_SESSION['gestor']) ){
                                            
                                    
                                        ?> 
                                    
                                    <!-- <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/rendicionCliente';  ?> "class='waves-effect'>
                                    <i class='fa fa-list'></i> RENDICION </a></li>   
                                    -->
                                    <?php
                                    
                                        }
                                        
                                        ?>
                                   
                                    
                                
                                    <?php
  if((Yii::app()->user->name=='ADMIN') || (Yii::app()->user->name=='xavier')||
          (Yii::app()->user->name=='rodrigo') || (Yii::app()->user->name=='antonio') ||(Yii::app()->user->name=='panama')     ||  (Yii::app()->user->name=='vicky')){
      
  ?>
      
      <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/transferencia';  ?> "class='waves-effect'>
                                    <i class='fa fa-list'></i> RENDICION 2</a></li>   
      
    <?php  
  }
                                    
                                    
    ?> 
                                    
                                    
                                    
                                    
                                    
                                    
                                    <?php
                                       
                                        if(!empty($_SESSION['id_perfil']) and (($_SESSION['id_perfil']=='1' )) and (Yii::app()->user->name!='jacky')   ){
                                            
                                    
                                        ?> 
                                                                                                 <?php
 if(empty($_SESSION['perfil']) and empty($_SESSION['gestor'])  and ($_SESSION['id_perfil']!=3) ){

?> <!--
                                    
                              <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/rendicionCliente';  ?> "class='waves-effect'>
                                    <i class='fa fa-list'></i> RENDICION </a></li>   
                                    
                                          
                                    
                                        <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/utilidad';  ?> "class='waves-effect'>
                                    <i class='fas fa-calculator'></i> UTILIDADES</a></li>  
                                     
                                      <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/cliente/movimientos';  ?> "class='waves-effect'>
                                    <i class='icon-graph '></i> MOVIMIENTOS</a></li>  
                                    -->
                                    
                                    
                                    
                                                           <?php }
               
                                        ?>  
                                    
                                    <?php }
               
                                        ?>   
                                        
                                    
                                    <?php
 if(Yii::app()->user->name!='jacky' ){
?> 
                                    
                                    
                                    
                                        <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/prestamo/cartera';  ?> "class='waves-effect'>
                                          <i class='fa fa-users '></i> CARTERA DE CLIENTES</a></li>    
                                             
                                       <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/prestamo/renovar';  ?> "class='waves-effect'>
                                          <i class='fa fa-users '></i> NO RENOVADOS</a></li>
                                    
                                    <?php }
               
                                        ?>  
                                    
<?php
 if(empty($_SESSION['perfil']) and empty($_SESSION['gestor']) and ($_SESSION['id_perfil']!=3)  and (Yii::app()->user->name!='jacky') ){
?> 
                                       <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/prestamo/carteracancelados';  ?> "class='waves-effect'>
                                    <i class='fa fa-minus-square'></i> CARTERA CANCELADOS</a></li>  
                                    
                                     <?php }
               
                                        ?> 
                                                                     <?php
 if(Yii::app()->user->name!='jacky' ){
?> 
                                    
                                    
                             
                                    
                                     <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/cliente/estadocuenta';  ?> "class='waves-effect'>
                                    <i class='fa fa-file-pdf '></i> ESTADOS DE CUENTA</a></li>
                                    
                                    
                                       
                                     <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/captador';  ?> "class='waves-effect'>
                                    <i class='fa fa-user '></i> CAPTADORES</a></li>
                                                          
                                        
                                       <?php }
               
                                        ?>  
                                        
                                        
                                        <?php
 if(empty($_SESSION['perfil']) and empty($_SESSION['gestor']) and ($_SESSION['id_perfil']!=3) and (Yii::app()->user->name!='jacky')  ){
?>   
                   
                                    
                            <li style=" background-color: #9c9c9c;"   >
                                <a  style="color:#000; font-weight:bold" href="javascript:void(0);" class="waves-effect"><i class="icon-setting-1"></i>
                                <span> CONFIGURACI&Oacute;N <span class="float-right menu-arrow"><i class="mdi mdi-chevron-right"></i></span> </span> </a>
                                <ul class="submenu" style=" background-color: #9c9c9c;background-color: #9c9c9c;"  >
                                    
                                   
                                    
                                    
                     
                                     <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/usuario/password';  ?> "class='waves-effect'>
                                    CAMBIAR CONTRASEÑA</a></li>
                                    
                                    
                                    <?php
                               
                                        if(!empty($_SESSION['id_perfil']) and (($_SESSION['id_perfil']=='1' ))and (Yii::app()->user->name!='jacky')    ){
                                            
                                    
                                        ?> 
                                    
                                    
                                    <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/banco';  ?> "class='waves-effect'>
                                    BANCO</a></li>
                                    
                                    
                                    <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/distrito';  ?> "class='waves-effect'>
                                    DISTRITOS</a></li>
                                    
                                    
                                    <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/duracion';  ?> "class='waves-effect'>
                                    DURACION</a></li>
                                    <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/empleo';  ?> "class='waves-effect'>
                                    EMPLEO<li><a style="color:#000; font-weight:bold;background-color: #9c9c9c;" href="<?php  echo Yii::app()->request->baseUrl.'/usuario';  ?> "class='waves-effect'>
                                    USUARIOS</a></li></a></li>
                                    <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/gestor';  ?> "class='waves-effect'>
                                    GESTOR</a></li>
                                    <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/monto';  ?> "class='waves-effect'>
                                    MONTO</a></li>
                                    
                                     <li><a style="color:#000; font-weight:bold" href="<?php  echo Yii::app()->request->baseUrl.'/zona';  ?> "class='waves-effect'>
                                    ZONA</a></li>
                                    <?php }
               
               ?>
                                </ul>
                            </li>
<?php

 }
 ?>
                        </ul>

                    </div>
                    <!-- Sidebar -->
                    <div class="clearfix"></div>

                </div>
                <!-- Sidebar -left -->

            </div>
            <div class="content-page">
                <!-- Start content -->
                <div class="content">
                    <div class="container-fluid">
                        <div class="page-title-box">
                            <div class="row align-items-center   ">
                                <div class="col-12">
                                    <h4 class="page-title text-uppercase"><?php echo CHtml::encode($this->pageTitle); ?></h4>
                                </div>
                                
                               
                                
                                <div class="col-12  text-center">
                                    
                                    <div class="row justify-content-center">
                                        <div class="col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
                                             <?php
                                            foreach (Yii::app()->user->getFlashes() as $key => $message) {

                                                Yii::app()->clientScript->registerScript(
                                                        'myHideEffect', '$(".alert").animate({opacity: 0.9}, 7500).fadeOut("slow");', CClientScript::POS_READY
                                                );

                                                echo '<div class="alert alert-' . $key . '  text-uppercase " role="alert"   >  
                                                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                                          <span aria-hidden="true">×</span>
                                                        </button> ' . $message . '</div>';
                                            }
                                            ?>
                                        </div>
                                    </div>
                                </div>
                            </div> <!-- end row -->
                        </div>
                        <!-- end page-title -->

                        <div class="row">
                            <div class="col-12">
                                <div class="card m-b-30">
                                    <div class="card-body">
                                        <?php echo $content; ?>
                                    </div>
                                </div>
                            </div> <!-- end col -->
                        </div> <!-- end row -->      

                        
                    </div>
                    <!-- container-fluid -->

                </div>
                <!-- content -->

                <footer class="text-center" >
                  <?php echo ' Copyright &copy; ' . date('Y') . ' ' . Yii::app()->params['footer']; ?>
              
                </footer>

            </div>
        </div>
        
  
        
        
 

    </body>
</html>