feat: replace welcome page with new Home controller and product catalog view, while updating date formatting and Vite config
This commit is contained in:
parent
544afe7334
commit
d50310c078
@ -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'),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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'),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user