<!-- Modal Crear -->
<div class="modal fade" id="modalAgregar" tabindex="-1" role="dialog">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <form action="../controller/create_personal.php" method="POST">
        <div class="modal-header bg-primary text-white">
          <h5 class="modal-title">Registrar Personal Seguridad</h5>
          <button type="button" class="close text-white" data-dismiss="modal">&times;</button>
        </div>
        <div class="modal-body row g-3">
          <div class="col-md-6">
            <label>Nro. Documento</label>
            <input type="text" name="nro_documento" class="form-control" required>
          </div>
          <div class="col-md-6">
            <label>Nombre Completo</label>
            <input type="text" name="nombre_completo" class="form-control" required>
          </div>
          <div class="col-md-6">
            <label>Cargo</label>
            <input type="text" name="cargo" class="form-control">
          </div>
          <div class="col-md-6">
            <label>Turno</label>
            <select name="turno" class="form-control">
              <option>Día</option>
              <option>Noche</option>
            </select>
          </div>
          <div class="col-md-6">
            <label>Celular</label>
            <input type="text" name="nro_celular" class="form-control">
          </div>
          <div class="col-md-6">
            <label>Fecha Ingreso</label>
            <input type="date" name="fecha_ingreso" class="form-control" required>
          </div>
        </div>
        <div class="modal-footer">
          <button type="submit" name="guardar" class="btn btn-primary">Guardar</button>
        </div>
      </form>
    </div>
  </div>
</div>

<!-- Modal Editar -->
<!-- Modal Editar -->
<div class="modal fade" id="modalEditar" tabindex="-1" role="dialog">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <form action="../controller/update_personal.php" method="POST">
        <div class="modal-header bg-primary text-white">
          <h5 class="modal-title">Editar Personal</h5>
          <button type="button" class="close text-white" data-dismiss="modal">&times;</button>
        </div>
        <div class="modal-body row g-3">
          <input type="hidden" id="edit_id" name="id">

          <div class="col-md-6">
            <label>Nro. Documento</label>
            <input type="text" id="edit_nro_documento" name="nro_documento" class="form-control" required>
          </div>

          <div class="col-md-6">
            <label>Nombre Completo</label>
            <input type="text" id="edit_nombre_completo" name="nombre_completo" class="form-control" required>
          </div>

          <div class="col-md-6">
            <label>Cargo</label>
            <input type="text" id="edit_cargo" name="cargo" class="form-control">
          </div>

          <div class="col-md-6">
            <label>Turno</label>
            <select id="edit_turno" name="turno" class="form-control">
              <option value="Día">Día</option>
              <option value="Noche">Noche</option>
            </select>
          </div>

          <div class="col-md-6">
            <label>Celular</label>
            <input type="text" id="edit_nro_celular" name="nro_celular" class="form-control">
          </div>

          <div class="col-md-6">
            <label>Fecha Ingreso</label>
            <input type="date" id="edit_fecha_ingreso" name="fecha_ingreso" class="form-control">
          </div>

          <div class="col-md-6">
            <label>Estado</label>
            <select id="edit_estado" name="estado" class="form-control">
              <option value="Activo">Activo</option>
              <option value="Inactivo">Inactivo</option>
            </select>
          </div>
        </div>

        <div class="modal-footer">
          <button type="submit" name="editar" class="btn btn-primary">Actualizar</button>
        </div>
      </form>
    </div>
  </div>
</div>
