<!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->registerCssFile($url . '/public/css/sweetalert.css');
        
        $cs->registerCssFile($url . '/public/data/data/css/jquery.dataTables.min.css');
        $cs->registerCssFile($url . '/public/data/buttons/css/buttons.dataTables.min.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);
        $cs->registerScriptFile($url . '/public/js/sweetalert2.js', CClientScript::POS_END);
        $cs->registerScriptFile($url . '/public/js/jquery.min.js', CClientScript::POS_END);
        
        $cs->registerScriptFile($url . '/public/data/data/js/jquery.dataTables.min.js', CClientScript::POS_END);
        $cs->registerScriptFile($url . '/public/data/buttons/js/dataTables.buttons.min.js', CClientScript::POS_END);
        $cs->registerScriptFile($url . '/public/data/buttons/js/buttons.colVis.min.js', CClientScript::POS_END);
        $cs->registerScriptFile($url . '/public/data/buttons/js/buttons.flash.min.js', CClientScript::POS_END);
        $cs->registerScriptFile($url . '/public/js/jszip.min.js', CClientScript::POS_END);
        $cs->registerScriptFile($url . '/public/data/buttons/js/buttons.html5.min.js', CClientScript::POS_END);
        $cs->registerScriptFile($url . '/public/data/buttons/js/buttons.print.min.js', CClientScript::POS_END);
        ?> 
        <link rel="icon" type="image/png" sizes="16x16" href="<?php echo Yii::app()->request->baseUrl . '/public/images/logo.png'; ?>">
        <style>
            
            .azul{
                background: rgba(73,155,234,1);
                background: -moz-linear-gradient(-45deg, rgba(73,155,234,1) 0%, rgba(73,155,234,1) 55%, rgba(32,124,229,1) 100%);
                background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(73,155,234,1)), color-stop(55%, rgba(73,155,234,1)), color-stop(100%, rgba(32,124,229,1)));
                background: -webkit-linear-gradient(-45deg, rgba(73,155,234,1) 0%, rgba(73,155,234,1) 55%, rgba(32,124,229,1) 100%);
                background: -o-linear-gradient(-45deg, rgba(73,155,234,1) 0%, rgba(73,155,234,1) 55%, rgba(32,124,229,1) 100%);
                background: -ms-linear-gradient(-45deg, rgba(73,155,234,1) 0%, rgba(73,155,234,1) 55%, rgba(32,124,229,1) 100%);
                background: linear-gradient(135deg, rgba(73,155,234,1) 0%, rgba(73,155,234,1) 55%, rgba(32,124,229,1) 100%);
                filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#499bea', endColorstr='#207ce5', GradientType=1 );
            }
            .blanco{
                color: #FFF;
            }
            
            #sidebar-menu > ul > li > a {
                color: #000;
                display: block;
                padding: 13px 20px;
                font-size: 14px;
                position: relative;
                -webkit-transition: all 0.5s;
                transition: all 0.5s;
                font-family: "Poppins", sans-serif;
            }
            
            .btn-primary:hover   {
                background-color: #761113;
                border: 1px solid #30419b;
            }
            
            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: #616f80;
            }
            a {
                color: #ffffff;
            }
            a:hover {
                color: #31B2F3;
                text-decoration: underline;
            }
            
            #sidebar-menu .submenu li a {
    padding: 8px 20px 8px 10px;
    color: #fff;
    display: block;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}

        .checkbox-column input{
          height: 25px;
          width: 25px;
          background-color: #000;
        }


        </style>
        
        

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

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

                <!-- LOGO -->
                <div class="topbar-left azul"   >
                    <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 azul"   >
                <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" style="color:#FFF;font-size: 14px;">MENU</li>

                             
                                <li><a  href="<?php  echo Yii::app()->request->baseUrl.'/comercio';  ?> "class='waves-effect'>
                                    <i class='fa fa-map'></i> DOMICILICIACIONES</a>
                                </li>
                             
            
                                <li><a  href="<?php  echo Yii::app()->request->baseUrl.'/visita';  ?> "class='waves-effect'>
                                    <i class='fa fa-calendar-check'></i> VISITAS</a>
                                </li>
                                
                                 <li><a  href="<?php  echo Yii::app()->request->baseUrl.'/llamada';  ?> "class='waves-effect'>
                                    <i class='fa fa-phone'></i> REPORTES CORRECTIVOS </a>
                                </li>
                                <?php
                                    if(!empty($_SESSION['id_perfil']) and ($_SESSION['id_perfil']=='1') ){
                                ?>
                                  <li><a  href="<?php  echo Yii::app()->request->baseUrl.'/empresa';  ?> "class='waves-effect'>
                                    <i class='fa fa-building  '></i> EMPRESA</a>
                                </li> 
                                
                                
                                 <li><a  href="<?php  echo Yii::app()->request->baseUrl.'/tecnico';  ?> "class='waves-effect'>
                                    <i class='icon-setting-1  '></i> TECNICOS</a>
                                </li> 
                                
                                <?php
                                    }
                                ?>
                                
                            
                          
                                   
                            <li style=""   >
                                <a   href="javascript:void(0);" class="waves-effect"><i class="icon-setting-2"></i>
                                <span> CONFIGURACI&Oacute;N <span class="float-right menu-arrow"><i class="mdi mdi-chevron-right"></i></span> </span> </a>
                                <ul class="submenu"  >
                                    
            
                                    <?php
                                        if(!empty($_SESSION['id_perfil']) and (($_SESSION['id_perfil']=='1' ))){  
                                    ?> 
                              
                                    
                                    <li><a  href="<?php  echo Yii::app()->request->baseUrl.'/usuario';  ?> "class='waves-effect'>
                                    USUARIOS</a></li>
                                    
                              
                                    <?php }?>
                                    
                                                             <li><a  href="<?php  echo Yii::app()->request->baseUrl.'/usuario/password';  ?> "class='waves-effect'>
                                    CAMBIAR CONTRASEÑA</a></li>

                                    
                                    
                                </ul>
                            </li>

                        </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">
                          
                                        
                                        <?php echo $content; ?>
                          
                            </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>