<!DOCTYPE html>
<html lang="en" <?php if(Config::get('sysconfig.direction')=='rtl'): ?> dir="rtl" <?php else: ?> dir="ltr" <?php endif; ?>>

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <!-- Meta, title, CSS, favicons, etc. -->
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
        <title><?php echo e(config('app.name')); ?></title>

        <!-- Bootstrap core CSS -->

        <link href="<?php echo asset('assets/css/bootstrap.min.css'); ?>" rel="stylesheet">

        <link href="<?php echo asset('assets/fonts/css/font-awesome.min.css') ?>" rel="stylesheet">
        <link href="<?php echo asset('assets/css/animate.min.css'); ?>" rel="stylesheet">

        <!-- Custom styling plus plugins -->
        <?php if(Config::get('sysconfig.direction')=='ltr'): ?>
        <link href="<?php echo asset('assets/css/custom.css'); ?>" rel="stylesheet">
        <?php elseif(Config::get('sysconfig.direction')=='rtl'): ?>
        <link href="<?php echo asset('assets/css/custom-rtl2.css'); ?>" rel="stylesheet">
        <?php endif; ?>
    <!--    <link rel="stylesheet" type="text/css" href="<?php echo asset('assets/css/maps/jquery-jvectormap-2.0.1.css'); ?>" />-->
        <link href="<?php echo asset('assets/css/icheck/flat/green.css'); ?>" rel="stylesheet" />
        <link href="<?php echo asset('assets/css/floatexamples.css'); ?>" rel="stylesheet" type="text/css" />
        <link href="<?php echo asset('assets/css/jquery-ui.theme.css'); ?>" rel="stylesheet" type="text/css" />
        <link href="<?php echo asset('assets/css/jquery-ui.min.css'); ?>" rel="stylesheet" type="text/css" />
        <link href="<?php echo asset('assets/css/app-builder.css'); ?>" rel="stylesheet" type="text/css" />
        <script src="<?php echo asset('assets/js/jquery.min.js') ?>"></script>
        <script src="<?php echo asset('assets/js/jquery-ui.min.js') ?>"></script>
        <script type="text/javascript" src="<?php echo asset('assets/js/jquery.form.min.js'); ?>"></script>
    <!--    <script src="<?php echo asset('assets/js/nprogress.js') ?>"></script>-->
    <!--    <script>
            NProgress.start();
        </script>-->

        <!--[if lt IE 9]>
            <script src="../assets/js/ie8-responsive-file-warning.js"></script>
            <![endif]-->

        <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
              <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
              <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
            <![endif]-->
        <?php $__env->startSection('head'); ?>
        <?php echo $__env->yieldSection(); ?>
    </head>
    <body class="nav-md">

        <div class="container body">
            <div class="main_container">
                <div class="col-md-3 left_col">
                    <div class="left_col scroll-view">                    
                        <div class="clearfix"></div>

                        <!-- menu prile quick info -->
                        <div class="profile">
                            <div class="profile_pic">
                            <img src="<?php if(Auth::user()->image): ?><?php if(file_exists(public_path('photos/'.Auth::user()->image))): ?><?php echo e(asset('/photos/'.Auth::user()->image)); ?><?php else: ?><?php echo e(Auth::user()->image); ?> <?php endif; ?> <?php else: ?><?php echo e(asset('/photos/img.jpg')); ?><?php endif; ?>" alt="..." class="img-circle profile_img">
                            </div>
                            <div class="profile_info">
                                <span>Welcome,</span>
                                <h2><?php echo e(Auth::user()->name); ?></h2>
                            </div>
                        </div>
                        <!-- /menu prile quick info -->

                        <br />

                        <!-- sidebar menu -->
                        <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
                            <div class="menu_section">
                                <h3>General</h3>
                                <ul class="nav side-menu">
                                    <?php $__empty_1 = true; $__currentLoopData = $all_menu_items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menu_item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <li>
                                        <a href="<?php if($menu_item['type']=='module'): ?><?php echo route($menu_item['url']); ?> <?php else: ?> <?php echo e($menu_item['url']); ?> <?php endif; ?>"><i class="fa <?php echo e($menu_item['icon']); ?>"></i> <?php echo e($menu_item['name']); ?> 
                                            <?php if(isset($menu_item['children']) && !empty($menu_item['children'])): ?>
                                            <span class="fa fa-chevron-down"></span>
                                            <?php endif; ?>
                                        </a>
                                        <ul class="nav child_menu" style="display: none">
                                        <?php $__empty_2 = true; $__currentLoopData = $menu_item['children']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menu_item_children): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>
                                        <li><a href="<?php if($menu_item_children['type']=='module'): ?> <?php echo route($menu_item_children['url']); ?> <?php else: ?> <?php echo e($menu_item_children['url']); ?> <?php endif; ?>"> <?php echo e($menu_item_children['name']); ?></a></li>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?>
                                        <?php endif; ?>
                                        </ul>
                                    </li>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <?php endif; ?>
                                    <?php if(!empty(array_intersect(array('Invoices'), $user_permissions_names)) ): ?>
                                        <li>
                                            <a href="<?php echo e(Route('InvoicesIndex')); ?>">
                                                <i class="fa fa-area-chart"></i> Invoices
                                            </a>
                                            <ul class="nav child_menu" style="display: none;"></ul>
                                        </li>
                                    <?php endif; ?>
                                    <?php if (!empty(array_intersect(array('modulebuilder_menu','modulebuilder_modules'), $user_permissions_names)) && Config::get('sysconfig.crudbuilder')): ?>
                                    <li><a><i class="fa fa-cubes"></i><?php echo app('translator')->get('crud_builder.menu_title'); ?><span class="fa fa-chevron-down"></span></a>
                                        <ul class="nav child_menu" style="display: none">
                                            <?php if (in_array('modulebuilder_menu', $user_permissions_names)): ?>
                                            <li><a href="<?php echo Route('modulebuildermenu'); ?>"><?php echo app('translator')->get('menu.menu_title'); ?></a></li>
                                            <?php endif; ?>
                                            <?php if (in_array('modulebuilder_modules', $user_permissions_names)): ?>
                                            <li><a href="<?php echo Route('all_modules'); ?>"><?php echo app('translator')->get('modules.menu_title'); ?></a></li>
                                            <?php endif; ?>
                                        </ul>
                                    </li>
                                    <?php endif; ?>
                                    <?php if (!empty(array_intersect(array('users','roles_all','permissions'), $user_permissions_names))): ?>
                                    <li><a><i class="fa fa-users"></i> <?php echo app('translator')->get('manage_users.menu_title'); ?> <span class="fa fa-chevron-down"></span></a>
                                        <ul class="nav child_menu" style="display: none">
                                            <?php if (in_array('user_all', $user_permissions_names)): ?>
                                                <li><a href="<?php echo Route('users'); ?>"><?php echo app('translator')->get('users.menu_title'); ?></a></li>
                                            <?php endif; ?>
                                            <?php if (in_array('roles_all', $user_permissions_names)): ?>
                                                <li><a href="<?php echo Route('roles'); ?>"><?php echo app('translator')->get('roles.menu_title'); ?></a></li>
                                            <?php endif; ?>
                                            <?php if (in_array('permissions_all', $user_permissions_names)): ?>
                                                <li><a href="<?php echo Route('permissions'); ?>"><?php echo app('translator')->get('permissions.menu_title'); ?></a></li>
                                            <?php endif; ?>      
                                        </ul>
                                    </li>
                                    <?php endif; ?>
                                    <?php if (!empty(array_intersect(array('filemanager'), $user_permissions_names)) && Config::get('sysconfig.filemanager')): ?>
                                        <li><a><i class="fa fa-file-o"></i> <?php echo app('translator')->get('file_manager.menu_title'); ?> <span class="fa fa-chevron-down"></span></a>
                                            <ul class="nav child_menu" style="display: none">
                                                <?php if (in_array('filemanager', $user_permissions_names)): ?>
                                                <li><a href="<?php echo url('laravel-filemanager'); ?>?type=Files">File Manager</a></li>
                                                <?php endif; ?>    
                                            </ul>
                                        </li>
                                    <?php endif; ?>
                                    <?php if (!empty(array_intersect(array('user_profile'), $user_permissions_names))): ?>        
                                    <li><a><i class="fa fa-user-circle"></i> <?php echo app('translator')->get('account_settings.menu_title'); ?> <span class="fa fa-chevron-down"></span></a>
                                        <ul class="nav child_menu" style="display: none">
                                            <?php if (in_array('user_profile', $user_permissions_names)): ?>
                                                <li><a href="<?php echo Route('userprofile'); ?>"><?php echo app('translator')->get('user_profile.menu_title'); ?></a></li>
                                            <?php endif; ?>
                                            <?php if (in_array('general_settings_all', $user_permissions_names)): ?>
                                                <li><a href="<?php echo Route('general-settings'); ?>"><?php echo app('translator')->get('general_settings.menu_title'); ?></a></li>
                                            <?php endif; ?>
                                            <?php if (in_array('translation-manager', $user_permissions_names)): ?>
                                                <li><a href="<?php echo url('translations'); ?>"><?php echo app('translator')->get('translations.menu_title'); ?></a></li>
                                            <?php endif; ?>    
                                        </ul>
                                    </li>
                                    <?php endif; ?>
                                </ul>
                            </div>

                        </div>
                        <!-- /sidebar menu -->

                        <!-- /menu footer buttons -->
                        <div class="sidebar-footer hidden-small">
                            <a  data-toggle="tooltip" data-placement="top" title="Settings" href="<?php echo e(route('general-settings')); ?>">
                                <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
                            </a>
                            <a class="fullscreen" data-toggle="tooltip" data-placement="top" title="FullScreen" onclick="openFullscreen()">
                                <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
                            </a>
                            <a class="fullscreen-exit" data-toggle="tooltip" data-placement="top" title="FullScreenExit" onclick="closeFullscreen()" style="display: none">
                                <span class="glyphicon glyphicon-resize-small" aria-hidden="true"></span>
                            </a>
                            <a data-toggle="tooltip" data-placement="top" title="Lock">
                                <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
                            </a>
                            <a data-toggle="tooltip" data-placement="top" title="Logout" href="<?php echo e(Route('logout')); ?>">
                                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
                            </a>
                        </div>
                        <!-- /menu footer buttons -->
                    </div>
                </div>

                <!-- top navigation -->
                <div class="top_nav">

                    <div class="nav_menu">
                        <nav class="" role="navigation">
                            <div class="nav toggle">
                                <a id="menu_toggle"><i class="fa fa-bars"></i></a>
                            </div>

                            <ul class="nav navbar-nav navbar-right">
                                <li class="">
                                    <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                        <img src="<?php echo asset('assets/images/img.jpg'); ?>" alt=""><?php echo session('name'); ?>
                                        <span class=" fa fa-angle-down"></span>
                                    </a>
                                    <ul class="dropdown-menu dropdown-usermenu animated fadeInDown pull-right">
                                        <?php if (in_array('user-profile-view', $user_permissions_names)): ?>
                                        <li><a href="<?php echo e(route('userprofile')); ?>">  Profile</a></li>
                                        <?php endif; ?>
                                        <li><a href="<?php echo Route('logout'); ?>"><i class="fa fa-sign-out pull-right"></i> Log Out</a>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </nav>
                    </div>

                </div>
                <!-- /top navigation -->


                <!-- page content -->
                <div class="right_col" role="main">
                    <?php $__env->startSection('content'); ?>
                    This is the master content.
                    <?php echo $__env->yieldSection(); ?>
                </div>
                <!-- /page content -->
            </div>

        </div>

        <div id="custom_notifications" class="custom-notifications dsp_none">
            <ul class="list-unstyled notifications clearfix" data-tabbed_notifications="notif-group">
            </ul>
            <div class="clearfix"></div>
            <div id="notif-group" class="tabbed_notifications"></div>
        </div>

        <script src="<?php echo asset('assets/js/bootstrap.min.js') ?>"></script>

        <!-- gauge js -->
    <!--    <script type="text/javascript" src="<?php echo asset('assets/js/gauge/gauge.min.js') ?>"></script>
        <script type="text/javascript" src="<?php echo asset('assets/js/gauge/gauge_demo.js') ?>"></script>-->
        <!-- chart js -->
    <!--    <script src="<?php echo asset('assets/js/chartjs/chart.min.js') ?>"></script>-->
        <!-- bootstrap progress js -->
        <script src="<?php echo asset('assets/js/progressbar/bootstrap-progressbar.min.js') ?>"></script>
        <script src="<?php echo asset('assets/js/nicescroll/jquery.nicescroll.min.js') ?>"></script>
        <!-- icheck -->
        <script src="<?php echo asset('assets/js/icheck/icheck.min.js') ?>"></script>
        <!-- daterangepicker -->
        <script type="text/javascript" src="<?php echo asset('assets/js/moment.min.js'); ?>"></script>
        <script type="text/javascript" src="<?php echo asset('assets/js/datepicker/daterangepicker.js'); ?>"></script>

        <script src="<?php echo asset('assets/js/custom.js'); ?>"></script>

        <!-- flot js -->
        <!--[if lte IE 8]><script type="text/javascript" src="js/excanvas.min.js"></script><![endif]-->
        <script type="text/javascript" src="<?php echo asset('assets/js/flot/jquery.flot.js') ?>"></script>
        <script type="text/javascript" src="<?php echo asset('assets/js/flot/jquery.flot.pie.js') ?>"></script>
        <script type="text/javascript" src="<?php echo asset('assets/js/flot/jquery.flot.orderBars.js') ?>"></script>
        <script type="text/javascript" src="<?php echo asset('assets/js/flot/jquery.flot.time.min.js') ?>"></script>
        <script type="text/javascript" src="<?php echo asset('assets/js/flot/date.js') ?>"></script>
        <script type="text/javascript" src="<?php echo asset('assets/js/flot/jquery.flot.spline.js') ?>"></script>
        <script type="text/javascript" src="<?php echo asset('assets/js/flot/jquery.flot.stack.js') ?>"></script>
        <script type="text/javascript" src="<?php echo asset('assets/js/flot/curvedLines.js') ?>"></script>
        <script type="text/javascript" src="<?php echo asset('assets/js/flot/jquery.flot.resize.js') ?>"></script>
        <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
        <script>
