fix: remove remaining references to AttendancePolicy
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\AttendancePolicy;
|
||||
use App\Models\Branch;
|
||||
use App\Models\Candidate;
|
||||
use App\Models\JobPosting;
|
||||
@@ -303,9 +302,7 @@ class CandidateController extends Controller
|
||||
->where('status', 'active')
|
||||
->get(['id', 'name', 'start_time', 'end_time']);
|
||||
|
||||
$attendancePolicies = AttendancePolicy::whereIn('created_by', getCompanyAndUsersId())
|
||||
->where('status', 'active')
|
||||
->get(['id', 'name']);
|
||||
|
||||
|
||||
return Inertia::render('hr/recruitment/candidates/convert-to-employee', [
|
||||
'candidate' => $candidate->load(['job', 'source']),
|
||||
@@ -314,7 +311,7 @@ class CandidateController extends Controller
|
||||
'designations' => $designations,
|
||||
'documentTypes' => $documentTypes,
|
||||
'shifts' => $shifts,
|
||||
'attendancePolicies' => $attendancePolicies,
|
||||
|
||||
'generatedEmployeeId' => Employee::generateEmployeeId(),
|
||||
]);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user