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

        </div>
        <h1 class="m-0 text-dark"><?php echo (isset($customerdetails)) ? 'Edit Service Provider' : 'Add Service Provider' ?>
        </h1>
      </div><!-- /.col -->
      <div class="col-sm-6">
        <ol class="breadcrumb float-sm-right">
          <li class="breadcrumb-item"><a href="<?= base_url(); ?>/dashboard">Service Provider</a></li>
          <li class="breadcrumb-item active"><?php echo (isset($customerdetails)) ? 'Edit Service Provider' : 'Add Service Provider' ?></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">


          <div class="col-sm-6 col-md-6">
            <div class="form-group">
              <label class="form-label">Name<span class="form-required">*</span></label>
              <input type="text" required="true" class="form-control"  id="c_name" name="Name" placeholder="Customer Name">
            </div>
          </div>
         
          <div class="col-sm-6 col-md-6">
            <div class="form-group">
              <label class="form-label">Mobile<span class="form-required">*</span></label>
              <input type="text" required="true" class="form-control"  id="c_mobile" name="phoneNumber" placeholder="Customer Mobile">
            </div>
          </div>
          <div class="col-sm-6 col-md-6">
            <div class="form-group">
              <label class="form-label">Image</label>
              <input type="file" required="true" class="form-control"  id="c_email" name="email" placeholder="Customer 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" required="true" class="form-control" value="<?php echo (isset($customerdetails)) ? $customerdetails[0]['mobile'] : '' ?>" id="c_mobile" name="phoneNumber" placeholder="Customer Address">
            </div>
          </div>
          <div class="col-sm-6 col-md-6">
            <div class="form-group">
              <label class="form-label">Latitude<span class="form-required">*</span></label>
              <input type="text" required="true" class="form-control" value="" id="c_mobile" name="lat" placeholder="Latitude">
            </div>
          </div>
          <div class="col-sm-6 col-md-6">
            <div class="form-group">
              <label class="form-label">Longitude<span class="form-required">*</span></label>
              <input type="text" required="true" class="form-control" value="" id="c_mobile" name="lng" placeholder="Longititude">
            </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  disabled type="submit" class="btn btn-primary"> <?php echo (isset($customerdetails)) ? 'Update Provider' : ' Add Provider' ?></button>
        </div>
      </div>
    </form>
  </div>
</section>
<!-- /.content -->