@extends('landing.layouts.app') @section('title') {{__('messages.subscription_plans.payment_type')}} @endsection @section('page_css') @endsection @section('content')



{{--

{{__('messages.subscription_plans.payment_type')}}

@if(!currentActiveSubscription()->isExpired()) @php $planData = getProratedPlanData($subscriptionsPricingPlan->id); @endphp
{{ __('messages.subscription_plans.remaining_balance') }}
{{ $planData['remainingBalance'] }}
{{ __('messages.subscription_plans.amount_to_pay') }}
{{ $planData['amountToPay'] }}
{{ __('messages.subscription_plans.used_days') }}
{{ $planData['usedDays'] }}
@if ( $planData['totalExtraDays'] > 0)
{{ __('messages.subscription_plans.total_extra_days') }}
{{ $planData['totalExtraDays'] }}
@endif
@endif

{{ $subscriptionsPricingPlan->name }}

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

{{ \App\Models\SubscriptionPlan::PLAN_TYPE[$subscriptionsPricingPlan->frequency] }}
@if($subscriptionsPricingPlan->trial_days != 0)
  • {{ __('messages.subscription_plans.valid_until') }} : {{ $subscriptionsPricingPlan->trial_days }} {{ \App\Models\SubscriptionPlan::PLAN_TYPE[$subscriptionsPricingPlan->frequency] }}

@endif
{{ Form::select('payment_type', $paymentTypes, \App\Models\Subscription::TYPE_STRIPE, ['required', 'id' => 'paymentType']) }}
--}} @php $cpData = getCurrentPlanDetails(); $planText = ($cpData['isExpired']) ? 'Current Expired Plan' : 'Current Plan'; $currentPlan = $cpData['currentPlan']; @endphp
@if(currentActiveSubscription()->ends_at >= \Carbon\Carbon::now())

{{$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']}} Days

Remaining Days

{{$cpData['remainingDays']}} Days

Used Balance

{{ getSubscriptionPlanCurrencyIcon($currentPlan->currency) }} {{$cpData['usedBalance']}}

Remaining Balance

{{ getSubscriptionPlanCurrencyIcon($currentPlan->currency) }} {{$cpData['remainingBalance']}}
@endif @php $newPlan = getProratedPlanData($subscriptionsPricingPlan->id); @endphp

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']}} Days

Remaining 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']) }}
@endsection @section('page_scripts') @endsection @section('scripts') @endsection