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

@yield('title')

@endsection @section('content')
@include('flash::message')
@php $cpData = getCurrentPlanDetails(); $planText = ($cpData['isExpired']) ? 'Current Expired Plan' : __('messages.subscription_plans.current_plan'); $currentPlan = $cpData['currentPlan']; @endphp
@if(currentActiveSubscription()->end_date >= \Carbon\Carbon::now())

{{$planText}}

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

{{$cpData['name']}}

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

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

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

{{$cpData['startAt']}}

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

{{$cpData['endsAt']}}

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

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

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

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

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

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

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

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

{{ __('messages.subscription_plans.new_plan') }}

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

{{$newPlan['name']}}

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

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

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

{{$newPlan['startDate']}}

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

{{$newPlan['endDate']}}

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

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

{{ __('messages.subscription_plans.Remaining_Balance_of_Prev_Plan') }}

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

{{ __('messages.subscription_plans.amount_to_pay') }}

{{ getAdminSubscriptionPlanCurrencyIcon($subscriptionsPricingPlan->currency_id) }} {{$newPlan['amountToPay']}}
@if($transaction)
{{ Form::select('payment_type', $paymentTypes, \App\Models\Subscription::TYPE_STRIPE, ['class' => 'form-select form-select-solid','required', 'id' => 'paymentType', 'data-control' => 'select2']) }}
@else
{{ Form::select('payment_type', $paymentTypes, \App\Models\Subscription::TYPE_STRIPE, ['class' => 'form-select form-select-solid','required', 'id' => 'paymentType', 'data-control' => 'select2']) }}
@endif
{{ Form::label('paymentAttachment','Attach Files'.':', ['class' => 'form-label mb-3']) }} {{ Form::file('payment_attachments[]', ['id'=>'paymentAttachment','class' => 'form-control', 'multiple' => true]) }}
@endsection