<?php include 'header.php'; ?>

<style>
    body {
        background: #f5f7fb;
    }

    .page-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
    }

    .page-title {
        font-size: 20px;
        font-weight: 700;
        color: #111827;
        margin: 0;
    }

    .back-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: #2563eb;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        text-decoration: none;
    }

    .back-btn:hover {
        background: #1d4ed8;
        color: #fff;
        transform: translateY(-1px);
    }

    .booking-card {
        background: #fff;
        border-radius: 18px;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        border: 1px solid #edf2f7;
    }

    .booking-header {
        margin-bottom: 20px;
        padding-bottom: 14px;
        border-bottom: 1px solid #f1f5f9;
    }

    .booking-heading {
        font-size: 18px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 4px;
    }

    .booking-subtitle {
        font-size: 13px;
        color: #64748b;
    }

    .detail-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .detail-item {
        background: #f8fbff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 14px;
    }

    .detail-label {
        font-size: 12px;
        color: #64748b;
        margin-bottom: 5px;
        font-weight: 600;
    }

    .detail-value {
        font-size: 15px;
        font-weight: 700;
        color: #111827;
        word-break: break-word;
    }

    .status-badge {
        display: inline-block;
        background: #dcfce7;
        color: #15803d;
        font-size: 12px;
        font-weight: 700;
        padding: 6px 12px;
        border-radius: 30px;
    }

    .purpose-box {
        margin-top: 16px;
        background: #eff6ff;
        border: 1px solid #dbeafe;
        border-radius: 14px;
        padding: 14px;
    }

    .purpose-title {
        font-size: 14px;
        font-weight: 700;
        color: #1e3a8a;
        margin-bottom: 6px;
    }

    .purpose-text {
        font-size: 13px;
        color: #475569;
        line-height: 1.6;
    }

    @media(max-width: 768px) {

        .detail-grid {
            grid-template-columns: 1fr;
        }

        .booking-card {
            padding: 16px;
        }
    }
</style>

<div class="dashboard-main-body">

    <!-- Top -->
    <div class="page-top">

        <h5 class="page-title">View Attendance</h5>

        <a href="staff_attendance.php" class="back-btn">
            <iconify-icon icon="ic:baseline-arrow-back"></iconify-icon>
        </a>

    </div>

    <!-- Card -->
    <div class="booking-card">

    <div class="booking-header">
        <div class="booking-heading">
            Rahul Sharma
        </div>

        <div class="booking-subtitle">
            Staff Attendance Details
        </div>
    </div>

    <div class="detail-grid mb-4">

        <div class="detail-item">
            <div class="detail-label">Staff Name</div>
            <div class="detail-value">Rahul Sharma</div>
        </div>

        <div class="detail-item">
            <div class="detail-label">Mobile Number</div>
            <div class="detail-value">9876543210</div>
        </div>

        <div class="detail-item">
            <div class="detail-label">Month</div>
            <div class="detail-value">May 2026</div>
        </div>

        <div class="detail-item">
            <div class="detail-label">Total Present</div>
            <div class="detail-value">28 Days</div>
        </div>

    </div>

    <div class="table-responsive">

        <table class="table table-bordered align-middle mb-0">

            <thead style="background:#ddeeff;">
                <tr>
                    <th>Date</th>
                    <th>Day</th>
                    <th>In Time</th>
                    <th>Out Time</th>
                    <th>Status</th>
                </tr>
            </thead>

            <tbody>

                <tr>
                    <td>01-05-2026</td>
                    <td>Friday</td>
                    <td>09:00 AM</td>
                    <td>06:00 PM</td>
                    <td><span class="badge bg-success">Present</span></td>
                </tr>

                <tr>
                    <td>02-05-2026</td>
                    <td>Saturday</td>
                    <td>09:05 AM</td>
                    <td>06:10 PM</td>
                    <td><span class="badge bg-success">Present</span></td>
                </tr>

                <tr>
                    <td>03-05-2026</td>
                    <td>Sunday</td>
                    <td>-</td>
                    <td>-</td>
                    <td><span class="badge bg-danger">Absent</span></td>
                </tr>

                <tr>
                    <td>04-05-2026</td>
                    <td>Monday</td>
                    <td>09:00 AM</td>
                    <td>06:00 PM</td>
                    <td><span class="badge bg-success">Present</span></td>
                </tr>

                <tr>
                    <td>05-05-2026</td>
                    <td>Tuesday</td>
                    <td>09:15 AM</td>
                    <td>06:05 PM</td>
                    <td><span class="badge bg-success">Present</span></td>
                </tr>

                <!-- Continue till 31 -->

                <tr>
                    <td>31-05-2026</td>
                    <td>Sunday</td>
                    <td>09:00 AM</td>
                    <td>06:00 PM</td>
                    <td><span class="badge bg-success">Present</span></td>
                </tr>

            </tbody>

        </table>

    </div>

</div>

</div>

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