@extends('layouts.app') @section('title') {{__('messages.subscription_plans.payment_type')}} @endsection @section('page_css') @endsection @section('content') @include('flash::message')
@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, ['class' => 'form-select form-select-solid','required', 'id' => 'paymentType', 'data-control' => 'select2']) }}
@endsection @section('page_scripts') @endsection @section('scripts') @endsection