New Tasks
{{ $newTasks }}
Completed
{{ $completedTasks }}
Pending
{{ $pendingTasks }}
Check-In
@if($loginEntry && $loginEntry->type)
{{ ucfirst($loginEntry->type) }}
@endif
{{ $loginEntry?->check_in
? \Carbon\Carbon::parse($loginEntry->check_in)->format('h:i A')
: '—' }}
Total Productive Hours
{{ $totalProductiveHours }}
Total Break Hours
{{ $totalBreakTime}}
Check-Out
{{ $loginEntry?->check_out
? \Carbon\Carbon::parse($loginEntry->check_out)->format('h:i A')
: '—' }}
Project
Task
EH
Start
End
Time
Extra Hours
Status
@forelse ($completedTaskList as $row)
{{ $row['project'] }}
{{ $row['task'] }}
{{ $row['estimated_time'] ?? '-' }}
{{ $row['start_time'] }}
{{ $row['end_time'] }}
{{ $row['working_hours'] }}
@php
$extraHours = 0;
if($row['start_time'] != '-' && $row['end_time'] != '-') {
$start = \Carbon\Carbon::parse($row['start_time']);
$end = \Carbon\Carbon::parse($row['end_time']);
$totalHours = $start->diffInMinutes($end) / 60;
$expectedHours = 8;
$extraHours = $totalHours > $expectedHours ? $totalHours - $expectedHours : 0;
}
@endphp
{{ number_format($extraHours,2) }} hrs
@switch($row['status'])
@case('new')
Not Started
@break
@case('inprogress')
In Progress
@break
@case('complete')
Completed
@break
@case('hold')
Hold
@break
@endswitch
@empty
No completed tasks found
@endforelse
#
Break Start
Break End
Duration
@forelse($breakHistory as $key => $break)
@php
$start = \Carbon\Carbon::parse($break->break_start_time);
$end = $break->break_end_time ? \Carbon\Carbon::parse($break->break_end_time) : null;
$duration = '-';
if($end){
$minutes = $start->diffInMinutes($end);
$h = floor($minutes/60);
$m = $minutes%60;
$duration = "{$h}h {$m}m";
}
@endphp
{{ $key+1 }}
{{ $start->format('h:i A') }}
{{ $break->break_end_time ? $end->format('h:i A') : '-' }}
{{ $duration }}
@empty
No break taken today
@endforelse
@if($loginEntry?->check_out)
Share
@else
@endif