@extends('layouts.main') @section('title', 'Dashboard Andalan') @section('css') @php $dashboardCssPath = public_path('assets/css/dashboard.css'); $dashboardCssVersion = file_exists($dashboardCssPath) ? filemtime($dashboardCssPath) : time(); $attendanceCssPath = public_path('assets/css/attendance.css'); $attendanceCssVersion = file_exists($attendanceCssPath) ? filemtime($attendanceCssPath) : time(); @endphp @endsection @section('content') @include('layouts.breadcrumb', [ 'title' => 'Project Management', 'current' => 'Task List', 'homeRoute' => 'dashboard', ]) @include('project_management.layouts.profile-index') @php $taskListItems = collect($taskListItems ?? []); $taskListOngoingItems = collect($taskListOngoingItems ?? []); $taskListDoneItems = collect($taskListDoneItems ?? []); $taskListWeekPlanItems = collect($taskListWeekPlanItems ?? []); $taskListProjectOptions = collect($taskListProjectOptions ?? []); $taskListAssignableStaffOptions = collect($taskListAssignableStaffOptions ?? []); $taskListProjectOptionsByEmployee = is_array($taskListProjectOptionsByEmployee ?? null) ? $taskListProjectOptionsByEmployee : []; $taskListDefaultAssigneeEmployeeId = (string) ($taskListAssignableStaffOptions->first()['id'] ?? ''); $taskListMonthOptions = is_array($taskListMonthOptions ?? null) ? $taskListMonthOptions : []; $taskListYearOptions = is_array($taskListYearOptions ?? null) ? $taskListYearOptions : []; $taskListSelectedMonth = is_string($taskListSelectedMonth ?? null) ? $taskListSelectedMonth : now('Asia/Jakarta')->format('Y-m'); $taskListSelectedMonthNumber = (int) ($taskListSelectedMonthNumber ?? now('Asia/Jakarta')->month); $taskListSelectedYear = (int) ($taskListSelectedYear ?? now('Asia/Jakarta')->year); $taskListSelectedMonthLabel = is_string($taskListSelectedMonthLabel ?? null) ? $taskListSelectedMonthLabel : now('Asia/Jakarta')->format('F Y'); $taskListPastIncompleteCount = (int) ($taskListPastIncompleteCount ?? 0); $taskGroups = [ [ 'id' => 'All', 'label' => 'All', 'items' => $taskListItems, 'active' => false, 'empty' => 'No task found for this month.', ], [ 'id' => 'Unfinished', 'label' => 'Ongoing', 'items' => $taskListOngoingItems, 'active' => true, 'empty' => 'No ongoing task for this month.', ], [ 'id' => 'Finished', 'label' => 'Done', 'items' => $taskListDoneItems, 'active' => false, 'empty' => 'No completed task for this month.', ], ]; @endphp
Task List

Task List

Turn your daily goals into accomplishments.

@include('project_management.task_list.partials.task-list-items')
@include('project_management.task_list.partials.week-plan')
@include('project_management.task_list.partials.project-grid')
@endsection @section('script') @php $dashboardJsPath = public_path('assets/js/dashboard.js'); $dashboardJsVersion = file_exists($dashboardJsPath) ? filemtime($dashboardJsPath) : time(); @endphp @endsection