feat: replace welcome page with new Home controller and product catalog view, while updating date formatting and Vite config

This commit is contained in:
Yoga Pangestu 2026-06-14 01:51:44 +07:00
parent 544afe7334
commit d50310c078
3 changed files with 5 additions and 5 deletions

View File

@ -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'),
);
}

View File

@ -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,
);
}
}

View File

@ -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'),
);
}