<div class="row mb-3">
  <div class="col-lg-3 col-md-4">
    <?php
    if ($field_title !='') {
      ?>
      <label class="d-block mb-0" for="<?php echo $field_id ?>"><?php echo $field_title ?></label>
      <?php
    }
    if ($field_subtitle !='') {
      ?>
      <small><?php echo $field_subtitle ?></small>
      <?php
    }
     ?>
  </div>
  <div class="col-md-8">
      <div class=" border rounded-2 p-2">
        <div class="m-0 input-group">
          <input id="<?php echo $field_id ?>" name="<?php echo $field_id ?>" type="url" class="form-control  rounded-0 border-success" value="<?php echo $form_value  ?>" placeholder="Select file" >
          <a href="#" class="addMediaButton  input-group-text border-success bg-success text-white rounded-0 copy_link" data-media_type="<?php echo $field_f_type ?>" data-bs-toggle="modal" data-bs-target="#SelectMedia" data-target="#<?php echo $field_id ?>">
             <i class="ri-links-line pe-2"></i> Select files
          </a>
        </div>
        <?php
         if ($field_desc !='') {
           ?>
           <small><?php echo $field_desc ?></small>
           <?php
         }
       ?>
        <?php
        if ($field_image == true) {
          ?>
          <div class="mb-3">
            <img class="img-fluid rounded border bg-white" style="width: 40%;"  id="<?php echo $field_id ?>_Preview" src="<?php echo $form_value  ?>">
          </div>
          <?php
        }
         ?>
      </div>
      </div>
</div>
