|
Dear {{ $user->first_name }},
Your working days schedule has been updated by your administrator.
Please review the new schedule below and adjust your personal plans accordingly.
@php
$dayNames = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];
$dayKeys = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'];
@endphp
Previous Schedule
@foreach($dayKeys as $index => $key)
|
{{ $dayNames[$index] }}
|
@if($index < count($dayKeys) - 1)
|
@endif
@endforeach
|
|
New Schedule
@foreach($dayKeys as $index => $key)
|
{{ $dayNames[$index] }}
|
@if($index < count($dayKeys) - 1)
|
@endif
@endforeach
|
📌 Your Schedule Summary
Working Days:
@php
$workingDayNames = array_map(function($key) use ($dayKeys, $dayNames) {
$index = array_search($key, $dayKeys);
return $dayNames[$index];
}, $newDays);
@endphp
{{ implode(', ', $workingDayNames) }}
Total Working Days: {{ count($newDays) }} days per week
Effective Date: Immediately
|
Please ensure you mark your attendance on the specified working days.
If you have any concerns about this schedule change, please contact your supervisor or HR department.
|