update bugs fix detail final log
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user