@if ($type === 'birthday')
Birthdays Today
@elseif ($type === 'anniversary')
Work Anniversaries Today
@elseif ($type === 'joinee')
Joined Today
@endif
@forelse($result['today'] as $employee)

{{ $employee->short_name }}

@if ($type === 'birthday')

{{ \Carbon\Carbon::parse($employee->date_of_birth)->format('d M') }}

@else

{{ \Carbon\Carbon::parse($employee->date_of_joining)->format('d M') }}

@endif
@empty @if ($type === 'birthday')

No one is having Birthday today

@elseif ($type === 'anniversary')

No one is having Work Anniversary today

@elseif ($type === 'joinee')

No one is Joining today

@endif @endforelse
@if ($type === 'birthday')
Next 7 Days
@elseif ($type === 'anniversary')
Next 30 Days
@elseif ($type === 'joinee')
Joined in Last 7 Days
@endif
@forelse($result['upcoming'] as $employee)

{{ $employee->short_name }}

@if ($type === 'birthday')

{{ \Carbon\Carbon::parse($employee->date_of_birth)->format('d M') }}

@else

{{ \Carbon\Carbon::parse($employee->date_of_joining)->format('d M') }}

@endif
@empty @if ($type === 'birthday')

No one is having Birthday in the next 7 days

@elseif ($type === 'anniversary')

No one is having Work Anniversary next 30 days

@elseif ($type === 'joinee')

No one has Joined in the last 7 days

@endif @endforelse