⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
html
/
storage
/
framework
/
views
/
View File Name :
184a33aa11011578f0dca42ce40df04a.php
<?php $__env->startSection('page-title'); ?> <?php echo e($project->project_name.__("'s Timesheet")); ?> <?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"><a href="<?php echo e(route('projects.show',$project->id)); ?>"><?php echo e(ucwords($project->project_name)); ?></a></li> <li class="breadcrumb-item"><?php echo e(__('Timesheet')); ?></li> <?php $__env->stopSection(); ?> <?php $__env->startSection('action-btn'); ?> <div class="row gy-3 justify-content-end align-items-center"> <div class="col-auto weekly-dates-div text-end me-2"> <a href="#" class="action-item previous"><i class="ti ti-arrow-left"></i></a> <span class="weekly-dates"></span> <input type="hidden" id="weeknumber" value="0"> <input type="hidden" id="selected_dates"> <a href="#" class="action-item next"><i class="ti ti-arrow-right"></i> </a> </div> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create timesheet')): ?> <div class="col-auto project_tasks_select text-end"> <div class="dropdown btn btn-sm p-0"> <a class="btn btn-primary add-small" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> <i class="ti ti-plus me-2"></i><?php echo e(__('Add Task on Timesheet')); ?> </a> <div class="dropdown-menu dropdown-menu-right tasks-box" x-placement="bottom-end"> <div class="scrollbar-inner"> <div class="mh-280"> <div class="tasks-list"></div> </div> </div> </div> </div> </div> <?php endif; ?> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-sm-12"> <div class="row"> <div class="col-12"> <div class="card shadow-none border"> <div class="card-body table-border-style"> <div class="table-responsive project-timesheet overflow-auto"> </div> <div class="text-center notfound-timesheet"> <div class="empty-project-text text-center p-3 min-h-300"> <h5 class="pt-5"><?php echo e(__("We couldn't find any data")); ?></h5> <p class="m-0"><?php echo e(__("Sorry we can't find any timesheet records on this week.")); ?></p> <p class="m-0"><?php echo e(__("To add timesheet record go to Add Task on Timesheet")); ?></p> </div> </div> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('script-page'); ?> <script> function ajaxFilterTimesheetTableView() { var mainEle = $('.project-timesheet'); var notfound = $('.notfound-timesheet'); var week = parseInt($('#weeknumber').val()); var project_id = '<?php echo e($project->id); ?>'; var isowner = ''; var data = { week: week, project_id: project_id, } $.ajax({ url: '<?php echo e(route('filter.timesheet.table.view')); ?>', data: data, success: function (data) { console.log(data) $('.weekly-dates-div .weekly-dates').text(data.onewWeekDate); $('.weekly-dates-div #selected_dates').val(data.selectedDate); $('.project_tasks_select .tasks-list .dropdown-item').remove(); $.each(data.sectiontasks, function (i, item) { var optionhtml = ''; if (item.section_id != 0 && item.section_name != '' && item.tasks.length > 0) { optionhtml += `<a href="#" class="dropdown-item select-sub-heading" data-tasks-count="` + item.tasks.length + `">` + item.section_name + `</a>`; } $.each(item.tasks, function (ji, jitem) { optionhtml += `<a href="#" class="dropdown-item select-task" data-task-id="` + jitem.task_id + `">` + jitem.task_name + `</a>`; }); $('.project_tasks_select .tasks-list').append(optionhtml); }); if (data.totalrecords == 0) { mainEle.hide(); notfound.css('display', 'block'); } else { notfound.hide(); mainEle.show(); } mainEle.html(data.html); } }); } $(function () { ajaxFilterTimesheetTableView(); }); $(document).on('click', '.weekly-dates-div .action-item', function () { var weeknumber = parseInt($('#weeknumber').val()); if ($(this).hasClass('previous')) { weeknumber--; $('#weeknumber').val(weeknumber); } else if ($(this).hasClass('next')) { weeknumber++; $('#weeknumber').val(weeknumber); } ajaxFilterTimesheetTableView(); }); $(document).on('click', '[data-ajax-timesheet-popup="true"]', function (e) { e.preventDefault(); var data = {}; var url = $(this).data('url'); var type = $(this).data('type'); var date = $(this).data('date'); var task_id = $(this).data('task-id'); var user_id = $(this).data('user-id'); data.date = date; data.task_id = task_id; if (user_id != undefined) { data.user_id = user_id; } if (type == 'create') { var title = '<?php echo e(__("Create Timesheet")); ?>'; data.project_id = '<?php echo e($project->id); ?>'; } else if (type == 'edit') { var title = '<?php echo e(__("Edit Timesheet")); ?>'; } $("#commonModal .modal-title").html(title + ` <small>(` + moment(date).format("ddd, Do MMM YYYY") + `)</small>`); $.ajax({ url: url, data: data, dataType: 'html', success: function (data) { $('#commonModal .body').html(data); $('#commonModal').modal('show'); if ($('#date').length > 0) { $('#date').daterangepicker({ singleDatePicker: true, locale: { format: 'YYYY-MM-DD' } }); } $('#commonModal').modal({backdrop: 'static', keyboard: false}); } }); }); $('.project_tasks_select .tasks-box').on('click', '.select-task', function (e) { e.preventDefault(); e.stopPropagation(); var mainEle = $('.project-timesheet'); var notfound = $('.notfound-timesheet'); var task_id = $(this).attr('data-task-id'); var selected_dates = $('#selected_dates').val(); $.ajax({ url: '<?php echo e(route('append.timesheet.task.html')); ?>', data: { project_id: '<?php echo e($project->id); ?>', task_id: task_id, selected_dates: selected_dates, }, success: function (data) { notfound.hide(); mainEle.show(); $('.project-timesheet .tbody').append(data.html); $('.project_tasks_select .tasks-list .select-task[data-task-id="' + task_id + '"]').remove(); } }); }); $(document).on('change', '#time_hour, #time_minute', function () { var hour = $('#time_hour').children("option:selected").val(); var minute = $('#time_minute').children("option:selected").val(); var total = $('#totaltasktime').val().split(':'); if (hour == '00' && minute == '00') { $(this).val(''); return; } hour = hour != '' ? hour : 0; hour = parseInt(hour) + parseInt(total[0]); minute = minute != '' ? minute : 0; minute = parseInt(minute) + parseInt(total[1]); if (minute > 50) { minute = minute - 60; hour++; } hour = hour < 10 ? '0' + hour : hour; minute = minute < 10 ? '0' + minute : minute; $('.display-total-time small').text('<?php echo e(__("Total Time worked on this task")); ?> : ' + hour + ' <?php echo e(__("Hours")); ?> ' + minute + ' <?php echo e(__("Minutes")); ?>'); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/crm/resources/views/projects/timesheets/index.blade.php ENDPATH**/ ?>