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



@php $cpData = getCurrentPlanDetails(); $planText = $cpData['isExpired'] ? 'Current Expired Plan' : 'Current Plan'; $currentPlan = $cpData['currentPlan']; @endphp
@if (currentActiveSubscription()->end_date >= \Carbon\Carbon::now())

{{ $planText }}


Plan Name

{{ $cpData['name'] }}

Plan Price

{{ getAdminSubscriptionPlanCurrencyIcon($currentPlan->currency_id) }} {{ number_format($currentPlan->price) }}

Start Date

{{ $cpData['startAt'] }}

End Date

{{ $cpData['endsAt'] }}

Used Days

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

Remaining Days

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

Used Balance

{{ getAdminSubscriptionPlanCurrencyIcon($currentPlan->currency_id) }} {{ $cpData['usedBalance'] }}

Remaining Balance

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

New Plan


Plan Name

{{ $newPlan['name'] }}

Plan Price

{{ getAdminSubscriptionPlanCurrencyIcon($subscriptionsPricingPlan->currency_id) }} {{ number_format($subscriptionsPricingPlan->price) }}

Start Date

{{ $newPlan['startDate'] }}

End Date

{{ $newPlan['endDate'] }}

Total Days

{{ $newPlan['totalDays'] }} Days

Remaining Balance of Prev. Plan

{{ getAdminSubscriptionPlanCurrencyIcon($subscriptionsPricingPlan->currency_id) }} {{ $newPlan['remainingBalance'] }}

Payable Amount

{{ getAdminSubscriptionPlanCurrencyIcon($subscriptionsPricingPlan->currency_id) }} {{ $newPlan['amountToPay'] }}
{{ Form::select('payment_type', $paymentTypes, \App\Models\Subscription::TYPE_STRIPE, ['required', 'id' => 'paymentType']) }}
@if ($transction)
@endif
@endsection @section('scripts') @endsection