@extends('layouts.admin') @section('title', 'Birthdays') @section('page-title', 'Birthdays') @section('page-subtitle', 'Manage member birthdays and send wishes') @php use Carbon\Carbon; @endphp @section('content')
@if($birthdaysToday->count() > 0)
🎂

Celebrating Today!

@foreach($birthdaysToday as $member) {{ $member->full_name }}@if(!$loop->last), @endif @endforeach

@endif

Today

{{ $stats['today'] }}

This Month

{{ $stats['this_month'] }}

With Phone

{{ $stats['with_phone'] }}

With Email

{{ $stats['with_email'] }}

All Birthdays

@forelse($members as $member) @php $birthday = Carbon::parse($member->date_of_birth); $nextBirthday = $birthday->copy()->year(now()->year); if ($nextBirthday < now()) { $nextBirthday->addYear(); } $age = $birthday->age + ($nextBirthday <= now() ? 1 : 0); $isToday = $birthday->month === now()->month && $birthday->day === now()->day; @endphp @empty @endforelse
Member Birthday Age Contact Actions
@if($member->profile_photo) @else
{{ substr($member->first_name, 0, 1) }}{{ substr($member->last_name, 0, 1) }}
@endif

{{ $member->full_name }}

{{ $member->member_id }}

@if($isToday) Today! @endif

{{ $birthday->format('M d') }}

{{ $nextBirthday->format('l, M d, Y') }}

{{ $age }}
@if($member->phone) @else No phone @endif

No birthdays found for the selected filters.

{{ $members->withQueryString()->links() }}
@endsection