<div class="row ">

   <form id="form_add_productos" action="" method="post" accept-charset="utf-8">
      <!-- Token CSRF -->
      <input type="hidden" name="csrf_test_name" value="<?= csrf_hash(); ?>">

      <div class="row g-2 mb-2">
         <div class="col-lg-3 col-4">
            <div class="form-floating">
               <input type="text" class="form-control" name="codigo" placeholder="Codigo" maxlength="16" style="text-transform: uppercase;">
               <label for="codigo">Codigo</label>
            </div>
         </div>
         <div class="col-lg-8 col-6">
            <div class="form-floating">
               <input type="text" class="form-control" name="descripcion" placeholder="Descripcion" required>
               <label for="descripcion">Descripcion</label>
            </div>
         </div>
         <div class="col-lg-1 col-2">
            <div class="form-floating">
               <input type="number" step="any" class="form-control" name="stock" placeholder="Stock" maxlength="10">
               <label for="stock">Stock</label>
            </div>
         </div>
      </div>

      <div class="row g-2 mb-2">
         <div class="col-lg-3 col-3">
            <div class="form-floating">
               <input type="number" step="any" class="form-control" name="costo_d" placeholder="costo" maxlength="10">
               <label for="costo">Costo_D</label>
            </div>
         </div>
         <div class="col-lg-3 col-3">
            <div class="form-floating">
               <input type="number" step="any" class="form-control" name="precio_d" placeholder="Precio_d" maxlength="10">
               <label for="precio_d">Precio_D</label>
            </div>
         </div>
         <div class="col-lg-3 col-3">
            <div class="form-floating">
               <input type="number" step="any" class="form-control" name="precio_bs" placeholder="Precio_Bs" maxlength="20">
               <label for="precio_bs">Precio_Bs</label>
            </div>
         </div>
         <div class="col-lg-3 col-3">
            <div class="form-floating">
               <input type="number" step="any" class="form-control" name="tasa_productos" placeholder="Tasa" maxlength="10" value="<?php if (isset($dataConfig['tasa'])) { echo $dataConfig['tasa']; } ?>">
               <label for="tasa">Tasa</label>
            </div>
         </div>
      </div>

      <div class="row g-2 mb-2">
         <div class="col-lg-3 col-6">
            <div class="form-floating">
               <select name="categoria" class="form-select">
                  <option value="Repuestos">Repuestos</option>
                  <option value="Consumibles">Consumibles</option>
                  <option value="Servicios">Servicios</option>
                  <option value="Equipos">Equipos</option>
                  <option value="Activos">Activos</option>
                  <option value="Otros">Otros</option>
               </select>
               <label for="categoria">Categoria</label>
            </div>
         </div>
         <div class="col-lg-3 col-6">
            <div class="form-floating">
               <select name="condicion" class="form-select">
                  <option value="Nuevo">Nuevo</option>
                  <option value="Usado">Usado</option>
                  <option value="Reparado">Reparado</option>
               </select>
               <label for="condicion">Condicion</label>
            </div>
         </div>
         <div class="col-lg-3 col-6">
            <div class="form-floating">
               <input type="text" class="form-control" name="compatible_con" placeholder="compatible_con" style="text-transform: uppercase;">
               <label for="funciona_en">Compatible con</label>
            </div>
         </div>
         <div class="col-lg-3 col-6 align-content-end">
            <div class="form-check form-switch">
               <input class="form-check-input" type="checkbox" role="switch" id="check_tienda" name="check_tienda">
               <label class="form-check-label" for="check_tienda">Tienda</label>
            </div>
         </div>
      </div>

      <div class="row g-2 mb-3">
         <div class="col-7">
            <label for="formFile" class="form-label">Foto</label>
            <input class="form-control" type="file" id="file_input_foto" name="foto" >
         </div>
         <div class="col-5 align-content-end">
            <div class="row justify-content-center">
               <div class="card " style="width:40%;">
                  <img id="img_file_input_foto" class="p-2" onclick="ver_img()" alt="Foto" />
               </div>
            </div>
         </div>
      </div>



      <hr>
      <div class="d-flex justify-content-between">
         <div></div>
         <div><button type="submit" class="btn btn-secondary">Enviar</button></div>
         
      </div>
   </form>
</div>