@php $taskListItems = collect($taskListItems ?? []); $taskListOngoingItems = collect($taskListOngoingItems ?? []); $taskListDoneItems = collect($taskListDoneItems ?? []); $taskListPastIncompleteCount = (int) ($taskListPastIncompleteCount ?? 0); $taskListPageSize = 5; $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 @if ($taskListPastIncompleteCount > 0)
Pending Tasks Reminder!

You have {{ $taskListPastIncompleteCount }} active task from previous months. Wrap them up to keep your records up to date.

@endif
Ready for a Great Day?

What's on your agenda today? Add your tasks to keep your workflow organized. Add Task

@foreach ($taskGroups as $taskGroup) @php $taskGroupPageCount = (int) ceil($taskGroup['items']->count() / $taskListPageSize); @endphp
@forelse ($taskGroup['items'] as $task)

{{ $task['date_day'] }}

{{ $task['due_label'] }}

{{ $task['title'] }} @if ($task['is_overtime_task'] ?? false) {{ $task['overtime_label'] ?? 'Overtime' }} @endif

{{ $task['status_label'] }} {{ $task['project_name'] }} Priority: {{ $task['priority_label'] }} @if ($task['is_assigned_by_other_user'] ?? false)

Assign by : {{ $task['assigned_by_label'] }}

@endif @if ($task['is_assigned_to_other_employee'] ?? false)

Staff : {{ $task['assignee_label'] }}

@endif
@if (! $task['is_completed'] && ($task['can_manage_from_task_list'] ?? true)) @endif
@empty
{{ $taskGroup['empty'] }}

Use Add Task to create a new daily or project task.

@endforelse @if ($taskGroupPageCount > 1) @endif
@endforeach