@php $defaultAvatarPath = asset('assets/default_user.jpg'); $profilePictureValue = is_string($profilePicturePath ?? null) ? trim($profilePicturePath) : ''; $profileAvatarPath = $profilePictureValue === '' ? $defaultAvatarPath : (\Illuminate\Support\Str::startsWith($profilePictureValue, ['http://', 'https://']) ? $profilePictureValue : asset(ltrim($profilePictureValue, '/'))); @endphp User Avatar

{{ $profileDisplayName ?? '-' }}

  • {{ $profilePositionName ?? '-' }}
  • {{ $profileAddressSummary ?? '-' }}
  • {{ $profileBusinessEmail ?? '-' }}
@php $attendanceDaysCount = (int) ($profileAttendanceDaysCount ?? 0); $workingDaysCount = (int) ($profileWorkingDaysCount ?? 0); $workingMonthLabel = is_string($profileWorkingMonthLabel ?? null) && trim($profileWorkingMonthLabel) !== '' ? trim($profileWorkingMonthLabel) : now('Asia/Jakarta')->format('F'); $lateInCount = (int) ($profileLateInCount ?? 0); $leavesAndSickCount = (int) ($profileLeavesAndSickCount ?? 0); $weeklyAttendancePercent = (int) ($profileWeeklyAttendancePercent ?? 0); $weeklyOnTimePercent = (int) ($profileWeeklyOnTimePercent ?? 0); $monthlyAttendanceLabels = is_array($profileMonthlyAttendanceLabels ?? null) ? $profileMonthlyAttendanceLabels : []; $monthlyAttendanceSeries = is_array($profileMonthlyAttendanceSeries ?? null) ? $profileMonthlyAttendanceSeries : []; $monthlyAttendanceDelta = (float) ($profileMonthlyAttendanceDelta ?? 0); $monthlyAttendanceDeltaLabel = ($monthlyAttendanceDelta >= 0 ? '+' : '').number_format($monthlyAttendanceDelta, 2).'%'; $monthlyAttendanceDeltaClass = $monthlyAttendanceDelta >= 0 ? 'text-success' : 'text-danger'; $monthlyAttendanceDeltaStrokeColor = $monthlyAttendanceDelta >= 0 ? 'var(--bs-success)' : 'var(--bs-danger)'; $profileStatsModeValue = is_string($profileStatsMode ?? null) ? $profileStatsMode : 'staff'; $managementTotalEmployees = (int) ($managementTotalEmployeesCount ?? 0); $managementPresentToday = (int) ($managementPresentTodayCount ?? 0); $managementLateToday = (int) ($managementLateTodayCount ?? 0); $managementLeaveToday = (int) ($managementLeaveTodayCount ?? 0); @endphp @if ($profileStatsModeValue === 'staff')

{{ $attendanceDaysCount }} / {{ $workingDaysCount }}

Attendance Days ({{ $workingMonthLabel }})

{{ $lateInCount }}

Late In

{{ $leavesAndSickCount }}

Leaves & Sick

{{ $weeklyAttendancePercent }}%

Attendance

{{ $weeklyOnTimePercent }}%

On-Time
@else

{{ $managementPresentToday }} / {{ $managementTotalEmployees }}

Staff Presence (Today)

{{ $managementLateToday }}

Staff Late (Today)

{{ $managementLeaveToday }}

Staff Leave (Today)
@endif
Progress

{{ $monthlyAttendanceDeltaLabel }}

Progress

{{ $monthlyAttendanceDeltaLabel }}

@if ($profileStatsModeValue === 'staff')

{{ $attendanceDaysCount }} / {{ $workingDaysCount }}

Attendance Days ({{ $workingMonthLabel }})

{{ $lateInCount }}

Late In

{{ $leavesAndSickCount }}

Leaves & Sick

{{ $weeklyAttendancePercent }}%

Attendance

{{ $weeklyOnTimePercent }}%

On-Time
@else

{{ $managementPresentToday }} / {{ $managementTotalEmployees }}

Staff Presence (Today)

{{ $managementLateToday }}

Staff Late (Today)

{{ $managementLeaveToday }}

Staff Leave (Today)
@endif