From d50310c078923c7f27bb6b5d898879bb81faf134 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Sun, 14 Jun 2026 01:51:44 +0700 Subject: [PATCH] feat: replace welcome page with new Home controller and product catalog view, while updating date formatting and Vite config --- app/Models/Attendance.php | 4 ++-- app/Models/Employee.php | 4 ++-- app/Models/UserProfile.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Models/Attendance.php b/app/Models/Attendance.php index 0eb0e11..2c89ca2 100644 --- a/app/Models/Attendance.php +++ b/app/Models/Attendance.php @@ -59,7 +59,7 @@ public function attendanceDateFormatted(): Attribute public function checkInAtFormatted(): Attribute { return Attribute::make( - get: fn () => $this->check_in_at?->format('H:i'), + get: fn () => $this->check_in_at?->translatedFormat('H:i'), ); } @@ -77,7 +77,7 @@ public function checkInPhotoUrl(): Attribute public function checkOutAtFormatted(): Attribute { return Attribute::make( - get: fn () => $this->check_out_at?->format('H:i'), + get: fn () => $this->check_out_at?->translatedFormat('H:i'), ); } diff --git a/app/Models/Employee.php b/app/Models/Employee.php index f113445..f037481 100644 --- a/app/Models/Employee.php +++ b/app/Models/Employee.php @@ -100,7 +100,7 @@ public function employmentStatusLabel(): Attribute public function joinDateFormatted(): Attribute { return Attribute::make( - get: fn () => Carbon::parse($this->join_date)->format('l, d F Y'), + get: fn () => Carbon::parse($this->join_date)->translatedFormat('l, d F Y'), ); } @@ -114,7 +114,7 @@ public function joinDateInput(): Attribute public function resignDateFormatted(): Attribute { return Attribute::make( - get: fn () => $this->resign_date ? Carbon::parse($this->resign_date)->format('l, d F Y') : null, + get: fn () => $this->resign_date ? Carbon::parse($this->resign_date)->translatedFormat('l, d F Y') : null, ); } } diff --git a/app/Models/UserProfile.php b/app/Models/UserProfile.php index fcc2d6f..f8ed020 100644 --- a/app/Models/UserProfile.php +++ b/app/Models/UserProfile.php @@ -37,7 +37,7 @@ public function user(): BelongsTo public function birthDateFormatted(): Attribute { return Attribute::make( - get: fn () => Carbon::parse($this->birth_date)->format('l, d F Y'), + get: fn () => Carbon::parse($this->birth_date)->translatedFormat('l, d F Y'), ); }