<div class="">
    <h3 class="fmon">Edit Vendor Details</h3>
    <form id="editVendorForm" enctype="multipart/form-data" class="needs-validation row" method="POST" 
    action="<?php echo base_url() . "vendors/updatevendorsdata/" . $id; ?>">
        
        <div class="mb-3 col-md-12">
            <label for="image" class="form-label">
                <img class="img-fluid rounded border border-2"
                    src="<?php echo $vendorinfo['image']  ?>"" alt="" width=" 200px" height="200px">
            </label>
            <input type="file" class="form-control" id="image" name="imagefile" 
              >

        </div>
        
        <div class="mb-3 col-md-6">
            <label for="customerName" class="form-label">First Name</label>
            <input type="text" class="form-control" id="customerName" name="firstName" required
                value="<?php echo $vendorinfo['firstName']; ?>" required>

        </div>
        <div class="mb-3 col-md-6">
            <label for="customerName" class="form-label">Last Name</label>
            <input type="text" class="form-control" id="lastName" name="lastName" required
                value="<?php echo  $vendorinfo['lastName']; ?>" required>

        </div>
        <div class="mb-3 col-md-6">
            <label for="customerEmail" class="form-label">Email</label>
            <input type="email" class="form-control" id="customerEmail" 
                value="<?php echo $vendorinfo['email']   ?>" required>

        </div>
        <div class="mb-3 col-md-6">
            <label for="customerPhone" class="form-label">Phone</label>
            <input type="text" class="form-control" id="customerPhone" name="phone"
                value="<?php echo $vendorinfo['phoneNumber']   ?>" required>

        </div>
        <div class="mb-3 col-md-6">
            <label for="vehicleId" class="form-label">Password<span class="form-required">* <span class="text-danger">if
            you fill this field password will b changed</span></span></label>
            <input class="form-control" id="c_password" autocomplete="off" type="password"
                                placeholder="Password" name="newpassword" minlength="6">
                            <input type="hidden" name="password" value="<?php echo $vendorinfo['password'] ?>" />

        </div>
        <div class="mb-3 col-md-6">
            <div class="btn-group" role="group" aria-label="Actions">
                <button type="submit" class="btn btnC">Save Changes</button>
            </div>
        </div>
    </form>
</div>