<div class="content-wrapper">
  <section class="content-header">
    <h1>
       <?= $pTitle ?>
        <small><?= $pDescription ?></small>
    </h1>
    <ol class="breadcrumb">
     <li><a href="<?= base_url() ?>"><i class="fa fa-star-o" aria-hidden="true"></i>Home</a></li>
     <li><?= $menu ?></li>
     <li class="active"><?= $smenu ?></li>
    </ol>
  </section>
  <section class="content">
    <div class="row">
      <div class="col-md-12">
        <?php if($this->session->flashdata('message')) { 
          $flashdata = $this->session->flashdata('message'); ?>
          <div class="alert alert-<?= $flashdata['class'] ?>">
            <button class="close" data-dismiss="alert" type="button">×</button>
            <?= $flashdata['message'] ?>
          </div>
        <?php } ?>
      </div>
      <div class="col-md-12">
        <div class="box box-warning">
          <div class="box-body">
            <form role="form" action="<?= base_url('CMS/changeCMSdata') ?>" method="post" 
              class="validate" data-parsley-validate="" enctype="multipart/form-data">

              <div class="col-sm-6">
                <div class="form-group">
                  <label>FAQ (English)</label>
                  <textarea id="rich_editor" type="text" class="ip_reg_form_input form-control reset-form-custom" placeholder="FAQ English" name="faq_en" style="height:108px;" data-parsley-trigger="change" data-parsley-minlength="2"><?= $cmsData->faq_en ?></textarea>
                </div>
              </div>

              <div class="col-sm-6">
                <div class="form-group">
                  <label>FAQ (Arabic)</label>
                  <textarea id="rich_editor_3" type="text" class="ip_reg_form_input form-control reset-form-custom" placeholder="FAQ Arabic" name="faq_ar" style="height:108px;" data-parsley-trigger="change" data-parsley-minlength="2"><?= $cmsData->faq_ar ?></textarea>
                </div>
              </div>

              <div class="col-sm-6">
                <div class="form-group">
                  <label>Instruction (English)</label>
                  <textarea id="rich_editor_6" type="text" class="ip_reg_form_input form-control reset-form-custom" placeholder="Instruction English" name="instruction_en" style="height:108px;" data-parsley-trigger="change" data-parsley-minlength="2"><?= $cmsData->instruction_en ?></textarea>
                </div>
              </div>

              <div class="col-sm-6">
                <div class="form-group">
                  <label>Instruction (Arabic)</label>
                  <textarea id="rich_editor_7" type="text" class="ip_reg_form_input form-control reset-form-custom" placeholder="Instruction Arabic" name="instruction_ar" style="height:108px;" data-parsley-trigger="change" data-parsley-minlength="2"><?= $cmsData->instruction_ar ?></textarea>
                </div>
              </div>
              
              <div class="col-sm-6">
                <div class="form-group">
                  <label>Privacy Policy (English)</label>
                  <textarea id="rich_editor_1" type="text" placeholder="Privacy Policy English" class="ip_reg_form_input form-control reset-form-custom" name="privacy_policy_en" style="height:108px;" data-parsley-minlength="2" data-parsley-trigger="change"><?= $cmsData->privacy_policy_en ?></textarea>
                </div>
              </div>

              <div class="col-sm-6">
                <div class="form-group">
                  <label>Privacy Policy (Arabic)</label>
                  <textarea id="rich_editor_4" type="text" placeholder="Privacy Policy Arabic" class="ip_reg_form_input form-control reset-form-custom" name="privacy_policy_ar" style="height:108px;" data-parsley-minlength="2" data-parsley-trigger="change"><?= $cmsData->privacy_policy_ar ?></textarea>
                </div>
              </div>

              <div class="col-sm-6">
                <div class="form-group">
                  <label>Terms and Condition (English)</label>
                  <textarea id="rich_editor_2" type="text" class="ip_reg_form_input form-control reset-form-custom" placeholder="Terms and Condition English" name="terms_and_conditions_en" style="height:108px;" data-parsley-trigger="change" data-parsley-minlength="2"><?= $cmsData->terms_and_conditions_en ?></textarea>
                </div>
              </div>
              
              <div class="col-sm-6">
                <div class="form-group">
                  <label>Terms and Condition (Arabic)</label>
                  <textarea id="rich_editor_5" type="text" class="ip_reg_form_input form-control reset-form-custom" placeholder="Terms and Condition Arabic" name="terms_and_conditions_ar" style="height:108px;" data-parsley-trigger="change" data-parsley-minlength="2"><?= $cmsData->terms_and_conditions_ar ?></textarea>
                </div>
              </div>
              
              <div class="col-md-6">      
                <div class="box-footer textCenterAlign">
                  <button type="submit" class="btn btn-primary">Submit</button>
                  <a href="<?= base_url() ?>" class="btn btn-primary">Cancel</a>
                </div>        
              </div> 

            </form>
          </div>
        </div>
      </div>
    </div>
  </section>
</div>