From 8a8f6e86f818c54270fbf3599f6fbd1c3eac7bea Mon Sep 17 00:00:00 2001 From: mohanmd Date: Wed, 24 Jun 2026 00:06:05 +0530 Subject: [PATCH] add experience, age, and visa details to candidates API --- app/Http/Controllers/Api/EmployerWorkerController.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Http/Controllers/Api/EmployerWorkerController.php b/app/Http/Controllers/Api/EmployerWorkerController.php index 4db4198..a85497f 100644 --- a/app/Http/Controllers/Api/EmployerWorkerController.php +++ b/app/Http/Controllers/Api/EmployerWorkerController.php @@ -457,6 +457,11 @@ public function getCandidates(Request $request) 'in_country' => (bool)$w->in_country, 'visa_status' => $w->visa_status, 'gender' => $w->gender, + 'age' => $w->age, + 'experience' => $w->experience, + 'visa_expiry_date' => $w->visa_expiry_date, + 'document_expiry_days' => $w->document_expiry_days, + 'document_expiry_status' => $w->document_expiry_status, ]; })->filter()->values()->toArray(); @@ -499,6 +504,11 @@ public function getCandidates(Request $request) 'in_country' => (bool)$w->in_country, 'visa_status' => $w->visa_status, 'gender' => $w->gender, + 'age' => $w->age, + 'experience' => $w->experience, + 'visa_expiry_date' => $w->visa_expiry_date, + 'document_expiry_days' => $w->document_expiry_days, + 'document_expiry_status' => $w->document_expiry_status, ]; })->filter()->values()->toArray();