<div class=" ">
    <h3 class="fmon text-center mb-3">Edit Driver Details</h3>
    <hr>
    <form method="post" enctype="multipart/form-data" id="editCustomerForm" class="needs-validation row"
        action="<?php echo base_url() . "drivers/updatedriverdata/" . $id; ?>">
        <h3 class="fmon mb-3"> Driver Details</h3>
        <div class="mb-3 col-md-12">
            <label for="image" class="form-label">
                <img class="img-fluid rounded border border-2"
                    src="<?php echo $driverdetails['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 $driverdetails['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  $driverdetails['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 $driverdetails['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 $driverdetails['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 $driverdetails['password'] ?>" />

        </div>



        <div class="mb-3 col-md-6 d-flex align-items-end justify-content-end">
            <div class="btn-group" role="group" aria-label="Actions">
                <button type="submit" class="btn btnC">Save Changes</button>

            </div>
        </div>
    </form>
    <hr class="my-3">
    <form id="editCustomerForm" class="needs-validation row mt-3" novalidate method="post" enctype="multipart/form-data"
        id="editCustomerForm" class="needs-validation row"
        action="<?php echo base_url() . "drivers/updatevahicladata/" . $id . '/' . $vehicledetails['id']; ?>">
        <h3 class="fmon"> Vehicle Details</h3>
        <div class="mb-3 col-md-6">
            <label for="carColor" class="form-label">Car Color</label>
            <input type="text" class="form-control" id="carColor" name="color"
                value="<?php echo $vehicledetails['color']   ?>" required>

        </div>
        <div class="mb-3 col-md-6">
            <label for="make" class="form-label">Make</label>
            <input type="text" class="form-control" id="make" name="make"
                value="<?php echo $vehicledetails['make']   ?>" required>

        </div>
        <div class="mb-3 col-md-6">
            <label for="model" class="form-label">Model</label>
            <input type="text" class="form-control" id="model" name="model"
                value="<?php echo $vehicledetails['model']   ?>" required>

        </div>
        <div class="mb-3 col-md-6">
            <label for="licensePlate" class="form-label">License Plate</label>
            <input type="text" class="form-control" id="licensePlate" name="drivingLicense"
                value="<?php echo $vehicledetails['drivingLicense']   ?>" required>

        </div>
        <div class="mb-3 col-md-6">
            <label for="drivingFrontUrl" class="form-label">Driving Front </label>
            <br>
            <label for="drivingFrontUrl" class="form-label">
                <img class="rounded border border-2" src="<?php echo $vehicledetails['drivingFrontUrl']   ?>" alt=""
                    width=" 200px" height="200px">
            </label>
            <input type="file" class="form-control" id="image" name="drivingFront">

        </div>
        <div class="mb-3 col-md-6">
            <label for="drivingBackUrl" class="form-label">Driving Back Image</label>
            <br>
            <label for="drivingBackUrl" class="form-label">
                <img class="rounded border border-2" src="<?php echo $vehicledetails['drivingBackUrl']   ?>" alt=""
                    width=" 200px" height="200px">
            </label>
            <input type="file" class="form-control" id="image" name="drivingBack">

        </div>

        <div class="mb-3 col-md-12 d-flex justify-content-end align-items-end">
            <div class="btn-group" role="group" aria-label="Actions">
                <button type="submit" class="btn btnC">Save Changes</button>

            </div>
        </div>
    </form>
</div>