@extends('dashboard.layouts.app') @section('content')
{{-- Attendance --}}
Attendance
@if($attendence && $attendence->check_in)
Checked in at
{{ \Carbon\Carbon::parse($attendence->check_in)->format('h:i A') }}
0:00:00 Hrs
Working since check-in
{{ \Carbon\Carbon::parse($attendence->attendence_date)->format('M d, Y') }}
@else

No check-in record found for today.

@endif
{{-- Request For Approval --}}
Request For Approval
{{ $requestForApproval->count() }}
@forelse ($requestForApproval as $item)
Request Type: {{ ucfirst($item->type->name) }}
{{ ucfirst(str_replace('_', ' ', $item->status)) }}
@empty

No requests found.

@endforelse
{{-- Announcements --}}
Announcements
{{-- Upcoming Holidays --}}
Upcoming Holidays
{{ $upcomingHolidays->count() }}
@forelse ($upcomingHolidays as $item)
{{ ucfirst($item->holiday_title) }}
From: {{ $item->from_date }} - To: {{ $item->to_date }}
@empty

No Holidays found.

@endforelse
{{-- Leave Request --}}
Leave Request
{{ $leaveBalances->count() }}
@forelse ($leaveBalances as $balance)
{{ ucfirst($balance->leaveType->type ?? 'Unknown') }} {{ $balance->used_days ?? 0 }} used
@php $totalDays = $balance->leaveType->total_days ?? 0; $usedDays = $balance->used_days ?? 0; $percent = $totalDays > 0 ? ($usedDays / $totalDays) * 100 : 0; @endphp
{{ $totalDays - $usedDays }} days available out of {{ $totalDays }}
@empty

No leave records found.

@endforelse
{{-- Birthday --}}
Birthday
@forelse ($birthDates as $item)
{{ $item->first_name }} {{ $item->last_name }} - {{ $item->date_of_birth }}
@empty

No leave records found.

@endforelse
My Pending Tasks
{{ $pendingTasks->count() }}
@forelse ($pendingTasks as $item)
{{ ucfirst($item->task_name ?? 'Unknown') }}
{{ $item->progress }}%
@empty

No Tasks found.

@endforelse
{{-- My Files --}}
My Files
{{ $sharedCenter->count() }}
@forelse ($sharedCenter as $item) @empty

No Files found.

@endforelse
{{-- Quick Links --}}
🚀 Quick Links
{{ $quick_links->count() }}
@forelse($quick_links as $quick_link) {{-- Quick Link Item --}} @empty {{-- Empty State --}} @endforelse
@endsection