<div class="sidebar" id="sidebar">
    <div class="sidebar" id="sidebar">

   
</div>
<div class="sidebar" id="sidebar">

    <!-- Brand / Logo -->
    <div class="sidebar-header">
        <div class="sidebar-logo">POS</div>
        <div class="sidebar-title">
            <div class="sidebar-title-main">Admin Panel</div>
            <div class="sidebar-title-sub">Control Centre</div>
        </div>
    </div>

    <!-- Main menu -->
    <<nav class="sidebar-menu">
    <a href="admin_dashboard.php" class="sidebar-link" title="Admin Dashboard">
        <span class="sidebar-icon">🏠</span>
        <span class="sidebar-text">Admin Dashboard</span>
    </a>

    <a href="manage_products.php" class="sidebar-link" title="Manage Products">
        <span class="sidebar-icon">📦</span>
        <span class="sidebar-text">Manage Products</span>
    </a>

    <a href="barcode_generator.php" class="sidebar-link" title="Generate Barcode for Products">
        <span class="sidebar-icon">🏷️</span>
        <span class="sidebar-text">Generate Barcode for Products</span>
    </a>

    <a href="admin_sales_report.php" class="sidebar-link" title="General Sales Reports">
        <span class="sidebar-icon">📊</span>
        <span class="sidebar-text">General Sales Reports</span>
    </a>

    <!-- 🔹 NEW REPORTS PAGE LINK -->
    <a href="admin_reports.php" class="sidebar-link" title="Sales, Profit & Expense Reports">
        <span class="sidebar-icon">📑</span>
        <span class="sidebar-text">Reports</span>
    </a>
    <!-- 🔹 END NEW LINK -->

    <a href="admin_view_daily_sales.php" class="sidebar-link" title="View Today's Sales">
        <span class="sidebar-icon">📅</span>
        <span class="sidebar-text">View Today's Sales</span>
    </a>

    <a href="admin_cash_sessions.php" class="sidebar-link" title="View Cash Summary">
        <span class="sidebar-icon">💰</span>
        <span class="sidebar-text">View Cash Sessions</span>
    </a>

    <a href="manage_users.php" class="sidebar-link" title="Manage Users">
        <span class="sidebar-icon">👥</span>
        <span class="sidebar-text">Manage Users</span>
    </a>

    <a href="admin_payments.php" class="sidebar-link" title="View Payments">
        <span class="sidebar-icon">💳</span>
        <span class="sidebar-text">View Payments</span>
    </a>

    <!-- 🔹 NEW: credit payments link (after payments) -->
    <a href="admin_credit_payments.php" class="sidebar-link" title="View Credit Payments">
        <span class="sidebar-icon">💳</span>
        <span class="sidebar-text">View Credit Payments</span>
    </a>
    <!-- 🔹 END NEW -->

    <a href="admin_customer_details.php" class="sidebar-link" title="Customer Details">
        <span class="sidebar-icon">📇</span>
        <span class="sidebar-text">Customer Details</span>
    </a>

    <a href="admin_manage_expenses.php" class="sidebar-link" title="View Expenses">
        <span class="sidebar-icon">💸</span>
        <span class="sidebar-text">Manage Expenses</span>
    </a>

    <a href="view_damages.php" class="sidebar-link" title="View Damaged Products">
        <span class="sidebar-icon">⚠️</span>
        <span class="sidebar-text">View Damaged Products</span>
    </a>

    <a href="admin_customer_debts.php" class="sidebar-link" title="Manage Customer Credit Sales">
        <span class="sidebar-icon">📜</span>
        <span class="sidebar-text">Manage Customer Credit Sales</span>
    </a>

    <a href="top_bottom_products.php" class="sidebar-link" title="Top & Bottom Products">
        <span class="sidebar-icon">📈</span>
        <span class="sidebar-text">Top & Bottom Products</span>
    </a>

    <a href="alert_low_stock.php" class="sidebar-link" title="Low Stock Alerts">
        <span class="sidebar-icon">🚨</span>
        <span class="sidebar-text">Low Stock Alerts</span>
    </a>
     <a href="admin_purchases.php" class="sidebar-link" title="Record Purchases">
            <span class="sidebar-icon">🧾</span>
            <span class="sidebar-text">Purchases</span>
        </a>
</nav>

    <!-- Logout at bottom -->
    <div class="sidebar-footer">
        <a href="logout.php" class="sidebar-link sidebar-logout" title="Logout">
            <span class="sidebar-icon">⏏</span>
            <span class="sidebar-text">Logout</span>
        </a>
    </div>

</div>



    <h2>Admin Panel</h2>
    <a href="admin_dashboard.php">Admin Dashboard</a>

    <a href="manage_products.php">Manage Products</a>
     <a href="barcode_generator.php">Grenarate Barcode for Products</a>
    <a href="admin_sales_report.php">General Sales Reports</a>
    <a href="admin_view_daily_sales.php">View Today's Sales</a>
    <a href="view_cash_summary.php">View Cash Summary</a>
    <a href="manage_users.php">Manage Users</a>
    <a href="view_payments.php">View Payments</a>

    <!-- 🔹 NEW: plain-text section link after View Payments -->
    <a href="admin_credit_payments.php">Manage Customer Credit Sales</a>

    <a href="admin_customer_details.php">Customer Details</a>
    <a href="view_expenses.php">View Expenses</a>
    <a href="view_damages.php">View Damaged Products</a>
    <a href="admin_customer_debts.php">Manage Customer Debts</a>
    <a href="top_bottom_products.php">Top & Bottom Products</a>
    <a href="alert_low_stock.php">Low Stock Alerts</a>
    <a href="admin_purchases.php">Purchases</a>

    <div class="logout" style="margin:20px;">
        <a href="logout.php" style="color:#e74c3c;">Logout</a>
    </div>

</div>
