<?php $this->load->view('site/layout');  ?>
<?php $this->load->view('site/navbar');  ?>

      <div class="kt-content  kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor" id="kt_content">
          <div class="kt-subheader  kt-grid__item" id="kt_subheader">
              <div class="kt-container  kt-container--fluid ">
                <div class="kt-subheader__main">
                  <h3 class="kt-subheader__title"><a href="<?php echo base_url() ?>Dashboard/"><?php echo $this->lang->line('dashboard'); ?></a></h3>
                  <span class="kt-subheader__separator kt-subheader__separator--v"></span>
                  <span class="kt-subheader__desc"><a href="<?=base_url('users/')?>"><?php echo $this->lang->line('data') ?></a></span>
                </div>
              </div>
            </div>
             <?php if(isset($msg) || validation_errors() !== ''): ?>
            <div class="alert alert-warning alert-dismissible">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <h4><i class="icon fa-warning"></i> Alert!</h4>
                <?= validation_errors();?>
                <?= isset($msg)? $msg: ''; ?>
            </div>
          <?php endif; ?> 
            <div class="kt-portlet">
                    <div class="kt-portlet__head">
                      <div class="kt-portlet__head-label">
                        <h3 class="kt-portlet__head-title">
                          <?php echo $this->lang->line('data') ?>
                        </h3>
                      </div>
                    </div>
                    <!--begin::Form-->
                     <!-- <?php echo form_open_multipart(base_url(''.$thispage.'/add/')); ?> -->
                    <form class="kt-form kt-form--label-right" method="post" action="">
                      <div class="kt-portlet__body">
                        <div class="form-group row">
                          <label for="example-text-input" class="col-2 col-form-label"><?php echo $this->lang->line('label') ?> </label>
                          <div class="col-10">
                            <input type="text" class="form-control" id="exampleInputEmail1" placeholder="" name="lable"  value="<?php echo $result->lable; ?>" required autofocus>
                          </div>
                        </div>
                        <div class="form-group row">
                          <label for="example-search-input" class="col-2 col-form-label"> <?php echo $this->lang->line('english') ?>   </label>
                          <div class="col-10">
                            <input type="text" class="form-control" id="exampleInputEmail1" placeholder="" name="english"  value="<?php echo $result->english; ?>" required >
                          </div>
                        </div>
                        <div class="form-group row">
                          <label for="example-email-input" class="col-2 col-form-label"> <?php echo $this->lang->line('arabic') ?></label>
                          <div class="col-10">
                             <input type="text" class="form-control" id="exampleInputPassword1"  name="arabic"  value="<?php echo $result->arabic; ?>" required>
                          </div>
                        </div>
                      </div>
                      <div class="kt-portlet__foot">
                        <div class="kt-form__actions">
                          <div class="row">
                            <div class="col-12">
                              <button type="submit" class="btn btn-primary"><?php echo $this->lang->line('modification') ?></button>
                            </div>
                          </div>
                        </div>
                      </div>
                    </form>
                  </div>
          <?php $this->load->view('site/footer'); ?>