Celebrities Birthday
@if(count($celebrities_birthday)>0)
@foreach($celebrities_birthday as $bday_key => $bday_item)
@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
@endforeach
@else
@endif
@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
@endif
{{$bday_item->name}}
{{ date("jS F",strtotime($bday_item->dob))}}
{{$totalCakeCount}}
No one has a birthday today!
Members Birthday
@if(count($members_birthday)>0)
@foreach($members_birthday as $bday_key => $bday_item)
@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
@endforeach
@else
@endif
@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
@endif
{{$bday_item->name}}
{{ date("jS F",strtotime($bday_item->dob))}}
{{$totalCakeCount}}