'date:Y-m-d', 'check_in_at' => 'datetime', 'check_out_at' => 'datetime', 'check_in_latitude' => 'decimal:7', 'check_in_longitude' => 'decimal:7', 'check_out_latitude' => 'decimal:7', 'check_out_longitude' => 'decimal:7', 'work_duration_minutes' => 'integer', ]; } protected function attendanceDate(): Attribute { return Attribute::make( get: fn ($value) => $value ? \Carbon\Carbon::parse($value)->translatedFormat('l, d F Y') : null, ); } public function employee(): BelongsTo { return $this->belongsTo(Employee::class); } public function payrollAdjustments(): HasMany { return $this->hasMany(PayrollAdjustment::class); } }