@php $activeSubscription = getCurrentActiveSubscriptionPlan(); $currentActiveSubscription = currentActiveSubscription(); @endphp

{{__('messages.landing.choose_your_pricing_plan')}}

@forelse($subscriptionPricingMonthPlans as $subscriptionsPricingPlan)

{{ $subscriptionsPricingPlan->name }}

{{ getAdminCurrencySymbol($subscriptionsPricingPlan->currency) }}{{ number_format($subscriptionsPricingPlan->price) }}

/{{ \App\Models\SubscriptionPlan::PLAN_TYPE[$subscriptionsPricingPlan->frequency] }}

    @if (getLoggedInUser() != null && count($subscriptionsPricingPlan->subscription) > 0) @if($activeSubscription !== null && $activeSubscription->trial_ends_at != null && $activeSubscription->subscription_plan_id == $subscriptionsPricingPlan->id)
  • {{ __('messages.subscription_plans.valid_until') }} : {{ $subscriptionsPricingPlan->trial_days }}
  • @endif @if($activeSubscription && isAuth() && $activeSubscription->subscriptionPlan->id == $subscriptionsPricingPlan->id)
  • {{ __('messages.subscription_plans.end_date') }} : {{ getParseDate($activeSubscription->ends_at)->format('d-m-Y') }}
  • @endif @endif @if(count($subscriptionsPricingPlan->planFeatures) > 0) @foreach($subscriptionsPricingPlan->planFeatures as $planFeature)
  • {{ $planFeature->feature->name }}
  • @if($planFeature->feature->name == "SMS / Mail" && ($planFeature->subscriptionPlan->sms_limit) > 0)
  • {{ $planFeature->subscriptionPlan->sms_limit }} SMS
  • @endif @endforeach @endif
@if($currentActiveSubscription && isAuth() && $subscriptionsPricingPlan->id == $currentActiveSubscription->subscription_plan_id && !$currentActiveSubscription->isExpired()) @if($subscriptionsPricingPlan->price != 0) @else @endif @else @if($currentActiveSubscription && isAuth() && !$currentActiveSubscription->isExpired() && ($subscriptionsPricingPlan->price == 0 || $subscriptionsPricingPlan->price != 0)) @if($subscriptionsPricingPlan->hasZeroPlan->count() == 0) {{ __('messages.subscription_pricing_plans.switch_plan') }} @else @endif @else @if($subscriptionsPricingPlan->hasZeroPlan->count() == 0) {{ __('messages.subscription_pricing_plans.choose_plan') }} @else @endif @endif @endif
@empty

{{ __('messages.subscription_month_plan_not_found') }}

@endforelse
@forelse($subscriptionPricingYearPlans as $subscriptionsPricingPlan)

{{ $subscriptionsPricingPlan->name }}

{{ getAdminCurrencySymbol($subscriptionsPricingPlan->currency) }}{{ number_format($subscriptionsPricingPlan->price) }}

/{{ \App\Models\SubscriptionPlan::PLAN_TYPE[$subscriptionsPricingPlan->frequency] }}

    @if (getLoggedInUser() != null && count($subscriptionsPricingPlan->subscription) > 0) @if($activeSubscription !== null && $activeSubscription->trial_ends_at != null && $activeSubscription->subscription_plan_id == $subscriptionsPricingPlan->id)
  • {{ __('messages.subscription_plans.valid_until') }} : {{ $subscriptionsPricingPlan->trial_days }}
  • @endif @if($activeSubscription && isAuth() && $activeSubscription->subscriptionPlan->id == $subscriptionsPricingPlan->id)
  • {{ __('messages.subscription_plans.end_date') }} : {{ getParseDate($activeSubscription->ends_at)->format('d-m-Y') }}
  • @endif @endif @if(count($subscriptionsPricingPlan->planFeatures) > 0) @foreach($subscriptionsPricingPlan->planFeatures as $planFeature)
  • {{ $planFeature->feature->name }}
  • @if($planFeature->feature->name == "SMS / Mail" && ($planFeature->subscriptionPlan->sms_limit) > 0)
  • {{ $planFeature->subscriptionPlan->sms_limit }} SMS
  • @endif @endforeach @endif
@if($currentActiveSubscription && isAuth() && $subscriptionsPricingPlan->id == $currentActiveSubscription->subscription_plan_id && !$currentActiveSubscription->isExpired()) @if($subscriptionsPricingPlan->price != 0) @else @endif @else @if($currentActiveSubscription && isAuth() && !$currentActiveSubscription->isExpired() && ($subscriptionsPricingPlan->price == 0 || $subscriptionsPricingPlan->price != 0)) @if($subscriptionsPricingPlan->hasZeroPlan->count() == 0) {{ __('messages.subscription_pricing_plans.switch_plan') }} @else @endif @else @if($subscriptionsPricingPlan->hasZeroPlan->count() == 0) {{ __('messages.subscription_pricing_plans.choose_plan') }} @else @endif @endif @endif
@empty

{{ __('messages.subscription_year_plan_not_found') }}

@endforelse