<div class="row">
  <div class="col-lg-12 mt-4">
    <div class="card">
      <div class="card-header form-card-header">
        <h4 class="m-b-0 text-light">UPDATE BUSINESS LEADS</h4>
      </div>
      <div class="card-body">
        <form id="update_business" class="form-material">
          <div class="form-body">
            <div class="row">
            <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>ORGANISATION <span>*</span></strong></label>
                  <input type="text" id="organisation" name="organisation" class="form-control" value="<?php echo $business[0]->organisation; ?>">
                  <label for="organisation" class="error"></label> 
                </div>
              </div>

              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>NAME <span>*</span></strong></label>
                  <input type="text" id="name" name="name" class="form-control" value="<?php echo $business[0]->name; ?>">
                  <label for="name" class="error"></label> 
                </div>
              </div>
              
              <div class="col-md-4">
                <div class="form-group">
                  <label class="control-label"><strong>COUNTRY <span>*</span></strong></label>
                  <select name="country" id="country" class="form-control">
                  <option value="">SELECT COUNTRY</option>
                  <?php foreach($country as $val){ ?>
                    <option value="<?php echo strtoupper($val->countryName); ?>" <?php if(strtoupper($val->countryName) == $business[0]->country){ echo 'selected'; } ?>><?php echo strtoupper($val->countryName); ?></option>
                  <?php } ?>
                  </select>
                  <label for="country" class="error"></label> 
                </div>
              </div>
              
              <div class="col-md-4">
                <div class="form-group">
                  <label class="control-label"><strong>EMAIL <span>*</span></strong></label>
                  <input type="email" id="email" name="email" class="form-control" value="<?php echo $business[0]->email; ?>">
                  <label for="email" class="error"></label> 
                </div>
              </div>

              <div class="col-md-4">
                <div class="form-group">
                  <label class="control-label"><strong>CONTACT <span>*</span></strong></label>
                  <input type="number" id="contact" name="contact" class="form-control" value="<?php echo $business[0]->contact; ?>">
                  <label for="contact" class="error"></label> 
                </div>
              </div>

              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>ADDRESS <span>*</span></strong></label>
                  <textarea id="address" name="address" class="form-control" rows="2"><?php echo $business[0]->address; ?></textarea>
                  <label for="address" class="error"></label> 
                </div>
              </div>

              <!-- <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>PRODUCT <span>*</span></strong></label>
                  <input type="text" id="product" name="product" class="form-control" value="<?php echo $business[0]->products; ?>">
                  <label for="product" class="error"></label> 
                </div>
              </div> -->

              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>PRODUCT ENQUIRY <span>*</span></strong></label>
                  <textarea id="enquiry" name="enquiry" class="form-control" rows="2"><?php echo $business[0]->enquiry; ?></textarea>
                  <label for="enquiry" class="error"></label> 
                </div>
              </div>

              <div class="col-md-4">
                <div class="form-group">
                  <label class="control-label"><strong>STATUS</strong></label>
                  <select name="status" id="status" class="form-control">
                    <option value="1" <?php if($business[0]->status == '1'){echo 'selected'; }?>>ACTIVE</option>
                    <option value="0" <?php if($business[0]->status == '0'){echo 'selected'; }?>>DEACTIVE</option>
                  </select>
                  <label for="status" class="error"></label> 
                </div>
              </div>
            </div>
          </div>
          
          <input type="hidden" id="id" name="id" value="<?php echo $business[0]->id; ?>">

          <div class="form-actions">
            <button type="submit" class="btn btn-rounded btn-outline-success col-md-3">SAVE</button>  
            <button type="button" class="btn btn-rounded btn-outline-danger col-md-3" onclick="window.location.href='<?php echo base_url(); ?>business/list'">CANCEL</button>  
          </div>
        </form>
      </div>
    </div>
  </div>
</div>