|
@@ -39,6 +39,7 @@ public function toArray(Request $request): array
|
|
|
'payment_method' => $this->payment_method,
|
|
'payment_method' => $this->payment_method,
|
|
|
'fine_cancelled' => $this->fine_cancelled,
|
|
'fine_cancelled' => $this->fine_cancelled,
|
|
|
'status' => $this->status,
|
|
'status' => $this->status,
|
|
|
|
|
+ 'package_name' => $this->whenLoaded('classPackageUnit', fn () => $this->classPackageUnit?->name),
|
|
|
'student_name' => $this->whenLoaded('student', fn () => $this->student->name),
|
|
'student_name' => $this->whenLoaded('student', fn () => $this->student->name),
|
|
|
'student_phone' => $this->whenLoaded('student', fn () => $this->student->phone),
|
|
'student_phone' => $this->whenLoaded('student', fn () => $this->student->phone),
|
|
|
'student_city' => $this->whenLoaded('student', fn () => $this->student->city?->name),
|
|
'student_city' => $this->whenLoaded('student', fn () => $this->student->city?->name),
|