#22 - wip
This commit is contained in:
		| @@ -13,9 +13,11 @@ class VacationRequestActivityResource extends JsonResource | ||||
|     public function toArray($request): array | ||||
|     { | ||||
|         return [ | ||||
|             "date" => $this->created_at->toDisplayString(), | ||||
|             "who" => $this->user ? $this->user->fullName : __("System"), | ||||
|             "to" => $this->to->label(), | ||||
|             "date" => $this->created_at->format("d.m.Y"), | ||||
|             "time" => $this->created_at->format("H:i"), | ||||
|             "user" => $this->user ? $this->user->fullName : __("System"), | ||||
|             "state" => $this->to, | ||||
|             "text" => $this->to->label(), | ||||
|         ]; | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -17,7 +17,7 @@ class VacationRequestResource extends JsonResource | ||||
|             "name" => $this->name, | ||||
|             "user" => new UserResource($this->user), | ||||
|             "type" => $this->type->label(), | ||||
|             "state" => $this->state->label(), | ||||
|             "state" => $this->state, | ||||
|             "from" => $this->from->toDisplayString(), | ||||
|             "to" => $this->to->toDisplayString(), | ||||
|             "comment" => $this->comment, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user