<?php
/*
 * *************************************************
 * Copyright (C) 2020 Earworks.                    *
 * Codeigniter Project Template Modification       *
 * Please contact our email for more information : *
 * contact@earworks.co.id                          *
 * *************************************************
 */
defined('BASEPATH') OR exit('No direct script access allowed');
Ci::helper('message');
$sess = $this->session->userdata(TOKEN_SESSION_BACKOFFICE);
$login_name = isset($sess['user']) ? $sess['user']['profile']['name'] : '-';
$ver = VERSION;
?>
<!doctype html>
<html>
       <head>
              <meta charset="UTF-8">
              <title><?= $title ?></title>
              <meta name="description" content="<?= APPLICATION_TITLE ?> Backoffice">
              <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
              <?= $render_meta ?>
              <!-- icon -->
              <link rel="apple-touch-icon" sizes="57x57" href="<?= base_url("img/icon/apple-icon-57x57.png?v=$ver") ?>">
              <link rel="apple-touch-icon" sizes="60x60" href="<?= base_url("img/icon/apple-icon-60x60.png?v=$ver") ?>">
              <link rel="apple-touch-icon" sizes="72x72" href="<?= base_url("img/icon/apple-icon-72x72.png?v=$ver") ?>">
              <link rel="apple-touch-icon" sizes="76x76" href="<?= base_url("img/icon/apple-icon-76x76.png?v=$ver") ?>">
              <link rel="apple-touch-icon" sizes="114x114" href="<?= base_url("img/icon/apple-icon-114x114.png?v=$ver") ?>">
              <link rel="apple-touch-icon" sizes="120x120" href="<?= base_url("img/icon/apple-icon-120x120.png?v=$ver") ?>">
              <link rel="apple-touch-icon" sizes="144x144" href="<?= base_url("img/icon/apple-icon-144x144.png?v=$ver") ?>">
              <link rel="apple-touch-icon" sizes="152x152" href="<?= base_url("img/icon/apple-icon-152x152.png?v=$ver") ?>">
              <link rel="apple-touch-icon" sizes="180x180" href="<?= base_url("img/icon/apple-icon-180x180.png?v=$ver") ?>">
              <link rel="icon" type="image/png" sizes="192x192"  href="<?= base_url("img/icon/android-icon-192x192.png?v=$ver") ?>">
              <link rel="icon" type="image/png" sizes="32x32" href="<?= base_url("img/icon/favicon-32x32.png?v=$ver") ?>">
              <link rel="icon" type="image/png" sizes="96x96" href="<?= base_url("img/icon/favicon-96x96.png?v=$ver") ?>">
              <link rel="icon" type="image/png" sizes="16x16" href="<?= base_url("img/icon/favicon-16x16.png?v=$ver") ?>">
              <link rel="manifest" href="<?= base_url("img/icon/manifest.json?v=$ver") ?>">
              <meta name="msapplication-TileColor" content="#ffffff">
              <meta name="msapplication-TileImage" content="<?= base_url("img/icon/ms-icon-144x144.png?v=$ver") ?>">
              <meta name="theme-color" content="#ffffff">
              <!-- end icon -->
              <!-- BEGIN PAGE FIRST SCRIPTS -->
              <!--<script src="<?= base_url("../plugins/pace/pace.min.js") ?>" type="text/javascript"></script>-->
              <!-- END PAGE FIRST SCRIPTS -->
              <!-- BEGIN PAGE TOP STYLES -->
              <!--<link href="<?= base_url("../plugins/pace/themes/pace-theme-flash.css") ?>" rel="stylesheet" type="text/css" />-->
              <!-- END PAGE TOP STYLES -->
              <!-- BEGIN GLOBAL MANDATORY STYLES -->
              <link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" />
              <link type="text/css" rel="stylesheet" href="<?= base_url("../plugins/font-awesome/css/font-awesome.css") ?>" />
              <link type="text/css" rel="stylesheet" href="<?= base_url("../plugins/bootstrap/css/bootstrap.css") ?>" />