$(document).ready(function () {
    // [17, 74, 6, 39, 20, 85, 7]
    //[82, 23, 66, 9, 99, 6, 2]
    var data1 = [[gd(2012, 1, 1), 17], [gd(2012, 1, 2), 74], [gd(2012, 1, 3), 6], [gd(2012, 1, 4), 39], [gd(2012, 1, 5), 20], [gd(2012, 1, 6), 85], [gd(2012, 1, 7), 7]];

    var data2 = [[gd(2012, 1, 1), 82], [gd(2012, 1, 2), 23], [gd(2012, 1, 3), 66], [gd(2012, 1, 4), 9], [gd(2012, 1, 5), 119], [gd(2012, 1, 6), 6], [gd(2012, 1, 7), 9]];
    $("#canvas_dahs").length && $.plot($("#canvas_dahs"), [
        data1, data2
    ], {
        series: {
            lines: {
                show: false,
                fill: true
            },
            splines: {
                show: true,
                tension: 0.4,
                lineWidth: 1,
                fill: 0.4
            },
            points: {
                radius: 0,
                show: true
            },
            shadowSize: 2
        },
        grid: {
            verticalLines: true,
            hoverable: true,
            clickable: true,
            tickColor: "#d5d5d5",
            borderWidth: 1,
            color: '#fff'
        },
        colors: ["rgba(38, 185, 154, 0.38)", "rgba(3, 88, 106, 0.38)"],
        xaxis: {
            tickColor: "rgba(51, 51, 51, 0.06)",
            mode: "time",
            tickSize: [1, "day"],
            //tickLength: 10,
            axisLabel: "Date",
            axisLabelUseCanvas: true,
            axisLabelFontSizePixels: 12,
            axisLabelFontFamily: 'Verdana, Arial',
            axisLabelPadding: 10
                    //mode: "time", timeformat: "%m/%d/%y", minTickSize: [1, "day"]
        },
        yaxis: {
            ticks: 8,
            tickColor: "rgba(51, 51, 51, 0.06)",
        },
        tooltip: false
    });

    function gd(year, month, day) {
        return new Date(year, month - 1, day).getTime();
    }
});
        </script>

        <!-- worldmap -->
    <!--    <script type="text/javascript" src="<?php echo asset('assets/js/maps/jquery-jvectormap-2.0.1.min.js'); ?>"></script>
        <script type="text/javascript" src="<?php echo asset('assets/js/maps/gdp-data.js'); ?>"></script>
        <script type="text/javascript" src="<?php echo asset('assets/js/maps/jquery-jvectormap-world-mill-en.js'); ?>"></script>
        <script type="text/javascript" src="<?php echo asset('assets/js/maps/jquery-jvectormap-us-aea-en.js'); ?>"></script>-->
    <!--    <script>
            $(function () {
                $('#world-map-gdp').vectorMap({
                    map: 'world_mill_en',
                    backgroundColor: 'transparent',
                    zoomOnScroll: false,
                    series: {
                        regions: [{
                            values: gdpData,
                            scale: ['#E6F2F0', '#149B7E'],
                            normalizeFunction: 'polynomial'
                        }]
                    },
                    onRegionTipShow: function (e, el, code) {
                        el.html(el.html() + ' (GDP - ' + gdpData[code] + ')');
                    }
                });
            });
        </script>-->
        <!-- skycons -->
        <script src="<?php echo asset('assets/js/skycons/skycons.js'); ?>"></script>
        <script>
