<?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">
  
            <!-- 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"><?php echo $this->lang->line('dashboard'); ?></h3>
                  <span class="kt-subheader__separator kt-subheader__separator--v"></span>
                  <span class="kt-subheader__desc"><?php echo $this->lang->line('home'); ?></span>
                </div>
                
              </div>
            </div>

            <!-- end:: Content Head -->

            <!-- begin:: Content -->
            <div class="kt-container  kt-container--fluid  kt-grid__item kt-grid__item--fluid">

              <!--Begin::Dashboard 1-->

              <!--Begin::Row-->
              <div class="row">
                <div class="col-lg-12 col-xl-12 order-lg-1 order-xl-1">

                  <!--begin:: Widgets/Activity-->
                  <div class=" kt-portlet--fit kt-portlet--head-lg kt-portlet--head-overlay kt-portlet--skin-solid kt-portlet--height-fluid">
                   
                    <div class="kt-portlet__body kt-portlet__body--fit">
                      <div class="kt-widget17" style="margin-top: 50px;">
                        
                        <div class="kt-widget17__stats">
                           <div class="kt-widget17__items">
                            <div class="kt-widget17__item">
                              <span class="kt-widget17__icon">
                               <i class="kt-menu__link-icon flaticon-list" style="color:red;"></i>
                                   </span>
                              <span class="kt-widget17__subtitle">
                                <?php echo $this->lang->line('bills')?>
                              </span>
                              <span class="kt-widget17__desc">
                              <?php echo $this->lang->line('all').' ' .$this->lang->line('bills')?> : <?php echo $bills; ?></span>
                              <span class="kt-widget17__desc">
                              <?php echo $this->lang->line('the-amount')?> : <?php echo $bills_amount ? $bills_amount->total_amount:'0'; ?></span>
                            </div>
                            <div class="kt-widget17__item">
                              <span class="kt-widget17__icon">
                              <i class="kt-menu__link-icon flaticon-bag" style="color:red;"></i></span>
                              <span class="kt-widget17__subtitle">
                                <?php echo $this->lang->line('activities')?> 
                              </span>
                              <span class="kt-widget17__desc">
                               <?php echo $this->lang->line('all').' '.$this->lang->line('activities')?> : <?php echo count($product); ?>
                              </span>
                            </div>
                          </div>
                           <div class="kt-widget17__items">
                            <div class="kt-widget17__item">
                              <span class="kt-widget17__icon">
                               <i class="kt-menu__link-icon flaticon-layer" style="color:red;"></i>
                                   </span>
                              <span class="kt-widget17__subtitle">
                                <?php echo $this->lang->line('expense')?>
                              </span>
                              <span class="kt-widget17__desc">
                              <?php echo $this->lang->line('total')?>:<?php echo count($expense); ?> </span>
                            </div>
                            <div class="kt-widget17__item">
                              <span class="kt-widget17__icon">
                              <i class="kt-menu__link-icon flaticon-users" style="color:red;"></i></span>
                              <span class="kt-widget17__subtitle">
                                <?php echo $this->lang->line('users')?> 
                              </span>
                              <span class="kt-widget17__desc">
                              	<?php echo $this->lang->line('all')?> : <?php echo $user? $user->all_users:'0'; ?><br/>
                               <?php echo $this->lang->line('active')?> : <?php echo $user?$user->active:'0'; ?><br/>
                               <?php echo $this->lang->line('not-active')?> : <?php echo $user?$user->not_active:'0'; ?>
                               
                              </span>
                            </div>
                          </div>
                          
                        </div>
                      </div>
                    </div>
                  </div>

                  <!--end:: Widgets/Activity-->
                </div>
              </div>
              

              <!--End::Row-->

              <!--End::Dashboard 1-->
            </div>

            <!-- end:: Content -->
          </div>

          <!-- begin:: Footer -->
       <?php $this->load->view('site/footer_2'); ?>  