<div class="row page-titles">
  <div class="col-md-5 align-self-center">
  </div>
  <div class="col-md-7 align-self-center text-right">
    <div class="d-flex justify-content-end align-items-center">
      <ol class="breadcrumb">
        <li class="breadcrumb-item"><a href="<?php echo base_url();?>admin/dashboard">HOME</a></li>
        <li class="breadcrumb-item active">UPDATE SOCIAL MEDIA</li>';
      </ol>
    </div>
  </div>
</div>
<div class="row">
  <div class="col-lg-12">
    <div class="card">
      <?php if($social == "No Data"){ ?>
      <div class="card-body">
        <h3 class="card-title">No Records Found. </h3>
        <a href="<?php echo base_url(); ?>social-media/list" class="btn btn-danger">BACK TO LIST</a>
      </div>
      <?php }else{ ?>
        <div class="card-header form-card-header">
          <h4 class="m-b-0 text-light">UPDATE SOCIAL MEDIA</h4></div>
        <div class="card-body">
        <form id="update_sm" class="form-material">
          <div class="form-body">
            <div class="row">
              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>SOCIAL MEDIA</strong></label>
                  <input type="text" id="page" name="page" value="<?php echo $social[0]->name; ?>" class="form-control" readonly>
                </div>
              </div>
            </div>
          </div>
          
          <div class="form-body">
            <div class="row">
              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>URL</strong></label>
                  <input type="text" id="url" name="url" value="<?php echo $social[0]->url; ?>" class="form-control" >
                  <label for="url" class="error"></label> 
                </div>
              </div>
            </div>
          </div>

          <input type="hidden" name="id" id="id" value="<?php echo $social[0]->id; ?>">

          <div class="form-actions">
            <button type="submit" class="btn btn-info col-md-3">SAVE</button>  
            <button type="button" class="btn btn-primary col-md-3" onclick="window.location.href='<?php echo base_url(); ?>social-media/list'">CANCEL</button>  
          </div>
        </form>
      </div>
      <?php } ?>
    </div>
  </div>
</div>