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

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

    <div class="d-flex flex-wrap align-items-center justify-content-between gap-3 mb-24">
        <h6 class="fw-semibold mb-0">Add Security Gate Management</h6>
    </div>

    <div class="d-flex flex-wrap align-items-center justify-content-end gap-3 mb-3">
        <a href="security_gate_management.php" class="tooltip-button btn bg-primary-600 text-white border border-primary-600 radius-8 px-12 py-11 d-flex align-items-center">
            <iconify-icon icon="ic:baseline-arrow-back" class="icon text-xl line-height-1"></iconify-icon>
        </a>
    </div>

    <div class="row gy-4">
        <div class="col-md-12">
            <div class="card">
                <div class="card-body">
                    <h6 class="mb-4 text-xl"> Security Gate Management</h6>
                    <form id="residentForm" method="post" autocomplete="off">
                        <div class="row gy-3">
                            <div class="col-sm-6">
                                <label class="form-label">Person Type<span class="text-danger">*</span></label>
                                <input type="text" name="persontype" class="form-control" placeholder="Enter Person Type" required>
                            </div>
                            <div class="col-sm-6">
                                <label class="form-label">Name<span class="text-danger">*</span></label>
                                <input type="text" name="name" class="form-control" placeholder="Enter Name" required>
                            </div>
                            <div class="col-sm-6">
                                <label class="form-label">Mobile Number<span class="text-danger">*</span></label>
                                <input type="tel" name="mobile" class="form-control" placeholder="Enter Mobile Number" maxlength="10" pattern="\d{10}" oninput="this.value = this.value.replace(/[^0-9]/g,'')" required>
                            </div>
                            <div class="col-sm-6">
                                <label class="form-label">Flat<span class="text-danger">*</span></label>
                                <input type="text" name="flat" class="form-control" placeholder="Enter Flat" required>
                            </div>
                            <div class="col-sm-6">
                                <label class="form-label">Resident<span class="text-danger">*</span></label>
                                <input type="text" name="resident" class="form-control" placeholder="Enter Resident" required>
                            </div>
                            <div class="col-sm-6">
                                <label class="form-label">Vehicle Number<span class="text-danger">*</span></label>
                                <input type="text" name="vehicle_no" class="form-control" placeholder="Enter Vehicle Number" required>
                            </div>
                            <div class="col-sm-6">
                                <label class="form-label">In Time<span class="text-danger">*</span></label>
                                <input type="datetime-local" name="intime" class="form-control" placeholder="Enter In Time" required>
                            </div>
                            <div class="col-sm-6">
                                <label class="form-label">Out Time<span class="text-danger">*</span></label>
                                <input type="datetime-local" name="outtime" class="form-control" placeholder="Enter Out Time" required>
                            </div>
                            <div class="col-sm-6">
                                <label class="form-label">Status<span class="text-danger">*</span></label>
                                <input type="text" name="status" class="form-control" placeholder="Enter Status" required>
                            </div>
                        </div>
                        <!-- Save Button -->
                        <div class="form-group text-end mt-4">
                            <button type="submit" class="btn-primary-600">
                                <i class="bi bi-floppy"></i>
                            </button>
                        </div>

                    </form>

                </div>
            </div>
        </div>
    </div>

</div>

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