@include('includes.frontleft')

Celebrities Birthday

@if(count($celebrities_birthday)>0) @foreach($celebrities_birthday as $bday_key => $bday_item)
@if($bday_item->profile_picture) @php $profileimg = url('/')."/uploads/members/".$bday_item->profile_picture; if($bday_item->sm!='') { $profileimg = $bday_item->profile_picture; } @endphp @else @endif

{{$bday_item->name}}

{{ date("jS F",strtotime($bday_item->dob))}}

@php $totalCakeCount=DB::table('send_cake')->where("sid",$bday_item->id)->whereYear("created_at",date('Y'))->count(); if(Auth::check()) { $isCakeSent=DB::table('send_cake')->where("sid",$bday_item->id)->where("uid",Auth::user()->id)->whereYear("created_at",date('Y'))->count(); } @endphp
{{$totalCakeCount}}
@endforeach @else

No one has a birthday today!

@endif

Members Birthday

@if(count($members_birthday)>0) @foreach($members_birthday as $bday_key => $bday_item)
@if($bday_item->profile_picture) @php $profileimg = url('/')."/uploads/members/".$bday_item->profile_picture; if($bday_item->sm!='') { $profileimg = $bday_item->profile_picture; } @endphp @else @endif

{{$bday_item->name}}

{{ date("jS F",strtotime($bday_item->dob))}}

@php $totalCakeCount=DB::table('send_cake')->where("sid",$bday_item->id)->whereYear("created_at",date('Y'))->count(); $isCakeSent = 0; if(Auth::check()) { $isCakeSent=DB::table('send_cake')->where("sid",$bday_item->id)->where("uid",Auth::user()->id)->whereYear("created_at",date('Y'))->count(); } @endphp
{{$totalCakeCount}}
@endforeach @else

No one has a birthday today!

@endif
@include('includes.frontright')