    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <div class="img-profile ml-3">

                    </div>
                    <h1 class="m-0 text-dark"><?php echo (isset($coach)) ? 'Edit Coach' : 'Add Coach' ?>
                    </h1>

                </div><!-- /.col -->
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="<?= base_url(); ?>/customer">Users</a></li>
                        <li class="breadcrumb-item active"><?php echo (isset($coach)) ? 'Edit Coach' : 'Add Coach' ?></li>
                    </ol>
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </div>
    <?php
      if(isset($coach)){
        $endpoint = 'updatecoach';
      }else{
        $endpoint = 'insertcoach';
      }
    ?>
    <form method="post" id="add_driver" class="card" action="<?php echo base_url() . "customer/".$endpoint; ?>" enctype="multipart/form-data">
        <!-- Main content -->
        <section class="content">
            <div class="container-fluid">
                <div class="card-body">


                    <div class="row">
                        <input type="hidden" name="coachId" id="coachId" value="<?=$coachId?>">

                        <div class="col-sm-6 col-md-6">
                            <label class="form-label">Name<span class="form-required">*</span></label>
                            <div class="form-group">
                                <input type="text" name="name" id="name" class="form-control" placeholder="Name" value="<?=$coach['name']?>">
                            </div>
                        </div>
                        <div class="col-sm-6 col-md-6">
                            <div class="form-group">
                                <label class="form-label">Email<span class="form-required">*</span></label>
                                <input type="email" name="email" value="<?=$coach['email']?>" class="form-control" placeholder="Email">
                            </div>
                        </div>
                        <div class="col-sm-6 col-md-6">
                            <div class="form-group">
                                <label class="form-label">Address<span class="form-required">*</span></label>
                                <input type="text" name="address" value="<?=$coach['address']?>" class="form-control" placeholder="Address">
                            </div>
                        </div>
                        <div class="col-sm-6 col-md-6">
                            <div class="form-group">
                                <label class="form-label">Password<span class="form-required">*</span></label>
                                <input type="password" name="password" class="form-control" placeholder="Password">
                            </div>
                        </div>
                        <div class="col-sm-12 col-md-12">
                            <div class="form-group">
                                <label class="form-label">Intro</label>
                                <textarea name="intro" rows="5" class="form-control"><?=$coach['intro']?></textarea>
                            </div>
                        </div>
                        <div class="col-sm-12 col-md-12">
                            <div class="form-group">
                                <label class="form-label">Experience</label>
                                <textarea name="experience" rows="5" class="form-control"><?=$coach['experience']?></textarea>
                            </div>
                        </div>


                        <!-- <div class="col-sm-6 col-md-6">
                            <div class="form-group">
                                <label class="form-label">Category<span class="form-required">*</span></label>
                                <select id="isActive" name="d_isActive" class="form-control " required="">
                                    <option value="">Select Category</option>
                                    <option>Active</option>
                                    <option>Active</option>
                                    <option>Active</option>

                                </select>
                            </div>
                        </div> -->
                        <!-- <div class="col-sm-6 col-md-3 ">
                            <div class="form-group">
                                <label for="isActive" class="form-label"> Status</label>
                                <select id="isActive" name="d_isActive" class="form-control " required="">
                                    <option value="">Select Status</option>
                                    <option <?php echo (isset($driverdetails) && $driverdetails[0]['isActive'] == 1) ? 'selected' : '' ?> value="1">Active</option>
                                    <option <?php echo (isset($driverdetails) && $driverdetails[0]['isActive'] == 0) ? 'selected' : '' ?> value="0">Inactive</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-6 col-md-3">
                            <div class="form-group">
                                <label class="form-label">Commision<span class="form-required">*</span></label>
                                <input type="number" step="any" name="d_phoneNumber" value="<?php echo (isset($driverdetails)) ? $driverdetails[0]['phoneNumber'] : '' ?>" class="form-control" placeholder="Commision">
                            </div>
                        </div>
                        <div class="col-sm-12 col-md-12">
                            <div class="form-group">
                                <label class="form-label">Image</label>
                                <input type="file" name="v_licenseBackUrl" class="form-control" placeholder="Proof of insurance">
                            </div>
                        </div>
                        <div class="col-sm-12 col-md-12">
                            <div class="form-group">
                                <label class="form-label">Description</label>
                                <textarea class="form-control"></textarea>
                            </div>
                        </div> -->

                    </div>

                </div>

            </div>
        </section>
        <!-- /.content -->


        <!-- Main content -->
        <section class="content">
            <div class="container-fluid">

                <div class="card-footer text-right">
                    <button type="submit" class="btn btn-primary"> <?php echo (isset($coach)) ? 'Update Coach' : 'Add Coach' ?></button>
                </div>
            </div>
        </section>
        <!-- /.content -->
    </form>