{{ __('Developer Dashboard') }}

{{-- Flash Messages --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- ===================== ATTENDANCE CARD ===================== --}}
{{-- Gradient Header --}}

Today's Attendance

{{ now()->format('l, F j, Y') }}
{{-- Status + Actions Row --}}
{{-- Status Indicator --}}
@if(!$todayAttendance) You have not clocked in today. @elseif(!$todayAttendance->clock_out) Clocked in at {{ \Carbon\Carbon::parse($todayAttendance->clock_in)->format('h:i A') }} @else Clocked out at {{ \Carbon\Carbon::parse($todayAttendance->clock_out)->format('h:i A') }} @endif
{{-- Action Buttons --}}
@if(!$todayAttendance)
@csrf
@elseif(!$todayAttendance->clock_out)
@csrf
@endif
{{-- Recent Attendance Mini-Table --}} @if($recentAttendance && $recentAttendance->count())

Recent Attendance (Last 7 Days)

@foreach($recentAttendance as $record) @endforeach
Date Clock In Clock Out Total Hours
{{ \Carbon\Carbon::parse($record->clock_in)->format('M d, Y') }} {{ \Carbon\Carbon::parse($record->clock_in)->format('h:i A') }} @if($record->clock_out) {{ \Carbon\Carbon::parse($record->clock_out)->format('h:i A') }} @else Active @endif @if($record->total_hours) {{ number_format($record->total_hours, 1) }}h @else @endif
@else

No recent attendance records.

@endif
{{-- ===================== MY TASKS SECTION ===================== --}}
{{-- Gradient Header --}}

My Tasks

@if($tasks->count()) {{ $tasks->count() }} {{ Str::plural('task', $tasks->count()) }} @endif
@if($tasks->isEmpty()) {{-- Empty State --}}

No Tasks Assigned

Tasks assigned to you will appear here.

@else
@foreach($tasks as $task)
{{-- Status Badge --}}
@if($task->status === 'done') @elseif($task->status === 'in_progress') @else @endif {{ str_replace('_', ' ', $task->status) }}
{{-- Task Title --}}

{{ $task->title }}

{{-- Project & Requirement --}}
{{ $task->project->name ?? 'N/A' }}
@if($task->requirement)
{{ $task->requirement->title }}
@endif
{{-- Status-Specific Details & Actions --}} @if($task->status === 'assigned')
@csrf
@elseif($task->status === 'in_progress')
@if($task->start_time)
Started: {{ \Carbon\Carbon::parse($task->start_time)->format('M d, h:i A') }}
@endif
@csrf
@elseif($task->status === 'done')
@if($task->duration_minutes)
Duration: @if($task->duration_minutes >= 60) {{ floor($task->duration_minutes / 60) }}h {{ $task->duration_minutes % 60 }}m @else {{ $task->duration_minutes }}m @endif
@endif @if($task->end_time)
Completed: {{ \Carbon\Carbon::parse($task->end_time)->format('M d, h:i A') }}
@endif
@endif
@endforeach
@endif
{{-- ===================== EDUCATION SECTION ===================== --}}

Education Materials

@if($educationMaterials->isEmpty())

No materials uploaded yet.

@else
@foreach($educationMaterials as $material)

{{ $material->title }}

By {{ $material->techLead->name ?? 'Tech Lead' }}

@if($material->type == 'youtube') Watch on YouTube @elseif($material->type == 'mp4') Watch Video @endif @if($material->description)

{{ $material->description }}

@endif
@endforeach
@endif
{{-- ===================== CREDENTIALS SECTION ===================== --}}

Project Credentials

@if($credentials->isEmpty())

No credentials assigned to you.

@else
@foreach($credentials as $cred)

{{ $cred->title }}

{{ $cred->project->name ?? 'N/A' }}
@if($cred->url)

URL: {{ $cred->url }}

@endif @if($cred->username)

User: {{ $cred->username }}

@endif @if($cred->password)

Pass: {{ $cred->password }}

@endif
@endforeach
@endif
{{-- Micro-animation keyframes --}}