<?php

/**

 * Staff Basic Information Form

 */

?>

<div class="row-counter">

    <span><i class="fas fa-chalkboard-teacher me-2"></i>Entering Staff - <span id="row-count">1</span> record(s)</span>

    <button type="button" class="btn btn-sm btn-primary" onclick="addRow('staff')">

        <i class="fas fa-plus me-2"></i>Add Another Staff

    </button>

</div>



<div id="rows-container">

    <!-- Row 1 -->

    <div class="data-row mb-4 p-3 border rounded">

        <div class="d-flex justify-content-between align-items-center mb-3">

            <h6 class="text-primary mb-0">Staff #1</h6>

            <span class="remove-row" onclick="removeRow(this, 'staff')" title="Remove this staff">

                <i class="fas fa-times-circle fa-lg"></i>

            </span>

        </div>

        

        <div class="row">

            <div class="col-md-4 mb-3">

                <label class="form-label">Staff ID <span class="text-danger">*</span></label>

                <input type="text" class="form-control" name="staff[0][staff_id]" placeholder="e.g., STF001" required>

            </div>

            <div class="col-md-4 mb-3">

                <label class="form-label">Full Name <span class="text-danger">*</span></label>

                <input type="text" class="form-control" name="staff[0][full_name]" required>

            </div>

            <div class="col-md-4 mb-3">

                <label class="form-label">Reg No.</label>

                <input type="text" class="form-control" name="staff[0][reg_no]">

            </div>

        </div>

        

        <div class="row">

            <div class="col-md-3 mb-3">

                <label class="form-label">Gender</label>

                <select class="form-select" name="staff[0][sex]">

                    <option value="">Select</option>

                    <option value="Male">Male</option>

                    <option value="Female">Female</option>

                </select>

            </div>

            <div class="col-md-3 mb-3">

                <label class="form-label">Date of Birth</label>

                <input type="date" class="form-control" name="staff[0][date_of_birth]">

            </div>

            <div class="col-md-3 mb-3">

                <label class="form-label">Place of Birth</label>

                <input type="text" class="form-control" name="staff[0][place_of_birth]">

            </div>

            <div class="col-md-3 mb-3">

                <label class="form-label">Nationality</label>

                <input type="text" class="form-control" name="staff[0][nationality]" value="Ghanaian">

            </div>

        </div>

    </div>

</div>