<!--<link type="text/css" rel="stylesheet" href="<?= base_url('assets/catering/css/fonts.css') ?>" />-->
        <!--<link type="text/css" rel="stylesheet" href="<?= base_url("../plugins/simple-line-icons/simple-line-icons.min.css") ?>" />-->
       <!--<link type="text/css" rel="stylesheet" href="<?= base_url("../plugins/bootstrap-switch/css/bootstrap-switch.min.css") ?>" />-->
              <!-- END GLOBAL MANDATORY STYLES -->
              <!-- BEGIN PAGE LEVEL PLUGINS -->
              <?= $render_css_plugin ?>
              <!-- END PAGE LEVEL PLUGINS -->
              <!-- BEGIN THEME GLOBAL STYLES -->
              <link type="text/css" rel="stylesheet" href="<?= base_url("../plugins/metronic/css/components.min.css") ?>" />
              <link type="text/css" rel="stylesheet" href="<?= base_url("../plugins/metronic/css/plugins.min.css") ?>" />
              <!-- END THEME GLOBAL STYLES -->
              <!-- BEGIN THEME LAYOUT STYLES -->
              <link type="text/css" rel="stylesheet" href="<?= base_url("../plugins/metronic/css/layout.min.css") ?>" />
              <link type="text/css" rel="stylesheet" href="<?= base_url("../plugins/metronic/css/darkblue.min.css") ?>" />
              <!-- END THEME LAYOUT STYLES -->
              <!-- BEGIN SPECIAL GLOBAL STYLES -->
              <link type="text/css" rel="stylesheet" href="<?= base_url("css/style.css?v=" . $ver) ?>" />
              <!-- END SPECIAL GLOBAL STYLES -->
              <!-- BEGIN SPECIAL PAGE STYLES -->
              <?= $render_css ?>
              <!-- END SPECIAL PAGE STYLES -->
       </head>
       <body class="page-header-fixed page-sidebar-closed-hide-logo page-container-bg-solid page-content-white">
              <div class="page-wrapper">
                     <?= Ci::partials('layouts/header', ['login_name' => $login_name]) ?>
                     <!-- BEGIN HEADER & CONTENT DIVIDER -->
                     <div class="clearfix"> </div>
                     <!-- END HEADER & CONTENT DIVIDER -->
                     <!-- BEGIN CONTAINER -->
                     <div class="page-container">
                            <?= Ci::partials('layouts/sidebar', ['sess' => $sess]) ?>
                            <!-- BEGIN CONTENT -->
                            <div class="page-content-wrapper">
                                   <!-- BEGIN CONTENT BODY -->
                                   <div class="page-content">
                                          <!-- BEGIN PAGE HEADER-->
                                          <!-- BEGIN PAGE BAR -->
                                          <div class="page-bar">
                                                 <ul class="page-breadcrumb">
                                                        <li>
                                                               <a href="<?= base_url() ?>">
                                                                      <?= lang('home'); ?>
                                                               </a>

                                                        </li>
                                                        <?php foreach ($render_maps as $map) : ?>
                                                               <li>
                                                                      <i class="fa fa-circle"></i>
                                                                      <?php if ($map['url']) : ?>
                                                                             <?= anchor($map['url'], $map['title']) ?>
                                                                      <?php else : ?>
                                                                             <span><?= $map['title'] ?></span>
                                                                      <?php endif; ?>
                                                               </li>
                                                        <?php endforeach; ?>
                                                 </ul>
                                          </div>
                                          <!-- END PAGE BAR -->
                                          <div class="message-wrapper">
                                                 <?= implode('', show_message()) ?>
                                          </div>
                                          <!-- BEGIN PAGE TITLE-->
                                          <h1 class="page-title"> 
                                                 <?php //echo $title ?>
                                          </h1>
                                          <!-- END PAGE TITLE-->
                                          <!-- END PAGE HEADER-->
                                          <div class="page-data">
                                                 <?= $content ?>

                                          </div>
                                   </div>
                                   <!-- END CONTENT BODY -->
                            </div>
                            <!-- END CONTENT -->
                            <?php //echo $this->load->view(__ . 'layout/quick_sidebar', $defined_vars, true) ?>
                     </div>
                     <!-- END CONTAINER -->
                     <?= Ci::partials('layouts/footer') ?>

              </div>

              <!-- BEGIN CORE PLUGINS -->
              <script src="<?= base_url("../plugins/jquery/jquery-1.12.4.min.js") ?>"></script>
              <script src="<?= base_url("../plugins/bootstrap/js/bootstrap.min.js") ?>"></script>
              <script src="<?= base_url("../plugins/pace/pace.min.js") ?>"></script>
              <script src="<?= base_url("../plugins/metronic/js/js.cookie.min.js") ?>"></script>
      <!--        <script src="<?= base_url("../plugins/jquery-slimscroll/jquery.slimscroll.min.js") ?>"></script>
              <script src="<?= base_url("assets/catering/js/jquery.blockui.min.js") ?>"></script>
              <script src="<?= base_url("../plugins/bootstrap-switch/js/bootstrap-switch.min.js") ?>"></script>-->
              <!-- END CORE PLUGINS -->
              <!-- Start Load JS Plugins-->
              <?= $render_js_plugin ?>
              <!-- End Load JS Plugins -->
              <!-- BEGIN THEME LAYOUT SCRIPTS -->
              <script src="<?= base_url("../plugins/metronic/js/app.min.js") ?>"></script>
              <script src="<?= base_url("../plugins/metronic/js/layout.min.js") ?>"></script>
              <script src="<?= base_url("../plugins/metronic/js/demo.min.js") ?>"></script>
              <script src="<?= base_url("../plugins/metronic/js/quick-sidebar.min.js") ?>"></script>
              <script src="<?= base_url("../plugins/metronic/js/quick-nav.min.js") ?>"></script>
              <!-- Start Load Custom JS -->
              <script type="text/javascript" src="<?= base_url("js/script.js?v=" . $ver) ?>"></script>
              <!-- End Load  CUstom JS -->
              <?= $render_js ?>
              <div id="metronic-modal" class="modal fade" role="dialog">
                     <div class="modal-dialog">

                            <!-- Modal content-->
                            <div class="modal-content">
                                   <div class="modal-header">
                                          <button type="button" class="close" data-dismiss="modal">&times;</button>
                                          <h4 class="modal-title" id="modal-title"></h4>
                                   </div>
                                   <div class="modal-body" id="modal-body">
                                          <div class="loadingio">
                                                 <div class="loadingio-spinner-dual-ring-6tlihebqrnr">
                                                        <div class="ldio-n3ie7x8tqo">
                                                               <div></div>
                                                               <div></div>
                                                        </div>
                                                 </div>
                                          </div>
                                   </div>
                            </div>

                     </div>
              </div>
       </body>
</html>