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

{{ $emp->short_name }}

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

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

@else

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

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

No one is having Birthday today

@endif @if($type === 'anniversary')

No one is having Work Anniversary today

@endif @if($type === 'joinee')

No one is Joining today

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

{{ $emp->short_name }}

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

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

@else

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

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

No one is having Birthday in the next 7 days

@endif @if($type === 'anniversary')

No one is having Work Anniversary next 30 days

@endif @if($type === 'joinee')

No one has Joined in the last 7 days

@endif @endforelse