@php $id = Auth::user()->id; $profileData = App\Models\User::find($id); // Get the latest active subscription if it exists $subscription = $profileData ->subscriptions() ->where('status', 'active') ->where('end_date', '>', now()) ->latest() ->first(); $today = now(); @endphp