You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

174 lines
7.4KB

  1. <!DOCTYPE html>
  2. <!--
  3. This is a starter template page. Use this page to start your new project from
  4. scratch. This page gets rid of all links and provides the needed markup only.
  5. -->
  6. <html lang="en">
  7. <head>
  8. <meta charset="utf-8">
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. <title><?= isset($title) ? $title : 'Administrador' ?></title>
  11. <base href="/">
  12. <!-- Google Font: Source Sans Pro -->
  13. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  14. <!-- Font Awesome Icons -->
  15. <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
  16. <!-- Theme style -->
  17. <link rel="stylesheet" href="dist/css/adminlte.min.css">
  18. <?= $this->renderSection('headLibraries') ?>
  19. </head>
  20. <body class="hold-transition sidebar-mini">
  21. <div class="wrapper">
  22. <!-- Main Sidebar Container -->
  23. <aside class="main-sidebar sidebar-dark-primary elevation-4">
  24. <!-- Brand Logo -->
  25. <a href="<?= route_to('admin_home') ?>" class="brand-link">
  26. <img src="dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
  27. <span class="brand-text font-weight-light">COPARMEX</span>
  28. </a>
  29. <!-- Sidebar -->
  30. <div class="sidebar">
  31. <!-- Sidebar user panel (optional) -->
  32. <!-- Sidebar Menu -->
  33. <nav class="mt-2">
  34. <?php $session = session();
  35. if ($session->is_logged) : ?>
  36. <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
  37. <!-- Add icons to the links using the .nav-icon class
  38. with font-awesome or any other icon font library -->
  39. <li class="nav-item menu-open">
  40. <a href="" class="nav-link">
  41. <i class="nav-icon fas fa-users"></i>
  42. Prestadores
  43. <i class="right fas fa-angle-left"></i>
  44. </a>
  45. <ul class="nav nav-treeview">
  46. <li class="nav-item">
  47. <a href="<?= route_to('admin_prestadores') ?>" class="nav-link">
  48. <i class="far fa-circle nav-icon"></i>
  49. Activos
  50. </a>
  51. </li>
  52. <li class="nav-item">
  53. <a href="<?= route_to('admin_solicitudes') ?>" class="nav-link">
  54. <i class="far fa-circle nav-icon"></i>
  55. Solicitudes
  56. </a>
  57. </li>
  58. </ul>
  59. </li>
  60. <li class="nav-item menu-open">
  61. <a href="#" class="nav-link">
  62. <i class="nav-icon fas fa-chart-bar"></i>
  63. <p>
  64. Encuestas
  65. <i class="right fas fa-angle-left"></i>
  66. </p>
  67. </a>
  68. <ul class="nav nav-treeview">
  69. <li class="nav-item">
  70. <a href="<?= route_to('admin_encuesta_nueva') ?>" class="nav-link">
  71. <i class="far fa-circle nav-icon"></i>
  72. <p>Nueva encuesta</p>
  73. </a>
  74. </li>
  75. <li class="nav-item">
  76. <a href="<?= route_to('admin_encuestas') ?>" class="nav-link">
  77. <i class="far fa-circle nav-icon"></i>
  78. <p>Lista</p>
  79. </a>
  80. </li>
  81. <li class="nav-item">
  82. <a href="<?= route_to('admin_respuestas') ?>" class="nav-link">
  83. <i class="far fa-circle nav-icon"></i>
  84. <p>Respuestas</p>
  85. </a>
  86. </li>
  87. </ul>
  88. </li>
  89. <li class="nav-item">
  90. <a href="<?= route_to('admin_logout') ?>" class="nav-link">
  91. <i class="nav-icon fas fa-sign-out-alt"></i>
  92. Cerrar sesión
  93. </a>
  94. </li>
  95. </ul>
  96. <?php endif; ?>
  97. </nav>
  98. <!-- /.sidebar-menu -->
  99. </div>
  100. <!-- /.sidebar -->
  101. </aside>
  102. <!-- Content Wrapper. Contains page content -->
  103. <div class="content-wrapper">
  104. <?php if (session('msg')) : ?>
  105. <div class="alert alert-<?= session('msg')['type'] ?> alert-dismissible fade show" role="alert">
  106. <?= session('msg')['body'] ?>
  107. <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  108. <span aria-hidden="true">&times;</span>
  109. </button>
  110. </div>
  111. <?php endif ?>
  112. <!-- Content Header (Page header) -->
  113. <div class="content-header">
  114. <div class="container-fluid">
  115. <div class="row mb-2">
  116. <div class="col-sm-6">
  117. <h1 class="m-0"><?= isset($title) ? $title : '' ?></h1>
  118. </div><!-- /.col -->
  119. </div><!-- /.row -->
  120. </div><!-- /.container-fluid -->
  121. </div>
  122. <!-- /.content-header -->
  123. <!-- Main content -->
  124. <div class="content pb-5">
  125. <div class="container-fluid">
  126. <?= $this->renderSection('content') ?>
  127. </div><!-- /.container-fluid -->
  128. </div>
  129. <!-- /.content -->
  130. </div>
  131. <!-- /.content-wrapper -->
  132. <!-- Control Sidebar -->
  133. <aside class="control-sidebar control-sidebar-dark">
  134. <!-- Control sidebar content goes here -->
  135. <div class="p-3">
  136. <h5>Title</h5>
  137. <p>Sidebar content</p>
  138. </div>
  139. </aside>
  140. <!-- /.control-sidebar -->
  141. </div>
  142. <!-- ./wrapper -->
  143. <!-- REQUIRED SCRIPTS -->
  144. <!-- jQuery -->
  145. <script src="plugins/jquery/jquery.min.js"></script>
  146. <!-- Bootstrap 4 -->
  147. <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
  148. <!-- AdminLTE App -->
  149. <script src="dist/js/adminlte.min.js"></script>
  150. <?= $this->renderSection('scripts') ?>
  151. </body>
  152. </html>