|
|
@@ -24,7 +24,7 @@ public function toArray(Request $request): array
|
|
|
return [
|
|
|
'id' => $this->id,
|
|
|
'unit_id' => $this->unit_id,
|
|
|
- 'unit_name' => $this->whenLoaded('unit', fn() => $this->unit->fantasy_name),
|
|
|
+ 'unit_name' => $this->whenLoaded('unit', fn() => $this->unit->name),
|
|
|
'protocol' => $this->protocol,
|
|
|
'start_date' => $this->start_date?->format('Y-m-d'),
|
|
|
'end_date' => $this->end_date?->format('Y-m-d'),
|