|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/erp.theinteractive.co.in/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('page-title'); ?>
<?php echo e(__('Tasks')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('breadcrumb'); ?>
<li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>"><?php echo e(__('Dashboard')); ?></a></li>
<li class="breadcrumb-item"><a href="<?php echo e(route('projects.index')); ?>"><?php echo e(__('Project')); ?></a></li>
<li class="breadcrumb-item"><?php echo e(__('Task')); ?></li>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('action-btn'); ?>
<div class="float-end">
<a href="#" class="btn btn-primary btn-sm" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="btn-inner--icon"><i class="ti ti-filter"></i></span>
</a>
<div class="dropdown-menu dropdown-menu-right dropdown-steady" id="task_sort">
<a class="dropdown-item active" href="#" data-val="created_at-desc">
<i class="ti ti-sort-amount-down"></i><?php echo e(__('Newest')); ?>
</a>
<a class="dropdown-item" href="#" data-val="created_at-asc">
<i class="ti ti-sort-amount-up"></i><?php echo e(__('Oldest')); ?>
</a>
<a class="dropdown-item" href="#" data-val="name-asc">
<i class="ti ti-sort-alpha-down"></i><?php echo e(__('From A-Z')); ?>
</a>
<a class="dropdown-item" href="#" data-val="name-desc">
<i class="ti ti-sort-alpha-up"></i><?php echo e(__('From Z-A')); ?>
</a>
</div>
<a href="#" class="btn btn-primary btn-sm" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="btn-inner--icon"><?php echo e(__('Status')); ?></span>
</a>
<div class="dropdown-menu dropdown-menu-right task-filter-actions dropdown-steady" id="task_status">
<a class="dropdown-item filter-action filter-show-all pl-4" href="#"><?php echo e(__('Show All')); ?></a>
<hr class="my-0">
<a class="dropdown-item filter-action pl-4 active" href="#" data-val="see_my_tasks"><?php echo e(__('See My Tasks')); ?></a>
<hr class="my-0">
<?php $__currentLoopData = \App\Models\ProjectTask::$priority; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<a class="dropdown-item filter-action pl-4" href="#" data-val="<?php echo e($key); ?>"><?php echo e(__($val)); ?></a>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<hr class="my-0">
<a class="dropdown-item filter-action filter-other pl-4" href="#" data-val="due_today"><?php echo e(__('Due Today')); ?></a>
<a class="dropdown-item filter-action filter-other pl-4" href="#" data-val="over_due"><?php echo e(__('Over Due')); ?></a>
<a class="dropdown-item filter-action filter-other pl-4" href="#" data-val="starred"><?php echo e(__('Starred')); ?></a>
</div>
<?php if($view == 'grid'): ?>
<a href="<?php echo e(route('taskBoard.view', 'list')); ?>" class="btn btn-primary btn-sm" data-bs-toggle="tooltip" title="<?php echo e(__('List View')); ?>">
<span class="btn-inner--text"><i class="ti ti-list"></i><?php echo e(__('List View')); ?></span>
</a>
<?php else: ?>
<a href="<?php echo e(route('taskBoard.view', 'grid')); ?>" class="btn btn-primary btn-sm" data-bs-toggle="tooltip" title="<?php echo e(__('Grid View')); ?>">
<span class="btn-inner--text"><i class="ti ti-table"></i></span>
</a>
<?php endif; ?>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="row min-750" id="taskboard_view"></div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script-page'); ?>
<script>
// ready
$(function () {
var sort = 'created_at-desc';
var status = '';
ajaxFilterTaskView('created_at-desc', '', ['see_my_tasks']);
// when change status
$(".task-filter-actions").on('click', '.filter-action', function (e) {
if ($(this).hasClass('filter-show-all')) {
$('.filter-action').removeClass('active');
$(this).addClass('active');
} else {
$('.filter-show-all').removeClass('active');
if ($(this).hasClass('filter-other')) {
$('.filter-other').removeClass('active');
}
if ($(this).hasClass('active')) {
$(this).removeClass('active');
$(this).blur();
} else {
$(this).addClass('active');
}
}
var filterArray = [];
var url = $(this).parents('.task-filter-actions').attr('data-url');
$('div.task-filter-actions').find('.active').each(function () {
filterArray.push($(this).attr('data-val'));
});
status = filterArray;
ajaxFilterTaskView(sort, $('#task_keyword').val(), status);
});
// when change sorting order
$('#task_sort').on('click', 'a', function () {
sort = $(this).attr('data-val');
ajaxFilterTaskView(sort, $('#task_keyword').val(), status);
$('#task_sort a').removeClass('active');
$(this).addClass('active');
});
// when searching by task name
$(document).on('keyup', '#task_keyword', function () {
ajaxFilterTaskView(sort, $(this).val(), status);
});
});
// For Filter
function ajaxFilterTaskView(task_sort, keyword = '', status = '') {
var mainEle = $('#taskboard_view');
var view = '<?php echo e($view); ?>';
var data = {
view: view,
sort: task_sort,
keyword: keyword,
status: status,
}
$.ajax({
url: '<?php echo e(route('project.taskboard.view')); ?>',
data: data,
success: function (data) {
mainEle.html(data.html);
}
});
}
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/erp.theinteractive.co.in/resources/views/project_task/taskboard.blade.php ENDPATH**/ ?>