1
0
forked from poc/pds

modified logic in loading inter unit staff codes

This commit is contained in:
dhanabalan
2026-07-20 08:50:53 +05:30
parent aea402cd4c
commit f6179a0143

View File

@@ -69,7 +69,13 @@ class VisitorEntryResource extends Resource
->options(
EmployeeMaster::distinct()
->orderBy('code')
->pluck('code', 'code')
->get(['code', 'name'])
->mapWithKeys(function ($employee) {
return [
$employee->code => "{$employee->code} ({$employee->name})"
];
})
// ->pluck('code', 'code')
)
->searchable()
->reactive()