@extends('layouts.app') @section('title') {{__('messages.subscription_plans.payment_type')}} @endsection @section('content') @include('flash::message')

{{__('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['totalDays'] > 0) {{-- EXTRA DAYS WHEN REMAING BALANCE > PLAN AMOUNT --}}
{{ __('messages.subscription_plans.total_extra_days') }}
{{ $planData['totalDays'] }}
@endif
@endif

{{ $subscriptionsPricingPlan->name }}

{{ getSubscriptionPlanCurrencyIcon($subscriptionsPricingPlan->currency) }} {{ number_format($subscriptionsPricingPlan->price) }} /{{ \App\Models\SubscriptionPlan::PLAN_TYPE[$subscriptionsPricingPlan->frequency] }}
{{ Form::select('payment_type', $paymentTypes, \App\Models\Subscription::TYPE_STRIPE, ['class' => 'form-select form-select-solid','required', 'id' => 'paymentType', 'data-control' => 'select2']) }}
@endsection @section('scripts') @endsection