<!-- Edit Target Modal -->
<div class="modal fade" id="editTargetModal" tabindex="-1" aria-labelledby="editTargetModalLabel" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="editTargetModalLabel">Edit Percentage Target</h5>
          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
        </div>
        <div class="modal-body">
          <form id="editTargetForm" method="POST" action="{{ url('/kpi-configuration/percentage-target-update') }}">
            @csrf
            <input type="hidden" id="editId" name="id">
            <input type="hidden" id="editColor" name="color">
            <input type="hidden" id="editQuarter" name="quarter">

            <div class="mb-3">
              <label for="editYear" class="form-label">Year</label>
              <input type="text" class="form-control" id="editYear" name="year" readonly>
            </div>

            <div class="mb-3">
              <label for="editTargetPercentage" class="form-label">Target Achievement (%)</label>
              <input type="number" class="form-control" id="editTargetPercentage" name="targetPercentage"
                min="0" max="100" step="0.01" required>
            </div>

            <div class="d-flex justify-content-end">
              <button type="button" class="btn btn-secondary me-2" data-bs-dismiss="modal">Cancel</button>
              <button type="submit" class="btn btn-primary">Save Changes</button>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>