<!DOCTYPE html >
<html lang="en" dir="<?= direction();?>">   <!-- dir="<?= direction();?>" -->
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title><?=isset($page_title) && $page_title!="" ? $page_title:'';?></title>
  <!-- Tell the browser to be responsive to screen width -->
  <!-- Bootstrap 3.3.7 -->
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/bower_components/bootstrap/dist/css/bootstrap.min.css">
  <?php if(direction()=='rtl'): ?>
    <link rel="stylesheet" href="<?= base_url()?>assets/admin/bootstrap_rtl.css">
    <link rel="stylesheet" href="<?= base_url()?>assets/css/custom_rtl.css">
  <?php endif ?>
  <!-- Font Awesome -->
  <!-- fontawsome 5 -->
    <link href="<?php echo base_url(); ?>assets/css/font-awesome-5.8.1.main.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>assets/css/icofont.css" rel="stylesheet">
  <!-- fontawsome 5 -->
  
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/bower_components/font-awesome/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/bower_components/Ionicons/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/dist/css/AdminLTE.min.css">

  <!-- Bootstrap Color Picker -->
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/bower_components/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css">

  <?php $settings = get_setting(); ?>
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/dist/css/skins/_all-skins.min.css">
   <!-- DataTables -->
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
  
  <!-- select2 style -->
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/bower_components/select2/dist/css/select2.min.css">

  <!-- time picker-->
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/bower_components/bootstrap-timepicker/css/timepicker.css">
  

  <!-- iCheck -->
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/plugins/iCheck/square/blue.css">
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/plugins/sweetalert/sweet-alert.css">

  <link rel="stylesheet" href="<?= base_url()?>assets/admin/plugins/cropper/cropper.css">

  <link rel="stylesheet" href="<?= base_url()?>assets/admin/plugins/animate.css">

  <link rel="stylesheet" href="<?= base_url()?>assets/plugins/loader.css">


  <!-- chosen -->
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/plugins/chosen/chosen.css">



  <!-- Date Picker -->
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
  <!-- Daterange picker -->
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/bower_components/bootstrap-daterangepicker/daterangepicker.css">
  
  

  <link rel="stylesheet" href="<?= base_url()?>assets/admin/plugins/summernote/summernote-bs4.css">
  
  <!-- Daterange picker -->
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/datetime/datetimepicker.css">

    <!-- bootstrap-colorpicker-->
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/bower_components/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css">
  
  <!-- uploader -->
  
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/2.8.0/css/flag-icon.min.css"/>
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/plugins/iconpicker/bootstrap-iconpicker.css">
  
  <link rel="stylesheet" href="<?= base_url()?>assets/admin/uploader/uploadify.css">

  <link rel="stylesheet" href="<?= base_url()?>assets/admin/test.css?v=<?= $settings['version'] ;?>&t=<?= time() ;?>">
  <?php if(direction()=='rtl'): ?>
    <link rel="stylesheet" href="<?= base_url()?>assets/css/custom_rtl.css?v=<?= $settings['version'] ;?>&t=<?= time() ;?>">
  <?php endif ?>

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
<?php if(isset($settings) && !empty($settings['g_font_name'])): ?>
  <!-- Google Font -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=<?= $settings['g_font_name'];?>:300,400,600,700,300italic,400italic,600italic">
  <style>
    body, a, span, p{
      font-family: '<?= $settings['g_font_name']; ;?>','sans-serif'!important;
    }
    .main-header .sidebar-toggle, .fa{
      font-family: fontAwesome!important;
    }
    .far, .fas {
        font-family: "Font Awesome 5 Free"!important;
    }
  </style>
<?php else: ?>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
<?php endif ?>

  <?php if(isset($settings) && !empty($settings['custom_css'])): ?>
  <style>
    <?= $settings['custom_css'];?>
  </style>
<?php endif ?>
<!-- custom css -->



  <script src='https://www.google.com/recaptcha/api.js'></script>
</head>
<body class="hold-transition skin-black-light sidebar-mini">
<?php if (isset($page_title) && $page_title =="Login" || $page_title =="Registration") {?>
<div class="wrapper" style="background: #d2d6de;">
<?php }else{ ?>
  <div class="wrapper">
<?php } ?>