@extends('Staff.layout') @section('content')
{{ Auth::guard('staff')->user()->name }}
Current Time : 
New Tasks
{{ $newTasks }}
Completed
{{ $completedTasks }}
Pending
{{ $pendingTasks }}
Hold
{{ $holdTasks }}
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') : '—' }}
@forelse ($completedTaskList as $row) @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 @empty @endforelse
Project Task EH Start End Time Extra Hours Status
{{ $row['project'] }} {{ $row['task'] }} {{ $row['estimated_time'] ?? '-' }} {{ $row['start_time'] }} {{ $row['end_time'] }} {{ $row['working_hours'] }}{{ 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
No completed tasks found
Break History
@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 @empty @endforelse
# Break Start Break End Duration
{{ $key+1 }} {{ $start->format('h:i A') }} {{ $break->break_end_time ? $end->format('h:i A') : '-' }} {{ $duration }}
No break taken today
@if($loginEntry?->check_out)
@else
@csrf
@endif
@endsection