<?php
/*
 * Copyright (c) 2018 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');
/*
 * Website template
 * All content on this file will allways appear on all page
 * 
 * @var $render_css string rendered css
 * @var $render_js string rendered js
 * @var $render_meta string rendered meta
 * @var $render_maps array list of breadcrumbs map
 * @var $title string if not set will display CI_NAME constant value
 * @var $content string view content
 */
$min = (ENVIRONMENT == 'development') ? null : '.min';
$user = $this->session->userdata(CI_NAME .'log');
?>
<!DOCTYPE html>
<html lang="id">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <?php echo $render_meta ?>
        <link rel="shortcut icon" href="<?php echo base_url('assets/img/logo.png')?>" />
        <title><?php echo $title ?></title>
        <!-- END THEME GLOBAL STYLES -->
        <!-- BEGIN THEME LAYOUT STYLES -->
        <link type="text/css" rel="stylesheet" href="<?php echo base_url('assets/backoffice/css/fonts.css') ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/plugins/font-awesome/css/font-awesome" . $min . ".css") ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/plugins/simple-line-icons/simple-line-icons" . $min . ".css") ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/plugins/bootstrap/css/bootstrap" . $min . ".css") ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/plugins/bootstrap-switch/css/bootstrap-switch" . $min . ".css") ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/plugins/select2/css/select2" . $min . ".css") ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/plugins/select2/css/select2-bootstrap.min.css") ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/backoffice/css/components" . $min . ".css") ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/backoffice/css/plugins" . $min . ".css") ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/backoffice/css/login-2" . $min . ".css") ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/backoffice/css/layout" . $min . ".css") ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/backoffice/css/darkblue" . $min . ".css") ?>" />
        <!-- END THEME LAYOUT STYLES -->
        <!-- BEGIN SPECIAL CUSTOM STYLES -->
        <?php echo $render_css ?>
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/backoffice/css/style.css?v=1") ?>" />
        <!-- END SPECIAL CUSTOM STYLES -->
        <?php if(!in_array($user['roleid'], array(1,2)))  : ?>
        
        <?php endif; ?>
    </head>

    <body class="login" style="background-color: #000000;">
        <div class="page-wrapper">
        <?php echo $this->load->partials('layouts/header2', array('user' => $user)) ?>
            <div class="logo">
                <a href="<?php echo base_url("backoffice/register") ?>">
                    <img src="<?php echo base_url("assets/backoffice/img/logo-big.png") ?>" alt="" style="height: 90px; width: auto;"/> 
                </a>
            </div>
            <div class="content">
                <?php echo $content ?>
            </div>
            <?php echo $this->load->partials('layouts/quick_sidebar', array('user' => $user)) ?>
        </div>
        <!-- BEGIN CORE PLUGINS -->
        <script type="text/javascript" src="<?php echo base_url("assets/plugins/jquery/jquery.min.js") ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("assets/plugins/bootstrap/js/bootstrap" . $min . ".js") ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("assets/backoffice/js/js.cookie.min.js") ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("assets/plugins/jquery-slimscroll/jquery.slimscroll" . $min . ".js") ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("assets/backoffice/js/jquery.blockui.min.js") ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("assets/plugins/bootstrap-switch/js/bootstrap-switch" . $min . ".js") ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("assets/plugins/jquery-validation/js/jquery.validate" . $min . ".js") ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("assets/plugins/jquery-validation/js/additional-methods" . $min . ".js") ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("assets/plugins/select2/js/select2.full" . $min . ".js") ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("assets/backoffice/js/app" . $min . ".js") ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("assets/backoffice/js/script.js?v=1") ?>"></script>
        <!-- END CORE PLUGINS -->
        <!-- BEGIN THEME LAYOUT SCRIPTS -->
        <script src="<?php echo base_url("assets/backoffice/js/app" . $min . ".js") ?>"></script>
        <script src="<?php echo base_url("assets/backoffice/js/layout" . $min . ".js") ?>"></script>
        <script src="<?php echo base_url("assets/backoffice/js/demo" . $min . ".js") ?>"></script>
        <script src="<?php echo base_url("assets/backoffice/js/quick-sidebar" . $min . ".js") ?>"></script>
        <script src="<?php echo base_url("assets/backoffice/js/quick-nav" . $min . ".js") ?>"></script>
        <!-- END THEME LAYOUT SCRIPTS -->
        <script>
            var msg_emptyTable = "<?php echo $this->lang->line('datatable_emptyTable') ?>";
            var msg_info = "<?php echo $this->lang->line('datatable_info') ?>";
            var msg_infoEmpty = "<?php echo $this->lang->line('datatable_infoEmpty') ?>";
            var msg_infoFiltered = "<?php echo $this->lang->line('datatable_infoFiltered') ?>";
            var msg_lengthMenu = "<?php echo $this->lang->line('datatable_lengthMenu') ?>";
            var msg_search = "<?php echo $this->lang->line('datatable_search') ?>";
            var msg_zeroRecords = "<?php echo $this->lang->line('datatable_zeroRecords') ?>";
        </script>
        <?php echo $render_js ?>
        <script src="<?php echo base_url("assets/backoffice/js/script.js?v=1") ?>"></script>
        
    </body>
</html>
