<?php
session_start();
if (!isset($_SESSION['office_name'])) {
    header("Location: login.php");
    exit;
}
include "header.php";
?>

<div class="container mt-4">
<center>
    <h2 class="mb-4">Welcome</h2>
<b><?= htmlspecialchars($_SESSION['office_name']) ?></b>
<br>
<br>
    <div class="row g-4">
	
	<div class="col-md-4">
            <div class="card shadow border-0 h-100">
                <div class="card-body text-center">
                    <i class="bi bi-calendar-week display-4 text-success"></i>
                    <h5 class="card-title mt-3">Daily Sales Report</h5>
                    <p class="card-text">View your Daily sales transactions.</p>
                    <a href="Daily_report.php" class="btn btn-success">Go</a>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card shadow border-0 h-100">
                <div class="card-body text-center">
                    <i class="bi bi-calendar-week display-4 text-success"></i>
                    <h5 class="card-title mt-3">Weekly Sales Report</h5>
                    <p class="card-text">View your weekly sales transactions.</p>
                    <a href="weekly_report.php" class="btn btn-success">Go</a>
                </div>
            </div>
        </div>

        <div class="col-md-4">
            <div class="card shadow border-0 h-100">
                <div class="card-body text-center">
                    <i class="bi bi-calendar-month display-4 text-warning"></i>
                    <h5 class="card-title mt-3">Monthly Sales Report</h5>
                    <p class="card-text">View your monthly sales transactions.</p>
                    <a href="monthly_report.php" class="btn btn-warning">Go</a>
                </div>
            </div>
        </div>

        <div class="col-md-4">
            <div class="card shadow border-0 h-100">
                <div class="card-body text-center">
                    <i class="bi bi-box-seam display-4 text-primary"></i>
                    <h5 class="card-title mt-3">Add Sales</h5>
                    <p class="card-text">Record new sales transactions.</p>
                    <a href="add_sales.php" class="btn btn-primary" style="background-color:navy">Go</a>
                </div>
            </div>
        </div>
    </div>

    <div class="mt-4">
        <a href="logout.php" class="btn btn-danger">Logout</a>
    </div>
</div>

<?php include "footer.php"; ?>
