<div class="">
    <div class="">
        <div class="row mb-2">
            <div class="col-sm-6">
                <div class="img-profile ml-4">

                </div>
                <h3 class="m-0 text-dark fmon">
                    <?php echo (isset($customerdetails)) ? 'Edit Customer' : 'Edit Customer' ?>
                </h3>
            </div><!-- /.col -->
            <div class="col-sm-12">




            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.container-fluid -->
</div>
<!-- Main content -->
<section class="">
    <div class="">
        <form method="post" id="customer_add" class=""
            action="<?php echo base_url() . "customer/updatecustomerdata/" . $id; ?>">
            <div class="card-body">

                <div class="row">
                    <?php
        
          ?>

                    <div class="col-md-6 my-2">
                        <div class="form-group">
                            <label class="form-label">First Name<span class="form-required">*</span></label>
                            <input type="text" required="true" class="form-control"
                                value="<?php echo (isset($customerdetails)) ? $customerdetails['firstName'] : '' ?>"
                                id="firstName" name="firstName" placeholder="First Name">
                        </div>
                    </div>
                    <div class="col-md-6 my-2">
                        <div class="form-group">
                            <label class="form-label">Last Name<span class="form-required">*</span></label>
                            <input type="text" required="true" class="form-control"
                                value="<?php echo (isset($customerdetails)) ? $customerdetails['lastName'] : '' ?>"
                                id="lastName" name="lastName" placeholder="Last Name">
                        </div>
                    </div>
                    <div class="col-md-6 my-2">
                        <div class="form-group">
                            <label class="form-label">Phone<span class="form-required">*</span></label>
                            <input type="text" required="true"
                                value="<?php echo (isset($customerdetails)) ? $customerdetails['phoneNumber'] : '' ?>"
                                class="form-control" name="phoneNumber" placeholder="Phone">
                        </div>
                    </div>

                    <div class="col-md-6 my-2">
                        <div class="form-group">
                            <label class="form-label">Email</label>
                            <input type="text" readonly required="true" class="form-control"
                                value="<?php echo (isset($customerdetails)) ? $customerdetails['email'] : '' ?>"
                                id="email" placeholder="Customer Email">

                        </div>
                    </div>


                    <div class="col-md-6 my-2">
                        <div class="form-group">
                            <label 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 $customerdetails['password'] ?>" />
                        </div>
                    </div>





                </div>

                <div class="my-3 d-flex justify-content-end align-items-end">

                    <button type="submit" class=" btn btnC">
                        <?php echo (isset($customerdetails)) ? 'Update Customer' : 'Add Customer' ?></button>
                </div>
            </div>
        </form>
    </div>
</section>
<!-- /.content -->