<?php $__env->startSection('title'); ?>
    Tasks
<?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://rawgit.com/fronteed/iCheck/1.x/skins/all.css">
    <link rel="stylesheet" href="<?php echo e(asset('assets/style/css/quill.snow.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 class="page__heading">Tasks</h3>
                <div class="filter-container">
                    <div class="mr-2">
                        <label class="lbl-block"><b>Assign To</b></label>
                        <?php echo Form::select('drp_users',$assignees,Auth::id(),['id'=>'filter_user','class'=>'form-control','style'=>'min-width:150px;', 'placeholder' => 'All']); ?>

                    </div>
                    <div class="mr-2">
                        <label class="lbl-block"><b>Project</b></label>
                        <?php echo Form::select('drp_project',$projects,null,['id'=>'filter_project','class'=>'form-control','style'=>'min-width:150px;', 'placeholder' => 'All']); ?>

                    </div>
                    <div class="mr-2">
                        <label class="lbl-block"><b>Due Date</b></label>
                        <?php echo Form::text('due_date_filter', null, ['id'=>'dueDateFilter','class' => 'form-control', 'autocomplete' => 'off','style'=>'min-width:150px;','placeholder' => 'Enter Date']); ?>

                    </div>
                    <div class="mr-2">
                        <label class="lbl-block"><b>Status</b></label>
                        <?php echo Form::select('drp_status',$status,0,['id'=>'filter_status','class'=>'form-control','style'=>'min-width:150px;']); ?>

                    </div>
                    <a href="#" class="btn btn-primary filter-container__btn" data-toggle="modal"
                       data-target="#AddModal"></i>New
                        Task</a>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="card">
                        <div class="card-body">
                            <?php echo $__env->make('tasks.table', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            <div class="pull-right mr-3">

                            </div>
                        </div>
                        <?php echo $__env->make('tasks.modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <?php echo $__env->make('tasks.edit_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <?php echo $__env->make('tasks.task_details', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <?php echo $__env->make('time_entries.modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <?php echo $__env->make('time_entries.edit_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page_js'); ?>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/iCheck/1.0.2/icheck.min.js"></script>
    <script src="<?php echo e(asset('assets/js/quill.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 taskIndexUrl = '<?php echo e(route('tasks.index')); ?>';
        let taskUrl = '<?php echo e(url('tasks')); ?>/';
        let taskDetailUrl = '<?php echo e(url('task-details')); ?>';
        let createTaskUrl = '<?php echo e(route('tasks.store')); ?>';
        let timeEntryUrl = "<?php echo e(url('time-entries')); ?>/";
        let getTaskUrl = "<?php echo e(url('get-tasks')); ?>/";
        let projectsURL = "<?php echo e(url('projects')); ?>/";
        let taskStatusJson = '<?php echo json_encode($taskStatus); ?>';
        let taskStatus = $.parseJSON(taskStatusJson);
        let taskBadgesJson = '<?php echo json_encode($taskBadges); ?>';
        let taskBadges = $.parseJSON(taskBadgesJson);
        let taskDetailActionColumnIsVisible = true;
        let reportStartDate = '';
        let reportEndDate = '';
        let usersOfProjects = "<?php echo e(url('users-of-projects')); ?>";
        let canManageEntries = "<?php echo e((Auth::user()->can('manage_time_entries')) ? true : false); ?>";
        let currentLoggedInUserId = "<?php echo e(getLoggedInUserId()); ?>";
    </script>
    <script src="<?php echo e(mix('assets/js/task/task.js')); ?>"></script>
    <script src="<?php echo e(mix('assets/js/task/task_time_entry.js')); ?>"></script>
    <script src="<?php echo e(mix('assets/js/time_entries/time_entry.js')); ?>"></script>
<?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/tasks/index.blade.php ENDPATH**/ ?>