<?php $__env->startSection('title'); ?>
    Dashboard
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_css'); ?>
    <link rel="stylesheet"
          href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-daterangepicker/2.1.24/daterangepicker.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.css">
    <link rel="stylesheet" href="<?php echo e(mix('assets/style/css/dashboard.css')); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="container-fluid">
        <div class="animated fadeIn">
            <?php echo $__env->make('flash::message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <div class="page-header">
                <h3>Dashboard</h3>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="card">
                        <div class="card-body">
                            <div class="row">
                                <div class="col-8">
                                    <h5>Custom Report</h5>
                                </div>
                                <div class="col-4">
                                    <div class="row">
                                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manage_users')): ?>
                                        <div class="col-4 offset-2">
                                            <?php echo Form::select('users', $users, Auth::id(), ['id' => 'userId','class'=>'user_filter_dropdown']); ?>

                                        </div>
                                        <?php endif; ?>
                                        <div class="<?php if(Auth::user()->can('manage_users')): ?> col-6 <?php else: ?> col-6 offset-6 <?php endif; ?>">
                                            <div id="time_range" class="time_range">
                                                <i class="far fa-calendar-alt"
                                                   aria-hidden="true"></i>&nbsp;&nbsp;<span></span> <b
                                                    class="caret"></b>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div id="work-report-container" class="pt-2">
                                <canvas id="daily-work-report"></canvas>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manage_users')): ?>
                <div class="row">
                    <div class="col-lg-12">
                        <div class="card">
                            <div class="card-body">
                                <div class="page-header">
                                    <h5>Daily Work Report</h5>
                                    <div id="rightData">
                                        <div id="developers-report-date-picker" class="time_range">
                                            <i class="far fa-calendar-alt" aria-hidden="true"></i>&nbsp;&nbsp;
                                            <span></span> <b class="caret"></b>
                                        </div>
                                    </div>
                                </div>
                                <div id="developers-daily-work-report-container" class="pt-2">
                                    <canvas id="developers-daily-work-report"></canvas>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-12">
                        <div class="card">
                            <div class="card-body">
                                <div class="page-header">
                                    <h5>Open Tasks</h5>
                                </div>
                                <div id="users-open-tasks-container" class="pt-2">
                                    <canvas id="users-open-tasks"></canvas>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            <?php endif; ?>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_js'); ?>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-daterangepicker/2.1.24/daterangepicker.js"></script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
    <script>
        let userReportUrl = "<?php echo e(route('users-work-report')); ?>";
        let userDeveloperReportUrl = "<?php echo e(route('developers-work-report')); ?>";
        let usersOpenTasksUrl = "<?php echo e(route('users-open-tasks')); ?>";
    </script>
    <script src="<?php echo e(mix('assets/js/dashboard/dashboard.js')); ?>"></script>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manage_users')): ?>
        <script src="<?php echo e(mix('assets/js/dashboard/developers-daily-report.js')); ?>"></script>
        <script src="<?php echo e(mix('assets/js/dashboard/users-open-tasks.js')); ?>"></script>
    <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/dev/Documents/WebDevProjects/infy-tracker/resources/views/dashboard/index.blade.php ENDPATH**/ ?>