<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">

  <title>TPSC Malang - Dashboard</title>
  <meta content="" name="description">
  <meta content="" name="keywords">

  <!-- Favicons -->
  <link href="<?php echo e(asset('/assets/image/logobaru.png')); ?>" rel="icon">
  <!-- Google Fonts -->
  <link href="https://fonts.gstatic.com" rel="preconnect">
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Nunito:300,300i,400,400i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">

  <!-- Vendor CSS Files -->
  <link href="<?php echo e(asset('/NiceAdmin/assets/vendor/bootstrap/css/bootstrap.min.css')); ?>" rel="stylesheet">
  <link href="<?php echo e(asset('/NiceAdmin/assets/vendor/bootstrap-icons/bootstrap-icons.css')); ?>" rel="stylesheet">
  <link href="<?php echo e(asset('/NiceAdmin/assets/vendor/boxicons/css/boxicons.min.css')); ?>" rel="stylesheet">
  <link href="<?php echo e(asset('/NiceAdmin/assets/vendor/quill/quill.snow.css')); ?>" rel="stylesheet">
  <link href="<?php echo e(asset('/NiceAdmin/assets/vendor/quill/quill.bubble.css')); ?>" rel="stylesheet">
  <link href="<?php echo e(asset('/NiceAdmin/assets/vendor/remixicon/remixicon.css')); ?>" rel="stylesheet">
  <link href="<?php echo e(asset('/NiceAdmin/assets/vendor/simple-datatables/style.css')); ?>" rel="stylesheet">

  <!-- Template Main CSS File -->
  <link href="<?php echo e(asset('/NiceAdmin/assets/css/style.css')); ?>" rel="stylesheet">

  <!-- datatables -->
  <link href="https://cdn.datatables.net/1.13.1/css/jquery.dataTables.min.css" rel="stylesheet">


  <!-- Select?2 -->
  <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
  <!-- =======================================================
  * Template Name: NiceAdmin - v2.5.0
  * Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
  * Author: BootstrapMade.com
  * License: https://bootstrapmade.com/license/
  ======================================================== -->
</head>

