@php if (auth('web')->check() && auth('web')->user()?->member) { $currentPlan = auth('web')->user()?->member?->subscription; } @endphp

{{ $plan->plan_name }}

@if ($type == 'monthly')

@if ($plan->plan_price == 0) {{ __('Free') }} @else {{ currency($plan->plan_price) }} @endif

@else

{{ currency($plan->yearly_price) }}

@endif @if (isset($currentPlan) && $currentPlan->subscription_plan_id == $plan->id && $currentPlan->renewal_date >= now()->format('Y-m-d')) {{ $currentPlan->status == 0 && $currentPlan->payment_status == 'pending' ? __('Pending') : __('Activated') }} @else {{ __('Join Now') }} @endif