@extends('layouts.app') @section('title') {{__('messages.subscription.upgrade_plan')}} @endsection @section('content')
@include('flash::message')
@forelse($monthlyPlans as $plan)

{!! $plan->name !!}

{{-- {{$plan->currency->currency_icon.number_format($plan->price) }}--}} {{ currencyFormat($plan->price,2, $plan->currency->currency_code) }}

{{ __('messages.plan.no_of_vcards').' : '.$plan->no_of_vcards }}
@foreach(getPlanFeature($plan) as $feature => $value)

{{ __('messages.feature.'.$feature) }}

@if($value) @else @endif
@endforeach
@if(!empty(getCurrentSubscription()) && $plan->id == getCurrentSubscription()->plan_id && !getCurrentSubscription()->isExpired()) @if($plan->price != 0) @else @endif @else @if(!empty(getCurrentSubscription()) && !getCurrentSubscription()->isExpired() && ($plan->price == 0 || $plan->price != 0)) @if($plan->hasZeroPlan->count() == 0) {{ __('messages.subscription.switch_plan') }} @else @endif @else @if($plan->price!=0 && $plan->hasZeroPlan->count() == 0) {{ __('messages.subscription.choose_plan') }} @else @endif @endif @endif
@empty
{{ __('messages.subscription.no_plan_available') }}
@endforelse
@forelse($yearlyPlans as $plan)

{!! $plan->name !!}

{{-- {{$plan->currency->currency_icon.number_format($plan->price) }}--}} {{ currencyFormat($plan->price,2, $plan->currency->currency_code) }}

{{ __('messages.plan.no_of_vcards').' : '.$plan->no_of_vcards }}
@foreach(getPlanFeature($plan) as $feature => $value)

{{ __('messages.feature.'.$feature) }}

@if($value) @else @endif
@endforeach
@if(!empty(getCurrentSubscription()) && $plan->id == getCurrentSubscription()->plan_id && !getCurrentSubscription()->isExpired()) @if($plan->price != 0) @else @endif @else @if(!empty(getCurrentSubscription()) && !getCurrentSubscription()->isExpired() && ($plan->price == 0 || $plan->price != 0)) @if($plan->hasZeroPlan->count() == 0) {{ __('messages.subscription.switch_plan') }} @else @endif @else @if($plan->hasZeroPlan->count() == 0) {{ __('messages.subscription.choose_plan') }} @else @endif @endif @endif
@empty
{{ __('messages.subscription.no_plan_available') }}
@endforelse
@forelse($unLimitedPlans as $plan)

{!! $plan->name !!}

{{-- {{$plan->currency->currency_icon.number_format($plan->price) }}--}} {{ currencyFormat($plan->price,2, $plan->currency->currency_code) }}

{{ __('messages.plan.no_of_vcards').' : '.$plan->no_of_vcards }}
@foreach(getPlanFeature($plan) as $feature => $value)

{{ __('messages.feature.'.$feature) }}

@if($value) @else @endif
@endforeach
@if(!empty(getCurrentSubscription()) && $plan->id == getCurrentSubscription()->plan_id && !getCurrentSubscription()->isExpired()) @if($plan->price != 0) @else @endif @else @if(!empty(getCurrentSubscription()) && !getCurrentSubscription()->isExpired() && ($plan->price == 0 || $plan->price != 0)) @if($plan->hasZeroPlan->count() == 0) {{ __('messages.subscription.switch_plan') }} @else @endif @else @if($plan->hasZeroPlan->count() == 0) {{ __('messages.subscription.choose_plan') }} @else @endif @endif @endif
@empty
{{ __('messages.subscription.no_plan_available') }}
@endforelse
@endsection