|
|
@@ -1184,7 +1184,7 @@ class Member extends Component
|
|
|
$this->age = $interval->y . " anni";
|
|
|
$this->under18 = $interval->y < 18;
|
|
|
$this->update = true;
|
|
|
- $this->add = false;
|
|
|
+ $this->add = false;
|
|
|
|
|
|
$this->emit('setIds', $this->nation_id, $this->birth_nation_id);
|
|
|
|
|
|
@@ -1778,6 +1778,19 @@ class Member extends Component
|
|
|
foreach (json_decode($memberCourse->months) as $z) {
|
|
|
$this->course_months[] = array("m" => $z->m, "status" => $z->status);
|
|
|
}
|
|
|
+
|
|
|
+ $course_subscription_ids = [];
|
|
|
+ $this->course_price_list = [];
|
|
|
+ if ($c->prices != null) {
|
|
|
+ foreach (json_decode($c->prices) as $z) {
|
|
|
+ $this->course_price_list[$z->course_subscription_id] = $z->price;
|
|
|
+ if ($z->price > 0)
|
|
|
+ $course_subscription_ids[] = $z->course_subscription_id;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ $this->course_subscriptions = \App\Models\CourseSubscription::select('*')->whereIn('id', $course_subscription_ids)->where('enabled', true)->get();
|
|
|
+
|
|
|
$this->courseDataId = $memberCourse->id;
|
|
|
$this->updateCourse = true;
|
|
|
$this->addCourse = false;
|