update bugs fix detail final log

This commit is contained in:
Linksehat Staging Server
2024-01-07 09:08:00 +07:00
parent d057021ef9
commit 474ee19f2a
2 changed files with 12 additions and 29 deletions

View File

@@ -245,31 +245,6 @@ class Member extends Model
);
}
protected function maritalStatus(): Attribute
{
if ($this->relationLoaded('person')) {
$marital_status = $this->person->marital_status ?? ($this->marital_status ?? null);
if ($marital_status === 'M') {
$marital_status = 'Menikah';
}
return Attribute::make(
get: fn () => $marital_status
);
} else {
$marital_status = $this->marital_status ?? null;
if ($marital_status === 'M') {
$marital_status = 'Menikah';
}
return Attribute::make(
get: fn () => $marital_status
);
}
}
protected function relationship(): Attribute
{
$relation = null;