<section class="content">
    <!-- ************************* *************************** -->
    <!-- Tablero de Perfil -->
    <!-- ************************* *************************** -->

    <div class="box">
      <div class="box-header with-border">
          <h3 class="box-title">Mi Perfil</h3>
      </div>
      
      <div class="box-body">
        <div class="col-md-6">
          <!-- Box Comment -->
          <div class="box box-widget">
            
            <!-- /.box-header -->
            <div class="box-body">
              <img class="img-responsive pad" src="../assets/images/logosigece.png" alt="Photo">
              <p>SIGECE - Sistema de Gestion para Centros Educativos.</p>
            </div>
            
          </div>
          <!-- /.box -->
        </div>

        <!-- /.col -->
        <div class="col-md-6">
          <!-- Widget: user widget style 1 -->
          <div class="box box-widget widget-user">
            <!-- Add the bg color to the header using any of the bg-* classes -->
            <div class="widget-user-header bg-black" style="background: url('../assets/images/FondoPerfil1.png') center center;">
              <h3 class="widget-user-username"><?php echo $this->session->userdata("user"); ?></h3>
              <h5 class="widget-user-desc"><?php echo $this->session->userdata("Rol"); ?></h5>
            </div>
            <div class="widget-user-image">
              <img class="img-circle" src="../assets/images/perfiles/<?php echo $this->session->userdata("imagenperfil"); ?>" alt="User Avatar">
            </div>
            <div class="box-footer">
              <div class="row">
                <div class="col-sm-12 border-right">
                  <div class="description-block">
                    <span class="description-text">Seccion</span>
                    <h5 class="description-header"><?php echo $this->session->userdata("Seccion"); ?></h5>
                  </div>
                  <!-- /.description-block -->
                </div>
                <!-- /.col -->
              </div>
              <!-- /.row -->
            </div>
          </div>
          <!-- /.widget-user -->
        </div>
        <!-- /.col -->
      </div>


      
    </div>
      <!-- /.box -->

      <!-- ************************* *************************** -->
    <!-- Tablero de Perfil -->
    <!-- ************************* *************************** -->
  
    
    <?php If ($this->session->userdata("Rolid") == "1") {
            $TabPrincipal = 'Si';
            $TabBiblioteca = 'Si';
            $TabComedor = 'Si';
        } else {
            $TabPrincipal = 'No';
            $TabBiblioteca = 'No';
            $TabComedor = 'No';
        }; ?>
    <?php If ($this->session->userdata("Rolid") == "6") {
            $TabPrincipal = 'No';
            $TabBiblioteca = 'Si';
            $TabComedor = 'No';
        } else {
            $TabPrincipal = 'No';
            $TabBiblioteca = 'No';
            $TabComedor = 'No';
        }; ?>


<?php If ($TabPrincipal == "Si")
  { ?>
    <div class="box">
        <div class="box-header with-border">
            <h3 class="box-title">Mi Centro Educativo</h3>

            <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse">
                <i class="fa fa-minus"></i></button>
                <button type="button" class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove">
                <i class="fa fa-times"></i></button>
             </div>
        </div>

        <div class="box-body">
            <div class="row">

              <div class="col-lg-3 col-xs-6">
              <!-- small box -->
                <div class="small-box bg-aqua">
                  <div class="inner">
                    <h3 class="box-title"><?php echo $this->infodashboard_model->gettotalestudiantes(); ?></h3>
                    <p>ESTUDIANTES</p>
                  </div>


                  <div class="icon">
                    <i class="fa fa-users"></i>
                  </div>
                  <a href="<?php echo base_url();?>backend/estudiantes/add" class="small-box-footer">
                  
                  Registrar Estudiante <i class="fa fa-arrow-circle-right"></i>
                  </a>
                </div>
              </div>

              <div class="col-lg-3 col-xs-6">
                <div class="small-box bg-green">
                  <div class="inner">
                    <h3 class="box-title"><?php echo $this->infodashboard_model->gettotalprofesores(); ?></h3>
                    <p>PROFESORES</p>
                  </div>
                  <div class="icon">
                    <i class="fa fa-users"></i>
                  </div>
                  <a href="<?php echo base_url();?>backend/profesores/add" class="small-box-footer">
                  
                  Registrar Profesor <i class="fa fa-arrow-circle-right"></i>
                  </a>
                </div>
              </div>

              <div class="col-lg-3 col-xs-6">
                <div class="small-box bg-red">
                  <div class="inner">
                    <h3 class="box-title"><?php echo $this->infodashboard_model->gettotalprofesores(); ?></h3>
                    <p>FUNCIONARIOS</p>
                  </div>
                  <div class="icon">
                    <i class="fa fa-users"></i>
                  </div>
                  <a href="<?php echo base_url();?>backend/profesores/add" class="small-box-footer">
                  
                  Registrar Funcionario <i class="fa fa-arrow-circle-right"></i>
                  </a>
                </div>
              </div>

              <div class="col-lg-3 col-xs-6">
                <div class="small-box bg-blue">
                  <div class="inner">
                    <h3 class="box-title"><?php echo $this->infodashboard_model->gettotalprofesores(); ?></h3>
                    <p>SECCIONES</p>
                  </div>
                  <div class="icon">
                    <i class="fa fa-users"></i>
                  </div>
                  <a href="<?php echo base_url();?>backend/profesores/add" class="small-box-footer">
                  
                  Registrar Seccion <i class="fa fa-arrow-circle-right"></i>
                  </a>
                </div>
              </div>

            </div>
          </div>
        </div>
    <?php } ?>
    <?php If ($TabBiblioteca == "Si")
      { ?>
      <div class="box">
        <div class="box-header with-border">
            <h3 class="box-title">Mi Biblioteca</h3>

            <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse">
                <i class="fa fa-minus"></i></button>
                <button type="button" class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove">
                <i class="fa fa-times"></i></button>
             </div>
        </div>

        <div class="box-body">
            <div class="row">

              <div class="col-md-3 col-xs-6">
                <div class="box box-solid box-primary">
                    <div class="box-body text-center">
                        <img class="img-responsive" src="<?php echo base_url();?>assets/images/LIBRO.png" alt="">
                    </div>
                    <div class="box-header text-center">
                          <a href="<?php echo base_url();?>backend/libros/add" class="small-box-footer">
                            Registrar Libro <i class="fa fa-arrow-circle-right"></i>
                          </a>
                    </div>
                </div>
              </div>
              <div class="col-md-3 col-xs-6">
                <div class="box box-solid box-warning">
                    <div class="box-body text-center">
                        <img class="img-responsive" src="<?php echo base_url();?>assets/images/area.png" alt="">
                    </div>
                    <div class="box-header text-center">
                          <a href="<?php echo base_url();?>backend/Generos/add" class="small-box-footer">
                            Registrar Genero <i class="fa fa-arrow-circle-right"></i>
                          </a>
                    </div>
                </div>
              </div>
              <div class="col-md-3 col-xs-6">
                <div class="box box-solid box-danger">
                    <div class="box-body text-center">
                        <img class="img-responsive" src="<?php echo base_url();?>assets/images/PRESTAR2.png" alt="">
                    </div>
                    <div class="box-header text-center">
                          <a href="<?php echo base_url();?>backend/prestamos/add" class="small-box-footer">
                            Registrar Prestamo <i class="fa fa-arrow-circle-right"></i>
                          </a>
                    </div>
                </div>
              </div>
          </div>
        </div>
        <!-- /.box-body -->
    </div>
      <!-- /.box -->
      <?php } ?>
</section>
 