@extends('layouts.app') @section('title') {{ __('messages.subscription.payment') }} @endsection @section('content') @php if ($customField) { $subcriptionPrice = $customField->custom_vcard_price; } else { $subcriptionPrice = $subscriptionsPricingPlan->price; } @endphp
@include('flash::message')
@php $cpData = getCurrentPlanDetails(); $planText = $cpData['isExpired'] ? __('messages.subscription.current_expire') : __('messages.subscription.current_plan'); $currentPlan = $cpData['currentPlan']; @endphp
@if ($planText != 'Current Expired Plan')

{{ $planText }}

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

{{ $cpData['name'] }}

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

{{ getCurrencyAmount($currentPlan->price, $currentPlan->currency->currency_icon) }}

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

{{ localized_date($cpData['startAt'], 'jS F, Y') }}

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

{{ localized_date($cpData['endsAt'], 'jS F, Y') }}

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

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

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

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

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

{{ getCurrencyAmount($cpData['usedBalance'], $currentPlan->currency->currency_icon) }}

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

{{ getCurrencyAmount($cpData['remainingBalance'], $currentPlan->currency->currency_icon) }}
@endif @php $newPlan = getProratedPlanData($subscriptionsPricingPlan->id); @endphp {{ Form::hidden('amount_to_pay', $newPlan['amountToPay'], ['id' => 'amountToPay']) }} {{ Form::hidden('plan_end_date', $newPlan['endDate'], ['id' => 'planEndDate']) }}

{{ __('messages.plan.new_plan') }} @if ($newPlan['trialDays'] > 0) {{ __('messages.subscription.trial_plan') }} @endif

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

{{ $newPlan['name'] }}

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

{{ getCurrencyAmount($subcriptionPrice, $subscriptionsPricingPlan->currency->currency_icon) }}

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

{{ localized_date($newPlan['startDate'], 'jS F, Y') }}

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

{{ localized_date($newPlan['endDate'], 'jS F, Y') }}

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

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

{{ __('messages.coupon_code.coupon_discount') }}

{{ getCurrencyAmount($subcriptionPrice, $subscriptionsPricingPlan->currency->currency_icon) }}

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

{{ getCurrencyAmount($newPlan['remainingBalance'], $subscriptionsPricingPlan->currency->currency_icon) }}

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

@php if ($customField) { $amountTopay = $customField->custom_vcard_price - $cpData['remainingBalance']; } else { $amountTopay = $newPlan['amountToPay']; } if ($amountTopay < 0) { $amountTopay = 0; } @endphp {{ getCurrencyAmount($amountTopay, $subscriptionsPricingPlan->currency->currency_icon) }}

{{ __('messages.payment_types') }}

@if (isset($paymentTypes[1]))
@endif @if (isset($paymentTypes[2]))
@endif @if (isset($paymentTypes[3]))
@endif @if (isset($paymentTypes[5]))
@endif @if (isset($paymentTypes[6]))
@endif @if (isset($paymentTypes[7]))
@endif @if (isset($paymentTypes[4]))
@endif
{{ Form::text('coupon_code', null, ['class' => 'form-control', 'id' => 'paymentCouponCode', 'placeholder' => __('messages.coupon_code.enter_coupon_code')]) }} {{ __('messages.common.apply') }}

{{ __('messages.vcard.manual_payment_guide') }} :-

@if (getSuperAdminSettingValue('is_manual_payment_guide_on'))
{!! getSuperAdminSettingValue('manual_payment_guide') !!}
@endif
{{ Form::textarea('notes', null, ['class' => 'form-control', 'placeholder' => __('messages.form.add_your_note'), 'rows' => '5']) }}
{{ Form::hidden('customPlanPrice', isset($customField) ? $customField->id : null, ['id' => 'customFieldId']) }} {{ Form::hidden('planId', $subscriptionsPricingPlan->id, ['id' => 'planId', 'class' => 'manuallyPaymentPlanId']) }} {{ Form::hidden('price', $subcriptionPrice, ['id' => 'price', 'class' => 'manuallyPaymentDataPlanPrice']) }} {{ Form::hidden('currency_icon', $subscriptionsPricingPlan->currency->currency_icon, ['id' => 'currencyIcon', 'class' => 'currencyIcon']) }} {{ Form::hidden('amount_to_pay', $newPlan['amountToPay'], ['id' => 'amountToPay']) }} {{ Form::hidden('couponCode', null, ['id' => 'couponCode']) }} {{ Form::hidden('couponCodeId', null, ['id' => 'couponCodeId']) }} {{ Form::hidden('plan_end_date', $newPlan['endDate'], ['id' => 'planEndDate']) }} {{ Form::hidden('payment_type', 4, ['id' => 'payment_type']) }}
@endsection @pushOnce('scripts') @endPushOnce