
<?php include("auth_check.php"); ?>
<!DOCTYPE html>
<html>
<head>
    <title>VSONIC Employee Management Dashboard</title>
    <style>
        body { font-family: Arial, sans-serif; margin: 0; background-color: #f4f4f4; }
        .sidebar { width: 220px; background: #2c3e50; color: #fff; position: fixed; top: 0; left: 0; height: 100%; padding-top: 20px; }
        .sidebar a { display: block; padding: 12px 20px; color: #fff; text-decoration: none; margin-bottom: 5px; }
        .sidebar a:hover { background: #1abc9c; }
        .content { margin-left: 220px; padding: 20px; }
        h1 { color: #333; }
        iframe { border: none; width: 100%; height: calc(100vh - 60px); }
        .logout { position: absolute; bottom: 20px; left: 20px; }
    </style>
</head>
<body>

<div class="sidebar">
    <h2 style="text-align:center;">Dashboard</h2>
    <a href="index.php" target="mainFrame">Employees</a>
    <a href="payroll_generate.php" target="mainFrame">Generate Payroll</a>
    <a href="payroll_settings.php" target="mainFrame">Settings Payroll</a>
     <a href="payroll_list.php" target="mainFrame">List of Payroll</a>
       <a href="payroll_summary.php" target="mainFrame">Payroll Summary</a> 
        <a href="payslip_bulk.php" target="mainFrame">Payslip Bulk</a> 
    <a href="view_payments.php" target="mainFrame">Payments</a>
    <a href="payment_list.php" target="mainFrame">Transactions</a>
      <a href="create_quotation.php" target="mainFrame">Create Quotation</a>
      <a href="create_invoice.php" target="mainFrame">Create Invoice</a>
      <a href="report.php" target="mainFrame">Manage Vsonic Reports</a>
      <a href="expenses.php" target="mainFrame">Vsonic Expenses Tracking</a>
        <a href="expenses_list.php" target="mainFrame">Vsonic Expenses List by Proejcts</a>
      <a href="expense_report.php" target="mainFrame">Manage Vsonic Reports</a>
    <a class="logout" href="logout.php">Logout</a>
</div>

<div class="content">
    <h1>Welcome, <?php echo $_SESSION['username']; ?> 👋</h1>
    <iframe name="mainFrame" src="index.php"></iframe>
</div>

</body>
</html>