<div class="content-header">
    <div class="container-fluid">
        <div class="row mb-2">
            <div class="col-sm-6">
                <h1 class="m-0 text-dark"><?php echo (isset($Category)) ? 'Edit Category' : 'Add Category' ?>
                </h1>
            </div><!-- /.col -->
            <div class="col-sm-6">
                <ol class="breadcrumb float-sm-right">
                    <li class="breadcrumb-item"><a href="<?= base_url(); ?>/dashboard/specialities">Category</a></li>
                    <li class="breadcrumb-item active"><?php echo (isset($Category)) ? 'Edit Category' : 'Add Category' ?></li>
                </ol>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.container-fluid -->
</div>
<!-- Main content -->
<section class="content">
    <div class="container-fluid">
        <?php
            if(isset($Category)){
                $endPoint = "updateCategory";
            }else{
                $endPoint = "insertCategory";
            }
        ?>
        <form method="post" id="customer_add" class="card" action="<?php echo base_url() . "dashboard/".$endPoint; ?>" enctype="multipart/form-data">
            <div class="card-body">

                <div class="row">
                    <input type="hidden" name="id" id="eid" value="<?php echo (isset($Category)) ? $Category['id'] : '' ?>">

                    <div class="col-6">
                        <div class="form-group">
                            <label class="form-label">Name / Title</Title></label>
                            <input type="text" required="true" class="form-control" value="<?php echo (isset($Category)) ? $Category['name'] : '' ?>" name="name" placeholder="Category Name">
                        </div>
                    </div>
  
                </div>

                <div class="modal-footer">

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