<?php

/**
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @since         0.10.0
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */
//$cakeDescription = 'CakePHP: the rapid development php framework';
?>
<!DOCTYPE html>
<html>

<head>
    <style type="text/css">
        .pull-right {
            float: right !important;
        }

        .error {
            color: red;
        }

        /* width */
        ::-webkit-scrollbar {
            width: 5px;
        }

        /* Track */
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        /* Handle */
        ::-webkit-scrollbar-thumb {
            background: #c6c9cc;
        }

        /* Handle on hover */
        ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        li.select2-selection__choice {
            background-color: #5b6b7b !important;
        }
    </style>
    <?= $this->Html->charset() ?>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>

        <?= $this->fetch('title') ?>
    </title>
    <?= $this->Html->meta('icon') ?>

    <!--  <?= $this->Html->css('base.css') ?>
    <?= $this->Html->css('cake.css') ?> -->
    <?= $this->Html->css('style.css') ?>
    <?= $this->Html->css('daterangepicker.css') ?>
    <?= $this->Html->css('plugins/PNotifyBrightTheme.css') ?>
    <?= $this->Html->css('plugins/css-stars.css') ?>
    <?= $this->Html->css('plugins/dropzone.min.css') ?>
    <?= $this->Html->css('select2.min.css') ?>
    <?= $this->Html->css('flatpickr.min.css') ?>
    <?= $this->Html->script('vendor-all.min.js') ?>
    <?= $this->Html->script('plugins/bootstrap.min.js') ?>
    <?= $this->Html->script('pcoded.min.js') ?>
    <?= $this->Html->script('menu-setting.min.js') ?>
    <?= $this->Html->script('plugins/apexcharts.min.js') ?>
    <?= $this->Html->script('plugins/dropzone-amd-module.min.js') ?>
    <?= $this->Html->script('pages/dashboard-main.js') ?>
    <?= $this->Html->script('plugins/PNotify.js') ?>
    <?= $this->Html->script('plugins/jquery.dataTables.min.js') ?>
    <?= $this->Html->script('form-select-custom.js') ?>
    <?= $this->Html->script('select2.full.min.js') ?>
    <?= $this->Html->script('flatpickr.js') ?>
    <?= $this->fetch('meta') ?>
    <?= $this->fetch('css') ?>
    <?= $this->fetch('script') ?>
</head>

<body>
    <style>
        #styleSelector {
            display: none;
        }

        /* pagination */
        .pagination>li.prev.disabled,
        .pagination>li.next.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .pagination>li.active a {
            background: #409aff;
            color: white;
            pointer-events: none;
        }

        .pagination>li>a {
            color: #428BCA;
            position: relative;
            padding: 6px 12px;
            text-decoration: none;
            border: 1px solid #dddddd;
            background-color: #ffffff;
            border-color: #dddddd;
        }
    </style>
    <nav class="top-bar expanded" data-topbar role="navigation">
        <!-- <ul class="title-area large-3 medium-4 columns">
            <li class="name">
                <h1><a href=""><?= $this->fetch('title') ?></a></h1>
            </li>
        </ul> -->
        <!-- <div class="top-bar-section">
            <ul class="right">
                <li><a target="_blank" href="http://book.cakephp.org/3.0/">Documentation</a></li>
                <li><a target="_blank" href="http://api.cakephp.org/3.0/">API</a></li>
            </ul>
        </div> -->
    </nav>

    <div class="<?php if (!isset($_SESSION['Auth']['User']['id'])) {
                    echo 'auth-wrapper';
                } else {
                    echo 'pcoded-main-container1';
                } ?>">
        <div class="auth-content">
            <?php if (isset($_SESSION['Auth']['User']['id'])) {
                echo  $this->element('header');
            } ?>
            <?= $this->fetch('content') ?>
            <?= $this->Html->script('moment.min.js') ?>
            <?= $this->Html->script('daterangepicker.js') ?>
            <?= $this->Html->script('ac-datepicker.js') ?>
            <?php if (isset($_SESSION['Auth']['User']['id'])) {
                echo  $this->element('footer');
            } ?>
        </div>
    </div>
    <footer>
        <?php //dd($userright_arr[0]->delete_r) ?>
        <?= $this->Flash->render(); ?>
        <?= $this->Html->script('custom.js') ?>
        <script>
            const deletePermission = '<?= @$userright_arr[0]->delete_r ?>';
            if (deletePermission ==0) {
                // alert('pradeep');
                $('.delete-User-permissions').remove();
            }
        </script>
    </footer>
</body>

</html>