<body>

  <!-- ======= Header ======= -->
  <header id="header" class="header fixed-top d-flex align-items-center">

    <div class="d-flex align-items-center justify-content-between">
      <a href="index.html" class="logo d-flex align-items-center">
        <!-- <img src="<?php echo e(asset('/NiceAdmin/assets/img/logo.png')); ?>" alt=""> -->
        <span class="d-none d-lg-block">TPSC Malang</span>
      </a>
      <i class="bi bi-list toggle-sidebar-btn"></i>
    </div><!-- End Logo -->

    <div class="search-bar">
      <form class="search-form d-flex align-items-center" method="POST" action="#">
        <input type="text" name="query" placeholder="Search" title="Enter search keyword">
        <button type="submit" title="Search"><i class="bi bi-search"></i></button>
      </form>
    </div><!-- End Search Bar -->

    <nav class="header-nav ms-auto">
      <ul class="d-flex align-items-center">

        <li class="nav-item d-block d-lg-none">
          <a class="nav-link nav-icon search-bar-toggle " href="#">
            <i class="bi bi-search"></i>
          </a>
        </li><!-- End Search Icon-->

        <li class="nav-item dropdown pe-3">

          <a class="nav-link nav-profile d-flex align-items-center pe-0" href="#" data-bs-toggle="dropdown">
            <img src="/<?php echo e(Session::get('user')->image); ?>" alt="Profile" class="rounded-circle">
            <span class="d-none d-md-block dropdown-toggle ps-2"><?php echo e(Session::get('user')->name); ?></span>
          </a><!-- End Profile Iamge Icon -->

          <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow profile">
            <li class="dropdown-header">
              <h6><?php echo e(Session::get('user')->name); ?></h6>
              <span><?php echo e(Session::get('user')->Role->name); ?></span>
            </li>
            <li>
              <hr class="dropdown-divider">
            </li>
            <li>
              <a class="dropdown-item d-flex align-items-center" href="/logout">
                <i class="bi bi-box-arrow-right"></i>
                <span>Sign Out</span>
              </a>
            </li>

          </ul><!-- End Profile Dropdown Items -->
        </li><!-- End Profile Nav -->

      </ul>
    </nav><!-- End Icons Navigation -->

  </header><!-- End Header -->

  <!-- ======= Sidebar ======= -->
  <aside id="sidebar" class="sidebar">

    <ul class="sidebar-nav" id="sidebar-nav">

      <li class="nav-item">
        <a class="nav-link " href="/dashboard">
          <i class="bi bi-grid"></i>
          <span>Dashboard</span>
        </a>
      </li><!-- End Dashboard Nav -->
      <?php if(Session::get('user')->role == 1): ?>
      <li class="nav-item">
        <a class="nav-link collapsed" data-bs-target="#components-nav" data-bs-toggle="collapse" href="#">
          <i class="bi bi-card-list"></i><span>Website</span><i class="bi bi-chevron-down ms-auto"></i>
        </a>
        <ul id="components-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
          <li>
            <a href="/dashboard/company-profile">
              <i class="bi bi-circle"></i><span>Profil Perusahaan</span>
            </a>
          </li>
          <li>
            <a href="/dashboard/our-service">
              <i class="bi bi-circle"></i><span>Layanan Latihan</span>
            </a>
          </li>
        </ul>
      </li><!-- End Components Nav -->
      <?php endif; ?>

      <?php if(Session::get('user')->role == 1): ?>
      <li class="nav-item">
        <a class="nav-link collapsed" data-bs-target="#forms-nav" data-bs-toggle="collapse" href="#">
          <i class="bi bi-journal-text"></i><span>Master Data</span><i class="bi bi-chevron-down ms-auto"></i>
        </a>
        <ul id="forms-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
          <li>
            <a href="/dashboard/trainer">
              <i class="bi bi-circle"></i><span>Trainer</span>
            </a>
          </li>
          <!-- <li>
            <a href="/dashboard/parent">
              <i class="bi bi-circle"></i><span>Orang Tua</span>
            </a>
          </li> -->
          <li>
            <a href="/dashboard/student">
              <i class="bi bi-circle"></i><span>Peserta</span>
            </a>
          </li>
          <li>
            <a href="/dashboard/venue">
              <i class="bi bi-circle"></i><span>Venue</span>
            </a>
          </li>
        </ul>
      </li><!-- End Forms Nav -->
      <?php endif; ?>

      <?php if(Session::get('user')->role == 1 || Session::get('user')->role == 2 ): ?>
      <li class="nav-item">
        <a class="nav-link collapsed" data-bs-target="#presensi-nav" data-bs-toggle="collapse" href="#">
          <i class="bi bi-calendar2-check"></i><span>Presensi</span><i class="bi bi-chevron-down ms-auto"></i>
        </a>
        <ul id="presensi-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
          <?php if(Session::get('user')->role == 2 ): ?>
          <li>
            <a href="/dashboard/absensi/trainer">
              <i class="bi bi-circle"></i><span>Absensi</span>
            </a>
          </li>
          <?php endif; ?>
          <?php if(Session::get('user')->role == 1 ): ?>
          <li>
            <a href="/dashboard/absensi/admin/approval">
              <i class="bi bi-circle"></i><span>Absensi (Approval) </span>
            </a>
          </li>
          <li>
            <a href="/dashboard/absensi/admin/approved">
              <i class="bi bi-circle"></i><span>Absensi (Approved) </span>
            </a>
          </li>
          <?php endif; ?>
          <li>
            <a href="/dashboard/progress">
              <i class="bi bi-circle"></i><span>Progress Peserta </span>
            </a>
          </li>
        </ul>
      </li><!-- End Forms Nav -->
      <?php endif; ?>

      <?php if(Session::get('user')->role == 1 || Session::get('user')->role == 2): ?>
      <li class="nav-item">
        <a class="nav-link collapsed" data-bs-target="#keuangan-nav" data-bs-toggle="collapse" href="#">
          <i class="ri ri-money-euro-box-line"></i><span>Keuangan</span><i class="bi bi-chevron-down ms-auto"></i>
        </a>
        <ul id="keuangan-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
          <?php if(Session::get('user')->role == 1): ?>
          <li>
            <a href="/dashboard/trainer-balance">
              <i class="bi bi-circle"></i><span>Gaji Trainer</span>
            </a>
          </li>
          <?php endif; ?>
          <li>
            <a href="/dashboard/mutation">
              <i class="bi bi-circle"></i><span>Mutasi</span>
            </a>
          </li>
        </ul>
      </li><!-- End Forms Nav -->
      <?php endif; ?>
      
      <?php if(Session::get('user')->role == 3): ?>
      <li class="nav-item">
        <a class="nav-link collapsed" href="/dashboard/report">
          <i class="bi bi-list"></i>
          <span>Progress Latihan</span>
        </a>
      </li>
      <?php endif; ?>

      <li class="nav-heading">Pages</li>

      <li class="nav-item">
        <a class="nav-link collapsed" href="/dashboard/profile">
          <i class="bi bi-person"></i>
          <span>Profile</span>
        </a>
      </li><!-- End Profile Page Nav -->
      <?php if(Session::get('user')->role == 3 || Session::get('user')->role == 1): ?>
      <li class="nav-item">
        <a class="nav-link collapsed" href="/dashboard/krisar">
          <i class="bi bi-archive"></i>
          <span>Kritik & Saran</span>
        </a>
      </li>
      <?php endif; ?>
    </ul>

  </aside><!-- End Sidebar-->

   <?php $__env->startSection('content'); ?>

    <?php echo $__env->yieldSection(); ?>

  <!-- ======= Footer ======= -->
  <footer id="footer" class="footer">
    <div class="copyright">
      &copy; Copyright <strong><span>TPSC Malang</span></strong>. All Rights Reserved
    </div>
    <div class="credits">
      <!-- All the links in the footer should remain intact. -->
      <!-- You can delete the links only if you purchased the pro version. -->
      <!-- Licensing information: https://bootstrapmade.com/license/ -->
      <!-- Purchase the pro version with working PHP/AJAX contact form: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/ -->
      Developed by Jatech | Designed by <a href="https://bootstrapmade.com/">BootstrapMade</a>
    </div>
  </footer><!-- End Footer -->

  <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>

  <!-- Vendor JS Files -->
  <script src="<?php echo e(asset('/NiceAdmin/assets/vendor/apexcharts/apexcharts.min.js')); ?>"></script>
  <script src="<?php echo e(asset('/NiceAdmin/assets/vendor/bootstrap/js/bootstrap.bundle.min.js')); ?>"></script>
  <script src="<?php echo e(asset('/NiceAdmin/assets/vendor/chart.js/chart.umd.js')); ?>"></script>
  <script src="<?php echo e(asset('/NiceAdmin/assets/vendor/echarts/echarts.min.js')); ?>"></script>
  <script src="<?php echo e(asset('/NiceAdmin/assets/vendor/quill/quill.min.js')); ?>"></script>
  <script src="<?php echo e(asset('/NiceAdmin/assets/vendor/simple-datatables/simple-datatables.js')); ?>"></script>
  <script src="<?php echo e(asset('/NiceAdmin/assets/vendor/tinymce/tinymce.min.js')); ?>"></script>
  <script src="<?php echo e(asset('/NiceAdmin/assets/vendor/php-email-form/validate.js')); ?>"></script>

  <!-- Template Main JS File -->
  <script src="<?php echo e(asset('/NiceAdmin/assets/js/main.js')); ?>"></script>
  <script src="https://code.jquery.com/jquery-3.5.1.js"></script>
  <script src="https://cdn.datatables.net/1.13.1/js/jquery.dataTables.min.js"></script>

  <!-- select2 -->

  <script type="text/javascript">

    $(document).ready(function () {
      
      $('#table').DataTable({
        paging: true,
        ordering: true,
        info: true,
      });

      $('#table2').DataTable({
        paging: true,
        ordering: true,
        info: true,
      });

      $('#table-nilai').DataTable({
        paging: false,
        ordering: false,
        info: true,
      });

      $('.js-ortu-select2').select2();

      $('#image_profile').change(function(){    
        let reader = new FileReader();
        reader.onload = (e) => { 
          $('#preview-image').attr('src', e.target.result); 
        }
 
        reader.readAsDataURL(this.files[0]); 
      });

    });

  </script>
</body>

</html><?php /**PATH /home/tpsa9543/public_html/tpscmalang/resources/views/dashboard/layout.blade.php ENDPATH**/ ?>