<?php $this->load->view('site/layout');  ?>
<?php   if($this->session->userdata('language') == "english"){
        $language_set ="arabic";
      }
      else{
      $language_set ="english";
      }    
        if($language_set == "english") { ?>
            <link href="<?php echo base_url() ?>public/plugins/custom/fullcalendar/fullcalendar.bundle.rtl.css" rel="stylesheet" type="text/css" />
     <?php }else{ ?>
              <link href="<?php echo base_url() ?>public/plugins/custom/datatables/datatables.bundle.css" rel="stylesheet" type="text/css" />
            

      <?php } ?>
<?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">
  
            <!-- begin:: Content Head -->
            <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-hidden"></span>
                  <div class="kt-subheader__breadcrumbs">
                    <a href="#" class="kt-subheader__breadcrumbs-home"><i class="flaticon2-shelter"></i></a>
                    <span class="kt-subheader__breadcrumbs-separator"></span>
                    <a href="<?=base_url('expense/category_list')?>" class="kt-subheader__breadcrumbs-link">
                      <?php echo $this->lang->line('category') ?> </a>
                </div>
                
              </div>
            </div>
            </div>
                  <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('expense');  echo ' '; echo $this->lang->line('category'); ?>
                        </h3>
                      </div>
                    </div>
                    <?php echo form_open_multipart(base_url('expense/addcategory/')); ?>
     <!-- <form class="kt-form kt-form--label-right"> -->
                      <div class="kt-portlet__body">
                            <?php if(isset($msg) || validation_errors() !== ''): ?>
                       <div class="form-group form-group-last">
                          <div class="alert alert-secondary" role="alert">
                            <div class="alert-icon"><i class="flaticon-warning kt-font-brand"></i></div>
                            <div class="alert-text">
                              <?= validation_errors();?>
                              <?= isset($msg)? $msg: ''; ?>
                            </div>
                          </div>
                        </div>
                        <?php endif; ?><div class="form-group row">
                          <label for="example-text-input" class="col-3 col-form-label"><?php echo $this->lang->line('category'); ?> <?php echo $this->lang->line('name'); ?></label>
                          <div class="col-9">
                              <input type="text" class="form-control"  placeholder="" name="category_name" required>
            
                          </div>
                        </div>
                        
                      </div>
                      <div class="row">
                            <div class="col-10">
                                <button type="submit" class="btn btn-primary" name="submit" value="pl"><?php echo $this->lang->line('addition') ?></button>
                            </div>
                          </div>
                      </div>
                    </form>
                  </div>
<?php $this->load->view('site/footer'); ?>