    <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($meditation)) ? 'Edit Session' : 'Add Session' ?>
                    </h1>

                </div><!-- /.col -->
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="<?= base_url(); ?>dashboard/meditations">Sessions</a></li>
                        <li class="breadcrumb-item active"><?php echo (isset($meditation)) ? 'Edit Session' : 'Add Session' ?></li>
                    </ol>
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </div>
    <?php
      if(isset($meditation)){
        $endpoint = 'updatemeditation';
      }else{
        $endpoint = 'insertmeditation';
      }
    ?>
    <form method="post" id="add_driver" class="card" action="<?php echo base_url() . "dashboard/".$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="id" id="id" value="<?=$id?>">

                        <div class="col-sm-6 col-md-4">
                            <label class="form-label">Session No.<span class="form-required">*</span></label>
                            <div class="form-group">
                                <input type="text" name="sessionNo" id="sessionNo" class="form-control" placeholder="Session Number" value="<?php echo $meditation['sessionNo'];?>" required>
                            </div>
                        </div>
                        <div class="col-sm-6 col-md-4">
                            <label class="form-label">Title<span class="form-required">*</span></label>
                            <div class="form-group">
                                <input type="text" name="title" id="title" class="form-control" placeholder="Meditation Title" value="<?php echo $meditation['title'];?>" required>
                            </div>
                        </div>
                        <div class="col-sm-6 col-md-4">
                            <label class="form-label">Congrats Message<span class="form-required">*</span></label>
                            <div class="form-group">
                                <input type="text" name="congratsMessage" id="congratsMessage" class="form-control" placeholder="Congrats Message" value="<?php echo $meditation['congratsMessage'];?>" required>
                            </div>
                        </div>

                        <div class="col-sm-6 col-md-4">
                            <label class="form-label">Regular Steps<span class="form-required">*</span></label>
                            <div class="form-group">
                                <input type="text" name="regularXP" id="regularXP" class="form-control" placeholder="Regular Steps" value="<?php echo $meditation['regularXP'];?>" required>
                            </div>
                        </div>

                        <div class="col-sm-6 col-md-4">
                            <label class="form-label">Relisten Steps<span class="form-required">*</span></label>
                            <div class="form-group">
                                <input type="text" name="relistenXP" id="relistenXP" class="form-control" placeholder="Relisten Steps" value="<?php echo $meditation['relistenXP'];?>" required>
                            </div>
                        </div>

                        <!-- <div class="col-sm-6 col-md-4">
                            <label class="form-label">Image<span class="form-required">*</span></label>
                            <div class="form-group">
                                <input type="file" name="image" id="image" class="form-control" placeholder="Image" <?=$meditation?'':'required'?>>
                            </div>
                        </div> -->

                        <div class="col-sm-6 col-md-4">
                            <label class="form-label">Speeker1 Audio File<span class="form-required">*</span></label>
                            <div class="form-group">
                                <input type="file" name="audio1" id="audio1" class="form-control" placeholder="Audio1" <?=$meditation?'':'required'?>>
                            </div>
                        </div>

                        <div class="col-sm-6 col-md-4">
                            <label class="form-label">Speeker2 Audio File<span class="form-required">*</span></label>
                            <div class="form-group">
                                <input type="file" name="audio2" id="audio2" class="form-control" placeholder="Audio2" <?=$meditation?'':'required'?>>
                            </div>
                        </div>

                        <div class="col-sm-6 col-md-4">
                            <label class="form-label">Speeker3 Audio File<span class="form-required">*</span></label>
                            <div class="form-group">
                                <input type="file" name="audio3" id="audio3" class="form-control" placeholder="Audio3" <?=$meditation?'':'required'?>>
                            </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($meditation)) ? 'Update Session' : 'Add Session' ?></button>
                </div>
            </div>
        </section>
        <!-- /.content -->
    </form>