var icons = new Skycons({
    "color": "#73879C"
}),
        list = [
            "clear-day", "clear-night", "partly-cloudy-day",
            "partly-cloudy-night", "cloudy", "rain", "sleet", "snow", "wind",
            "fog"
        ],
        i;

for (i = list.length; i--; )
    icons.set(list[i], list[i]);

icons.play();
        </script>

        <!-- dashbord linegraph -->
    <!--    <script>
            var doughnutData = [
                {
                    value: 30,
                    color: "#455C73"
                },
                {
                    value: 30,
                    color: "#9B59B6"
                },
                {
                    value: 60,
                    color: "#BDC3C7"
                },
                {
                    value: 100,
                    color: "#26B99A"
                },
                {
                    value: 120,
                    color: "#3498DB"
                }
        ];
            var myDoughnut = new Chart(document.getElementById("canvas1").getContext("2d")).Doughnut(doughnutData);
        </script>-->
        <!-- /dashbord linegraph -->
        <!-- datepicker -->
        <script type="text/javascript">
            $(document).ready(function () {

                var cb = function (start, end, label) {
                    console.log(start.toISOString(), end.toISOString(), label);
                    $('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));
                    //alert("Callback has fired: [" + start.format('MMMM D, YYYY') + " to " + end.format('MMMM D, YYYY') + ", label = " + label + "]");
                }

                var optionSet1 = {
                    startDate: moment().subtract(29, 'days'),
                    endDate: moment(),
                    minDate: '01/01/2012',
                    maxDate: '12/31/2015',
                    dateLimit: {
                        days: 60
                    },
                    showDropdowns: true,
                    showWeekNumbers: true,
                    timePicker: false,
                    timePickerIncrement: 1,
                    timePicker12Hour: true,
                    ranges: {
                        'Today': [moment(), moment()],
                        'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
                        'Last 7 Days': [moment().subtract(6, 'days'), moment()],
                        'Last 30 Days': [moment().subtract(29, 'days'), moment()],
                        'This Month': [moment().startOf('month'), moment().endOf('month')],
                        'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
                    },
                    opens: 'left',
                    buttonClasses: ['btn btn-default'],
                    applyClass: 'btn-small btn-primary',
                    cancelClass: 'btn-small',
                    format: 'MM/DD/YYYY',
                    separator: ' to ',
                    locale: {
                        applyLabel: 'Submit',
                        cancelLabel: 'Clear',
                        fromLabel: 'From',
                        toLabel: 'To',
                        customRangeLabel: 'Custom',
                        daysOfWeek: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
                        monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
                        firstDay: 1
                    }
                };
                $('#reportrange span').html(moment().subtract(29, 'days').format('MMMM D, YYYY') + ' - ' + moment().format('MMMM D, YYYY'));
                $('#reportrange').daterangepicker(optionSet1, cb);
                $('#reportrange').on('show.daterangepicker', function () {
                    console.log("show event fired");
                });
                $('#reportrange').on('hide.daterangepicker', function () {
                    console.log("hide event fired");
                });
                $('#reportrange').on('apply.daterangepicker', function (ev, picker) {
                    console.log("apply event fired, start/end dates are " + picker.startDate.format('MMMM D, YYYY') + " to " + picker.endDate.format('MMMM D, YYYY'));
                });
                $('#reportrange').on('cancel.daterangepicker', function (ev, picker) {
                    console.log("cancel event fired");
                });
                $('#options1').click(function () {
                    $('#reportrange').data('daterangepicker').setOptions(optionSet1, cb);
                });
                $('#options2').click(function () {
                    $('#reportrange').data('daterangepicker').setOptions(optionSet2, cb);
                });
                $('#destroy').click(function () {
                    $('#reportrange').data('daterangepicker').remove();
                });
            });
        </script>
    <!--    <script>
            NProgress.done();
        </script>-->
        <!-- /datepicker -->
        <!-- /footer content -->

        <?php $__env->startSection('footer'); ?>
        <?php echo $__env->yieldSection(); ?>
    </body>

</html>
<?php /**PATH /var/www/html/FreshAppBuilder/resources/views/layouts/dashboardlayout.blade.php ENDPATH**/ ?>