diff --git a/app/Http/Views/MemberView.php b/app/Http/Views/MemberView.php
index d67b4a45..d31c2b97 100644
--- a/app/Http/Views/MemberView.php
+++ b/app/Http/Views/MemberView.php
@@ -22,7 +22,7 @@ class MemberView
'data' => MemberResource::collection(Member::select('*')
->filter($filter)->search($request->query('search', null))
->with('billKind')->with('payments.subscription')->with('memberships')->with('courses')->with('subscription')->with('leaderMemberships')->with('ageGroupMemberships')
- ->withIsConfirmed()->withPendingPayment()
+ ->withPendingPayment()
->orderByRaw('lastname, firstname')
->paginate(15)
),
diff --git a/app/Member/Member.php b/app/Member/Member.php
index 4219b953..3786e493 100644
--- a/app/Member/Member.php
+++ b/app/Member/Member.php
@@ -30,7 +30,6 @@ use Zoomyboy\LaravelNami\Data\MembershipEntry;
/**
* @property string $subscription_name
* @property int $pending_payment
- * @property bool $is_confirmed
*/
class Member extends Model
{
@@ -62,7 +61,6 @@ class Member extends Model
'region_id' => 'integer',
'confession_id' => 'integer',
'nami_id' => 'integer',
- 'is_confirmed' => 'boolean',
'has_svk' => 'boolean',
'has_vk' => 'boolean',
'multiply_pv' => 'boolean',
@@ -283,11 +281,6 @@ class Member extends Model
return $q->orderByRaw('firstname, lastname');
}
- public function scopeWithIsConfirmed(Builder $q): Builder
- {
- return $q->selectSub('DATEDIFF(NOW(), IFNULL(confirmed_at, DATE_SUB(NOW(), INTERVAL 3 YEAR))) < 712', 'is_confirmed');
- }
-
public function scopeWithPendingPayment(Builder $q): Builder
{
return $q->addSelect([
diff --git a/app/Member/MemberConfirmController.php b/app/Member/MemberConfirmController.php
deleted file mode 100644
index db717ff9..00000000
--- a/app/Member/MemberConfirmController.php
+++ /dev/null
@@ -1,17 +0,0 @@
-update(['confirmed_at' => now()]);
-
- return redirect()->route('member.index');
- }
-}
diff --git a/app/Member/MemberResource.php b/app/Member/MemberResource.php
index f81a957d..cef8e14a 100644
--- a/app/Member/MemberResource.php
+++ b/app/Member/MemberResource.php
@@ -57,7 +57,6 @@ class MemberResource extends JsonResource
'bill_kind_id' => $this->bill_kind_id,
'bill_kind_name' => optional($this->billKind)->name,
'has_nami' => null !== $this->nami_id,
- 'is_confirmed' => $this->is_confirmed,
'children_phone' => $this->children_phone,
'payments' => PaymentResource::collection($this->whenLoaded('payments')),
'memberships' => MembershipResource::collection($this->whenLoaded('memberships')),
diff --git a/database/migrations/2022_11_23_220958_drop_members_confirmed_at_column.php b/database/migrations/2022_11_23_220958_drop_members_confirmed_at_column.php
new file mode 100644
index 00000000..cc7fe394
--- /dev/null
+++ b/database/migrations/2022_11_23_220958_drop_members_confirmed_at_column.php
@@ -0,0 +1,28 @@
+dropColumn('confirmed_at');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ }
+};
diff --git a/resources/js/views/member/VForm.vue b/resources/js/views/member/VForm.vue
index da7da721..1434c1b1 100644
--- a/resources/js/views/member/VForm.vue
+++ b/resources/js/views/member/VForm.vue
@@ -19,14 +19,6 @@