🎉 Upcoming Anniversary List

@if(count($anniversary)>=1)
@php $i=0; @endphp @foreach($anniversary as $anniversary) @php $old_date = $anniversary->joining_date; $new_date = date('d-m',strtotime($old_date)); $main_date = $new_date.'-'.date('Y'); $i++; @endphp @php $old_date = $anniversary->joining_date; $new_date = date('d-m',strtotime($old_date)); $day = date('d',strtotime($old_date)); $days = date('d'); $day_left = $day - $days; $check_bday = []; $dates = date('d-m'); if($new_date == $dates) { @endphp @php } elseif($day_left == 1){ @endphp @php } else{ @endphp @php } @endphp @endforeach
Sr No.
Employee ID
Employee Name
Anniversary Date
Greetings
{{$i}}
{{$anniversary->id}}
{{$anniversary->first_name}} {{$anniversary->last_name}}
{{$main_date}}
@foreach($userNotifyData as $n) @if($n->type == 'anniversary') @if($n->id == $anniversary->id) @php array_push($check_bday,$anniversary->id); @endphp @endif @endif @endforeach @if(in_array($anniversary->id,$check_bday)) Wish Done @else 🎉 Wish Now @endif
Tomorrow
@php echo $day_left." Days To Left"; @endphp
@else

No Upcoming Anniversary This Month

@endif