@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
{{--
Student thumbnail image
--}}
    Welcome, {{ $profileData->title}} {{ $profileData->firstname }}
@if ($subscription) You are a {{ $subscription->subscription_name }} Member @else You don't have an active subscription {{-- modifcation for ISM--}} @if(auth()->user()->zone == 'ISM' ) Subscribe @else Subscribe @endif Read Free E-Book @endif