{{--
@if(!currentActiveSubscription()->isExpired())
@php
$planData = getProratedPlanData($subscriptionsPricingPlan->id);
@endphp
@if ( $planData['totalExtraDays'] > 0)
@endif
@endif
@if($subscriptionsPricingPlan->trial_days != 0)
@endif
--}}
@php
$cpData = getCurrentPlanDetails();
$planText = ($cpData['isExpired']) ? 'Current Expired Plan' : 'Current Plan';
$currentPlan = $cpData['currentPlan'];
@endphp
{{__('messages.subscription_plans.payment_type')}}
{{ __('messages.subscription_plans.remaining_balance') }}
{{ $planData['remainingBalance'] }}
{{ __('messages.subscription_plans.amount_to_pay') }}
{{ $planData['amountToPay'] }}
{{ __('messages.subscription_plans.used_days') }}
{{ $planData['usedDays'] }}
{{ __('messages.subscription_plans.total_extra_days') }}
{{ $planData['totalExtraDays'] }}
{{ $subscriptionsPricingPlan->name }}
{{ getSubscriptionPlanCurrencyIcon($subscriptionsPricingPlan->currency) }}{{ number_format($subscriptionsPricingPlan->price) }}
{{ \App\Models\SubscriptionPlan::PLAN_TYPE[$subscriptionsPricingPlan->frequency] }}-
{{ __('messages.subscription_plans.valid_until') }} : {{ $subscriptionsPricingPlan->trial_days }} {{ \App\Models\SubscriptionPlan::PLAN_TYPE[$subscriptionsPricingPlan->frequency] }}
{{ Form::select('payment_type', $paymentTypes, \App\Models\Subscription::TYPE_STRIPE, ['required', 'id' => 'paymentType']) }}
@if(currentActiveSubscription()->ends_at >= \Carbon\Carbon::now())
@endif
@php
$newPlan = getProratedPlanData($subscriptionsPricingPlan->id);
@endphp
{{$planText}}
Plan Name
{{$cpData['name']}}Plan Price
{{ getSubscriptionPlanCurrencyIcon($currentPlan->currency) }} {{ number_format($currentPlan->price) }}Start Date
{{$cpData['startAt']}}End Date
{{$cpData['endsAt']}}Used Days
{{$cpData['usedDays']}} DaysRemaining Days
{{$cpData['remainingDays']}} DaysUsed Balance
{{ getSubscriptionPlanCurrencyIcon($currentPlan->currency) }} {{$cpData['usedBalance']}}Remaining Balance
{{ getSubscriptionPlanCurrencyIcon($currentPlan->currency) }} {{$cpData['remainingBalance']}}New Plan
Plan Name
{{$newPlan['name']}}Plan Price
{{ getSubscriptionPlanCurrencyIcon($subscriptionsPricingPlan->currency) }} {{ number_format($subscriptionsPricingPlan->price) }}Start Date
{{ $newPlan['startDate'] }}End Date
{{$newPlan['endDate']}}Total Days
{{$newPlan['totalDays']}} DaysRemaining Balance of Prev. Plan
{{ getSubscriptionPlanCurrencyIcon($subscriptionsPricingPlan->currency) }} {{$newPlan['remainingBalance']}}Payable Amount
{{ getSubscriptionPlanCurrencyIcon($subscriptionsPricingPlan->currency) }} {{$newPlan['amountToPay']}}
{{ Form::select('payment_type', $paymentTypes, \App\Models\Subscription::TYPE_STRIPE, ['required', 'id' => 'paymentType']) }}