<?php
require_once '../includes/auth.php';
requirePermission('reports', 'view');
require_once '../includes/header.php';
require_once '../includes/sidebar.php';
?>

<div class="content">
    <h2>Reports Dashboard</h2>

    <div class="report-grid">

        <a href="sales_report.php" class="report-card">
            <div class="report-icon">📈</div>
            <div class="report-title">Sales Report</div>
            <div class="report-desc">Invoice wise / Customer wise / Date wise</div>
        </a>

        <a href="purchase_report.php" class="report-card">
            <div class="report-icon">🧾</div>
            <div class="report-title">Purchase Report</div>
            <div class="report-desc">Vendor wise / Date wise purchases</div>
        </a>

        <a href="gst_report.php" class="report-card">
            <div class="report-icon">🧮</div>
            <div class="report-title">GST Report</div>
            <div class="report-desc">Tax summary + HSN wise GST breakup</div>
			
		<a href="gstr1_report.php" class="report-card">
            <div class="report-icon">🧮</div>
            <div class="report-title">GSTR1 Report</div>
            <div class="report-desc">GSTR 1 Summary + HSN_wise summary</div>	
			
        </a>

        <a href="profit_report.php" class="report-card">
            <div class="report-icon">💹</div>
            <div class="report-title">Profit Report</div>
            <div class="report-desc">Profit calculation invoice wise / product wise</div>
        </a>

        <a href="customer_ledger.php" class="report-card">
            <div class="report-icon">👤</div>
            <div class="report-title">Customer Ledger</div>
            <div class="report-desc">Customer transactions + balance</div>
        </a>

        <a href="vendor_ledger.php" class="report-card">
            <div class="report-icon">🏭</div>
            <div class="report-title">Vendor Ledger</div>
            <div class="report-desc">Vendor purchases + outstanding balance</div>
        </a>

        <a href="stock_movement.php" class="report-card">
            <div class="report-icon">📦</div>
            <div class="report-title">Stock Movement</div>
            <div class="report-desc">IN / OUT / RETURN movement report</div>
        </a>

    </div>
</div>

<style>
.report-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap:20px;
    margin-top:20px;
}

.report-card{
    background:#fff;
    border:1px solid #ddd;
    padding:18px;
    border-radius:10px;
    text-decoration:none;
    color:#111;
    transition:0.2s;
    box-shadow:0 2px 6px rgba(0,0,0,0.05);
}

.report-card:hover{
    border-color:#2563eb;
    transform:translateY(-3px);
    box-shadow:0 5px 15px rgba(0,0,0,0.10);
}

.report-icon{
    font-size:32px;
    margin-bottom:10px;
}

.report-title{
    font-size:18px;
    font-weight:bold;
    margin-bottom:6px;
}

.report-desc{
    font-size:13px;
    color:#555;
    line-height:1.4;
}
</style>

<?php require_once '../includes/footer.php'; ?>