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

                </div>
                <div class="col-sm-6">
                    <!--   <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="<?= base_url(); ?>/customer">Author</a></li>
                        <li class="breadcrumb-item active"><?php echo (isset($Author)) ? 'Edit Narrator' : 'Add Author' ?></li>
                    </ol> -->
                </div>
            </div>
        </div>
    </div>
    <?php
      if(isset($publisher)){
        $endpoint = 'updatepublisher';
      }else{
        $endpoint = 'insertpublisher';
      }
    ?>
    <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-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="<?=$publisher['name']?>">
                            </div>
                        </div>

                        <div class="col-sm-12 col-md-12">
                            <div class="form-group">
                                <label class="form-label">Details</label>
                                <textarea name="details" rows="5" class="form-control"><?=$publisher['details']?></textarea>
                            </div>
                        </div>

                    </div>

                </div>

            </div>
        </section>


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

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