@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')}}

{{ $currentPlan->currency->currency_icon }} {{ number_format($currentPlan->price) }}

{{__('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')}}

{{ $currentPlan->currency->currency_icon }} {{$cpData['usedBalance']}}

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

{{ $currentPlan->currency->currency_icon }} {{$cpData['remainingBalance']}}
@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')}}

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

{{__('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')}}

{{ $subscriptionsPricingPlan->currency->currency_icon }}

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

{{ $subscriptionsPricingPlan->currency->currency_icon }} {{$newPlan['remainingBalance']}}

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

{{ $subscriptionsPricingPlan->currency->currency_icon }} {{($newPlan['amountToPay'])}}
{{ Form::text('coupon_code',null,['class'=>'form-control','id'=>'paymentCouponCode', 'placeholder'=>__("messages.coupon_code.enter_coupon_code")]) }} {{ __('messages.common.apply') }}
{{ Form::select('payment_type', $paymentTypes ,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('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