<?php $__env->startSection('meta'); ?>
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('plugins-css'); ?>
    <link href="<?php echo e(asset('plugins/select2/css/select2.min.css')); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo e(asset('plugins/select2/css/select2-bootstrap.min.css')); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo e(asset('plugins/bootstrap-fileinput/bootstrap-fileinput.css')); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo e(asset('plugins/datatables/datatables.min.css')); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo e(asset('plugins/datatables/plugins/bootstrap/datatables.bootstrap.css')); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo e(asset('plugins/bootstrap-summernote/summernote.css')); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo e(asset('plugins/ladda/ladda-themeless.min.css')); ?>" rel="stylesheet" type="text/css">
    <link href="<?php echo e(asset('plugins/typeahead/typeahead.css')); ?>" rel="stylesheet" type="text/css"/>
    <link href="<?php echo e(asset('plugins/owl.carousel/dist/assets/owl.carousel.min.css')); ?>" rel="stylesheet" type="text/css"/>
    <link href="<?php echo e(asset('plugins/graphs/morris.css')); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo e(asset('plugins/bootstrap-timepicker/css/bootstrap-timepicker.css')); ?>" rel="stylesheet" type="text/css"/>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('main-css'); ?>
    
    <link href="<?php echo e(asset('css/errors/404/main.css')); ?>" rel="stylesheet" type="text/css">
    <link href="<?php echo e(asset('css/themes/' . config('constants.TEMAS')[config('constants.GENERAL.TEMA')] . '/layout.css')); ?>" rel="stylesheet" type="text/css" />
    <?php echo $__env->yieldContent('styles'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('plugins-js'); ?>
    <script src="<?php echo e(asset('plugins/js.cookie.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/datatables/datatables.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/datatables/datatables.all.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/datatables/plugins/bootstrap/datatables.bootstrap.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/select2/js/select2.full.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/select2/js/i18n/es.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/bootstrap-filestyle/bootstrap-filestyle.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/bootstrap-summernote/summernote.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/bootstrap-summernote/lang/summernote-es-ES.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/ladda/spin.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/ladda/ladda.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/bootstrap-fileinput/bootstrap-fileinput.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/typehead/typehead.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/owl.carousel/dist/owl.carousel.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/typeahead/typeahead.bundle.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/typeahead/handlebars.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/graphs/morris.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/graphs/raphael-min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/jquery.blockui.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/bootstrap-timepicker/js/bootstrap-timepicker.js')); ?>" type="text/javascript"></script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('main-js'); ?>
    <script src="<?php echo e(asset('js/layout/layout.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('js/site-methods.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('js/date.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('js/custom.js')); ?>" type="text/javascript"></script>
    <script>
        var urlMessagesUpdateList = '<?php echo e(url('messages/update/list')); ?>';
        var urlMessages = '<?php echo e(url('messages')); ?>';

        <?php if(Auth::user()): ?>
            var messagesCount = '<?php echo e(Auth::user()->newThreadsCount()); ?>' * 1;
            updateMessages(urlMessages, urlMessagesUpdateList, messagesCount);

            var urlNotificationsUpdateList = '<?php echo e(url('notifications')); ?>';
            var notificationsCount = '<?php echo e(Auth::user()->unreadNotifications->count()); ?>' * 1;
            updateNotifications(urlNotificationsUpdateList, notificationsCount);

            document.getElementById("header_notification_bar").onclick = function() {
                readNotifications('<?php echo e(url('notifications')); ?>', notificationsCount);
            }
        <?php endif; ?>
    </script>
    <?php echo $__env->yieldContent('scripts'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('body'); ?>
    <body class="page-header-fixed page-sidebar-closed-hide-logo page-container-bg-solid">
        <div class="page-wrapper" id="app">
            <div class="page-header navbar navbar-fixed-top">
                <div class="page-header-inner ">
                    <div class="page-logo">
                        <a href="<?php echo e(url('inicio')); ?>">
                            <img src="<?php echo e(asset('img/themes/' . config('constants.TEMAS')[config('constants.GENERAL.TEMA')] . '/logo-alt.png')); ?>" alt="logo" class="logo-default"/>
                        </a>
                        <div class="menu-toggler sidebar-toggler">
                            <span></span>
                        </div>
                    </div>
                    <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse">
                        <span></span>
                    </a>
                    <?php echo $__env->make('template.partials.topmenu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                </div>
            </div>
            <div class="clearfix"> </div>
            <div class="page-container">
                <div class="page-sidebar-wrapper">
                    <?php echo $__env->make('template.partials.menu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                </div>
                <div class="page-content-wrapper">
                    <div class="page-content">
                        
                            
                        
                        <?php echo $__env->yieldContent('content'); ?>
                    </div>
                </div>
            </div>
            <div class="page-footer">
                <div class="page-footer-inner"> <?php echo date("Y"); ?> &copy; <?php echo e(config('constants.SISTEMAS')[config('constants.GENERAL.SISTEMA')]); ?> por
                    <a target="_blank" href="http://www.enchufate.pe">Ench&uacute;fate</a>
                </div>
                <div class="scroll-to-top">
                    <i class="icon-arrow-up"></i>
                </div>
            </div>
        </div>
    </body>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('template.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>