<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/docs/4.1/assets/img/favicons/favicon.ico">

    <title>Payroll Management System</title>

    <link rel="canonical" href="https://getbootstrap.com/docs/4.1/examples/dashboard/">

    <!-- Bootstrap core CSS -->
    <link href="css/bootstrap1.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="css/dashboard1.css" rel="stylesheet">

    <style>

      @media print {

          .sortialler { display: none; }

          .pagebreak { page-break-before: always; } /* page-break-after works, as well */
      }

      @media screen {

          .sortirester { display: none; }

      }

    </style>


  </head>

  <body>
    <nav class="navbar navbar-dark fixed-top bg-dark flex-md-nowrap p-0 shadow sortialler">
      <a class="navbar-brand col-sm-3 col-md-2 mr-0" href="dashboard1.php">Payroll Management [<?php echo $_SESSION['companyselect'] ?>]</a>



<?php

  $companyID = $_SESSION['companyselect'];
  $sql = "SELECT companyName FROM companyfile WHERE companyid = $companyID";
  $result = mysqli_query($db,$sql);

  $count = mysqli_num_rows($result);

  if ($count == 0) {
    $companyName = "Company name not set yet..";
  } else {
    $row = mysqli_fetch_array($result,MYSQLI_ASSOC);
    $companyName = $row['companyName'];
  }



?>



      <!--<input class="form-control form-control-dark w-100" type="text" placeholder="Search" aria-label="Search"> -->
      <h3 class="text-white"><?php echo $companyName ?></h3>
      <ul class="navbar-nav px-3">
        <li class="nav-item text-nowrap">
          <a class="nav-link" href="logout.php">Sign out</a>
        </li>
      </ul>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <nav class="col-md-2 d-none d-md-block bg-light sidebar sortialler">
          <div class="sidebar-sticky sortialler">
            <ul class="nav flex-column">
              <li class="nav-item">
                <a class="nav-link active" href="dashboard2.php">
                  <span data-feather="home"></span>
                  Dashboard <span class="sr-only">(current)</span>
                </a>
              </li>              
              <li class="nav-item">
                <a class="nav-link" href="employees.php">
                  <span data-feather="users"></span>
                  Employees
                </a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="payrolls.php">
                  <span data-feather="file"></span>
                  Payroll
                </a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="companysettings.php">
                  <span data-feather="sliders"></span>
                  Company Setup
                </a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="technicalsettings.php">
                  <span data-feather="sliders"></span>
                  Settings
                </a>
              </li>
            </ul>

            <h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
              <span>Saved reports</span>
              <a class="d-flex align-items-center text-muted" href="#">
                <span data-feather="plus-circle"></span>
              </a>
            </h6>
            <ul class="nav flex-column mb-2">
              <li class="nav-item">
                <a class="nav-link" href="report-payrollByPeriod.php">
                  <span data-feather="file-text"></span>
                  Payroll by Period
                </a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="report-leaves.php">
                  <span data-feather="file-text"></span>
                  Leaves Report
                </a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="report-CummulativepayrollByPeriod.php">
                  <span data-feather="file-text"></span>
                  Cummulative Payroll by Period
                </a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="report-payslipByPeriod.php">
                  <span data-feather="file-text"></span>
                  Payslip by Period
                </a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="report-BonuspayslipByPeriod.php">
                  <span data-feather="file-text"></span>
                  Bonus Payslip by Period
                </a>
              </li>              
              <li class="nav-item">
                <a class="nav-link" href="report-getCSGcsv.php">
                  <span data-feather="file-text"></span>
                  CSG csv by Period
                </a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="report-getPAYEcsv.php">
                  <span data-feather="file-text"></span>
                  PAYE csv by Period
                </a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="report-getStatementOfEmoluments.php">
                  <span data-feather="file-text"></span>
                  Statement of Emoluments
                </a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="report-getReturnOfEmployees.php">
                  <span data-feather="file-text"></span>
                  Return of Employees
                </a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="report-paymentinstructions.php">
                  <span data-feather="file-text"></span>
                  Payment Instructions
                </a>
              </li>
            </ul>
          </div>
        </nav>
