diff --git a/app/Infrastructure/Http/Resources/VacationRequestResource.php b/app/Infrastructure/Http/Resources/VacationRequestResource.php index 112d7a0..e5caa51 100644 --- a/app/Infrastructure/Http/Resources/VacationRequestResource.php +++ b/app/Infrastructure/Http/Resources/VacationRequestResource.php @@ -18,8 +18,8 @@ class VacationRequestResource extends JsonResource "user" => new UserResource($this->user), "type" => $this->type->label(), "state" => $this->state, - "from" => $this->from->toDisplayString(), - "to" => $this->to->toDisplayString(), + "from" => $this->from->toDisplayDate(), + "to" => $this->to->toDisplayDate(), "comment" => $this->comment, "days" => VacationResource::collection($this->vacations), ]; diff --git a/resources/js/Pages/Dashboard.vue b/resources/js/Pages/Dashboard.vue index 62e0745..caced10 100644 --- a/resources/js/Pages/Dashboard.vue +++ b/resources/js/Pages/Dashboard.vue @@ -112,7 +112,7 @@ :key="request.id" class="py-5" > -
+ {{ request.user.name }} +
++ {{ request.user.email }} +
+