'datetime', 'clock_out' => 'datetime', 'clock_in_latitude' => 'float', 'clock_in_longitude' => 'float', 'clock_in_accuracy' => 'float', ]; public function user(): BelongsTo { return $this->belongsTo(User::class); } public function getIsVerifiedAttribute(): bool { return ! is_null($this->clock_in) && ! is_null($this->clock_out); } public function getVerificationLabelAttribute(): string { if (strtolower($this->status ?? '') === 'sakit') { return 'Sakit'; } if (strtolower($this->status ?? '') === 'izin') { return 'Izin'; } return $this->is_verified ? 'Benar' : 'Tidak Diterima'; } }