mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-01-16 19:05:08 -05:00
RegistrationFormSteps Module Update
Remove payment code subscription price
This commit is contained in:
@@ -376,7 +376,7 @@ class RegistrationFormStepsController extends Controller
|
||||
{
|
||||
|
||||
|
||||
$paymentCode = PaymentCode::with('planPrice.plan','addons')->withSum('addons', 'price')->where('code',$code)->where('type','registration')->whereNull('user_id')->first();
|
||||
$paymentCode = PaymentCode::with('planPrice.plan','addons')->where('code',$code)->where('type','registration')->whereNull('user_id')->first();
|
||||
if($paymentCode){
|
||||
$loginPageInfo = LoginPage::findOrFail(2);
|
||||
return view('staffportal::register', compact('loginPageInfo','paymentCode'));
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"/js/register.js": "/js/register.js?id=a1c4a98b153836d913a99bacbb09cb47",
|
||||
"/js/register.js": "/js/register.js?id=e873b4bdecec37dac95734476257e44a",
|
||||
"/css/register.css": "/css/register.css?id=9a13495806234e1850a6e831a065ca99",
|
||||
"/css/base.css": "/css/base.css?id=fca517109ec78159f16656cac1d4255e"
|
||||
"/css/base.css": "/css/base.css?id=c6019de6f607ccaab0099c7ffa993513"
|
||||
}
|
||||
|
||||
@@ -4,22 +4,22 @@
|
||||
|
||||
<div class="pricing-list bounce-invert grid justify-content-center">
|
||||
|
||||
<li class="col-12 md:col-4 exclusive">
|
||||
<li class="col-12 md:col-6 exclusive">
|
||||
<ul class="pricing-wrapper">
|
||||
<label class="d-block">
|
||||
<li class="is-visible subscription">
|
||||
<header class="pricing-header pb-2">
|
||||
<div class="d-flex justify-content-between">
|
||||
<div>
|
||||
<h2>{{ subscription.plan_price.plan.title }}</h2>
|
||||
<h2>{{ subscription.plan_price.plan.title }} <span style="font-size:25px;">({{ subscription.plan_price.access_expire_duration }} Months)</span></h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="price pb-1">
|
||||
<!-- <div class="price pb-1">
|
||||
<span class="currency">$</span>
|
||||
<span class="value">{{ (subscription.plan_price.price / subscription.plan_price.access_expire_duration).toFixed(2) }}</span>
|
||||
<span class="duration">mo</span>
|
||||
<p class="discount">(${{ subscription.plan_price.price.toFixed(2) }} paid for {{subscription.plan_price.access_expire_duration}} months)</p>
|
||||
</div>
|
||||
</div> -->
|
||||
</header>
|
||||
<div class="pricing-body">
|
||||
<div class="details">
|
||||
@@ -51,27 +51,6 @@
|
||||
</label>
|
||||
</ul>
|
||||
</li>
|
||||
<div class="col-12 md:col-4 align-self-center vertical-align-middle">
|
||||
|
||||
<ul class="list-none p-0 m-0 w-full">
|
||||
<li class="mb-3">
|
||||
<h6 class="font-medium text-900 text-lg">Summary</h6>
|
||||
</li>
|
||||
<li class="flex justify-content-between mb-3" >
|
||||
<span class="text-900">Subscription</span>
|
||||
<span class="text-900 font-medium text-md">${{ subscription.plan_price.price.toFixed(2) }}</span>
|
||||
</li>
|
||||
<li class="flex justify-content-between mb-3" v-for="addon in subscription.addons">
|
||||
<span class="text-900">{{ addon.description }}</span>
|
||||
<span class="text-900 font-medium text-md">${{ addon.price.toFixed(2) }}</span>
|
||||
</li>
|
||||
<li class="flex justify-content-between border-top-1 surface-border py-3">
|
||||
<h6 class="text-900 font-medium text-lg">Total</h6>
|
||||
<span class="text-900 font-bold text-lg">${{ grand_total }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@@ -116,12 +95,6 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
grand_total() {
|
||||
const e = this;
|
||||
return e.subscription?.addons_sum_price ? (parseFloat(e.subscription.plan_price.price) + parseFloat(e.subscription.addons_sum_price)).toFixed(2) : parseFloat(e.subscription.plan_price.price).toFixed(2);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handelBack(){
|
||||
this.$emit('on-back', 1)
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
}
|
||||
|
||||
li.subscription {
|
||||
min-height: 380px!important;
|
||||
min-height: 315px!important;
|
||||
border: 7px solid var(--base_color)!important;
|
||||
-webkit-transition: border .3s!important;
|
||||
-o-transition: border .3s!important;
|
||||
|
||||
Reference in New Issue
Block a user