@extends('landing.layouts.app') @section('title') {{__('messages.subscription_plans.payment_type')}} @endsection @section('page_css') {{-- --}} {{-- --}} @endsection @section('content') @php $cpData = getCurrentPlanDetails(); $planText = ($cpData['isExpired']) ? __('messages.new_change.current_expired_plan') : __('messages.new_change.current_plan') ; $currentPlan = $cpData['currentPlan']; $getCurrentPlanAdminCurrencySymbol = getAdminCurrencySymbol($currentPlan->currency); @endphp
@include('flash::message')
@if(currentActiveSubscription()->ends_at >= \Carbon\Carbon::now())

{{$planText}}


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

{{$cpData['name']}}

{{ __('messages.new_change.plan_price') }}

{{ $getCurrentPlanAdminCurrencySymbol }} {{ number_format($currentPlan->price) }}

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

{{$cpData['startAt']}}

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

{{$cpData['endsAt']}}

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

{{$cpData['usedDays']}} {{ __('messages.prescription.days') }}

{{ __('messages.new_change.remaining_days') }}

{{$cpData['remainingDays']}} {{ __('messages.prescription.days') }}

{{ __('messages.new_change.used_balance') }}

{{ $getCurrentPlanAdminCurrencySymbol }} {{$cpData['usedBalance']}}

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

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

{{ __('messages.new_change.new_plan') }}


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

{{$newPlan['name']}}

{{ __('messages.new_change.plan_price') }}

{{ $getSubscriptionPlanAdminCurrencySymbol }} {{ number_format($subscriptionsPricingPlan->price) }}

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

{{ $newPlan['startDate'] }}

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

{{$newPlan['endDate']}}

{{ __('messages.bill.total_days') }}

{{$newPlan['totalDays']}} {{ __('messages.prescription.days') }}

{{ __('messages.new_change.pre_plan')}}

{{ $getSubscriptionPlanAdminCurrencySymbol }} {{$newPlan['remainingBalance']}}

{{ __('messages.new_change.payable_amount')}}

{{ $getSubscriptionPlanAdminCurrencySymbol }} {{$newPlan['amountToPay']}}