@extends('layouts.app') @section('title') {{ __('messages.subscription.payment') }} @endsection @section('content')
@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') }}

{{ $cpData['startAt'] }}

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

{{ $cpData['endsAt'] }}

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

{{ $cpData['usedDays'] }} 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') }}

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

{{ $newPlan['name'] }}

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

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

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

{{ $newPlan['startDate'] }}

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

{{ $newPlan['endDate'] }}

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

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

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

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

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

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

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

{{ getCurrencyAmount($newPlan['amountToPay'], $subscriptionsPricingPlan->currency->currency_icon) }}
{{ Form::text('coupon_code', null, ['class' => 'form-control', 'id' => 'paymentCouponCode', 'placeholder' => __('messages.coupon_code.enter_coupon_code')]) }} {{ __('messages.common.apply') }}
@php $translatedPaymentTypes = collect($paymentTypes)->map(function ($value) { return trans('messages.' . $value); }); @endphp
{{ Form::select('payment_type', $translatedPaymentTypes, null, ['class' => 'form-select', 'required', 'id' => 'paymentType', 'data-control' => 'select2', 'placeholder' => __('messages.select_payment_type')]) }}
{{ Form::textarea('notes', null, ['class' => 'form-control', 'placeholder' => 'Add Your Notes', 'rows' => '5']) }}
{{ Form::hidden('planId', $subscriptionsPricingPlan->id, ['id' => 'planId', 'class' => 'manuallyPaymentPlanId']) }} {{ Form::hidden('price', $subscriptionsPricingPlan->price, ['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']) }}
@if (getSuperAdminSettingValue('is_manual_payment_guide_on'))
{!! getSuperAdminSettingValue('manual_payment_guide') !!}
@endif
@endsection @pushOnce('scripts') @endPushOnce