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

{{ $planText }}

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

{{ $cpData['name'] }}

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

{{ getAdminCurrencySymbol($currentPlan->currency) }} {{ 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') }}

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

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

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

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

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

{{ $newPlan['name'] }}

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

{{ getAdminCurrencySymbol($subscriptionsPricingPlan->currency) }} {{ 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') }}

{{ getAdminCurrencySymbol($subscriptionsPricingPlan->currency) }} {{ $newPlan['remainingBalance'] }}

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

{{ getAdminCurrencySymbol($subscriptionsPricingPlan->currency) }} {{ $newPlan['amountToPay'] }}