Преглед изворни кода

member - data inizio corso cambiato default in giorno odierno

ferrari пре 1 месец
родитељ
комит
4f45b4642b
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      app/Http/Livewire/Member.php

+ 4 - 2
app/Http/Livewire/Member.php

@@ -402,7 +402,8 @@ class Member extends Component
             $c = \App\Models\Course::findOrFail($this->course_course_id);
             $this->course_price = formatPrice($c->price);
             $this->course_subscription_price = formatPrice($c->subscription_price);
-            $this->course_date_from = $c->date_from;
+            // $this->course_date_from = $c->date_from;
+            $this->course_date_from = date('Y-m-d');
             $this->course_date_to = $c->date_to;
 
             // Carico gli abbonamenti e i mesi
@@ -796,7 +797,8 @@ class Member extends Component
             $c = \App\Models\Course::findOrFail($this->course_course_id);
             $this->course_price = formatPrice($c->price);
             $this->course_subscription_price = formatPrice($c->subscription_price);
-            $this->course_date_from = $c->date_from;
+            // $this->course_date_from = $c->date_from;
+            $this->course_date_from = date('Y-m-d');
             $this->course_date_to = $c->date_to;
             // Controllo se sono già iscritto la corso
             $this->course_exist = \App\Models\MemberCourse::where('course_id', $this->course_course_id)->where('member_id', $this->dataId)->count() > 0;