<form method="post" action="<?php echo site_url('admin/product/update_prd_basic'); ?>" enctype="multipart/form-data">
    <input type="hidden" name="prd_id" value="<?php echo $product['prd_id']; ?>">

    <div class="form-group">
        <label>Product Title <span class="text-danger">*</span></label>
        <input name="prd_title" class="form-control" value="<?php echo $product['prd_title'] ?? ''; ?>" required>
    </div>
    <div class="form-group">
        <label>Product Meta Title</label>
        <input name="prd_meta_title" class="form-control" value="<?php echo $product['prd_meta_title'] ?? ''; ?>">
    </div>
    <div class="form-group">
        <label>Product Meta Description</label>
        <textarea name="prd_meta_description" class="form-control" ><?php echo $product['prd_meta_description'] ?? ''; ?></textarea>
    </div>
    <div class="form-group">
        <label>Product Meta Keywords</label>
        <textarea name="prd_meta_keywords" class="form-control" ><?php echo $product['prd_meta_keywords'] ?? ''; ?></textarea>
    </div>

    <div class="form-group">
        <label>Product OG Image</label>
        <input name="prd_meta_og_image" class="form-control" type="file">
        <?php if (!empty($product['prd_meta_og_image'])): ?>
            <img src="<?php echo base_url($product['prd_meta_og_image']); ?>" style="max-width:200px;margin-top:10px;">
        <?php endif; ?>
    </div>
    
    
    <button class="btn btn-success">Save</button>
</form>