<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($customerdetails)) ? '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">Customer</a></li>
          <li class="breadcrumb-item active"><?php echo (isset($customerdetails)) ? 'Edit Category' : 'Add Category' ?></li>
        </ol>
      </div><!-- /.col -->
    </div><!-- /.row -->
  </div><!-- /.container-fluid -->
</div>
<!-- Main content -->
<section class="content">
  <div class="container-fluid">
    <form method="post" id="customer_add" class="card" action="<?php echo base_url() . "customer/insertcustomer"; ?>">
      <div class="card-body">

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


          <div class="col-sm-8 col-md-8">
            <div class="form-group">
              <label class="form-label">Title</label>
              <input type="text" required="true" class="form-control" value="<?php echo (isset($customerdetails)) ? $customerdetails[0]['email'] : '' ?>" id="c_email" name="Title" placeholder="Title">

            </div>
          </div>



        </div>
        <input type="hidden" id="c_created_date" name="createdDate" value="<?php echo date('Y-m-d h:i:s'); ?>">

        <div class="modal-footer">

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