<div class="row mt-1">
   <h4>Registro de cliente</h4>
   <hr>

   <form id="form_add_clientes" 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-3">
         <div class="col-lg-3">
            <div class="form-floating">
               <input type="text" class="form-control" name="telefono1" placeholder="+58 414-3326009" maxlength="25" required > 
               <label>Telefono **WhatsApp</label>
            </div>
         </div>
         <div class="col-lg-4">
            <div class="form-floating">
               <input type="text" class="form-control" name="contacto" placeholder=" " required style="text-transform: capitalize;" >
               <label for="contacto">Nombre y Apellido</label>
            </div>
         </div>
      </div>

      <div class="row g-2 mb-2">
         <div class="col-lg-3 col-6">
            <div class="form-floating">
               <input type="text" class="form-control" name="telefono2" placeholder="+58 414-3326009" maxlength="25">
               <label for="telefono2">Telefono 2</label>
            </div>
         </div>
         <div class="col-lg-3 col-6">
            <div class="form-floating">
               <input type="text" class="form-control" name="rif" placeholder=" " style="text-transform: uppercase;" maxlength="15" maxlength="20" >
               <label for="rif">Rif</label>
            </div>
         </div>
         <div class="col-lg-6">
            <div class="form-floating">
               <input type="text" class="form-control" name="razonsocial" placeholder=" " >
               <label for="razonsocial">Razon Social</label>
            </div>
         </div>
         <div class="col-lg-6">
            <div class="form-floating">
               <input type="email" class="form-control" name="email" placeholder=" " style="text-transform: lowercase;" >
               <label for="email">Email</label>
            </div>
         </div>
         <div class="col-lg-6">
            <div class="form-floating">
              <textarea class="form-control" placeholder=" " id="direccion"></textarea>
              <label for="direccion">Direccion</label>
            </div>
         </div>
      </div>

      <?php
         if ((session()->get('user_role')) == 'Administrador') {
            echo $this->include('administrador/ad_form_clie_add.php');
         }
      ?>


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