<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width">
        <title><?php echo $title_for_layout; ?> | <?php echo Configure::read('Site.title'); ?></title>
        <?php
        echo $this->Html->css(array(
            'bootstrap',
            'bootswatch.min',
            'custom',
            '/croogo/css/thickbox',
        ));
        echo $this->Layout->js();
        echo $this->Html->script(array(
            '/croogo/js/jquery/jquery.min',
            '/croogo/js/jquery/jquery-ui.min',
            'bootstrap.min.js',
            'theme.js',
            'https://d3js.org/d3.v4.min.js',
            'd3.dependencyWheel.js',
            'd3-sankey.js',
            'svgexport.js',
            'https://cdn.jsdelivr.net/npm/clipboard@1/dist/clipboard.min.js'
        ));

        echo $this->fetch('script');
        echo $this->fetch('css');
        ?>
    </head>
    <body id="top">
<?php echo $this->element('header'); ?>
        <div class="container body">

            <div class="page-header" id="banner">
                <div class="row">
                    <div class="col-lg-12 col-md-12">
                        <h1><?php echo Configure::read('Site.title'); ?></h1>
                        <p class="lead"><?php echo Configure::read('Site.tagline'); ?></p>
                    </div>
                </div>
            </div>

            <div class="row">
                <div id="inner-content" class="col-lg-12">

<?php echo $this->Layout->sessionFlash(); ?>
                    <?php
                    if ($this->Regions->blocks('region1')) {
                        echo $this->Regions->blocks('region1');
                    }
                    ?>
                    <?php echo $this->fetch('content'); ?>
                </div>
            </div>	



<?php echo $this->element('footer'); ?>
        </div>

        <script type="text/javascript">

            $(document).ready(function () {

                $("#promo_discount").load("<?php echo $this->base; ?>/promo_discount");

            });

        </script>


<?php
echo $this->Blocks->get('scriptBottom');
echo $this->Js->writeBuffer();
?>
    </body>
</html>