|
|
@ -16,7 +16,8 @@ class HumanResourceController extends Controller |
|
|
|
'role_id' => 'required', |
|
|
|
'role_id' => 'required', |
|
|
|
'name' => 'required', |
|
|
|
'name' => 'required', |
|
|
|
'ktp_number' => 'required|numeric|unique:m_users,ktp_number', |
|
|
|
'ktp_number' => 'required|numeric|unique:m_users,ktp_number', |
|
|
|
'employee_type' => 'required' |
|
|
|
'employee_type' => 'required', |
|
|
|
|
|
|
|
'company_id' => 'required' |
|
|
|
]); |
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
$data = $request->all(); |
|
|
|
$data = $request->all(); |
|
|
@ -118,7 +119,7 @@ class HumanResourceController extends Controller |
|
|
|
|
|
|
|
|
|
|
|
public function list() |
|
|
|
public function list() |
|
|
|
{ |
|
|
|
{ |
|
|
|
$data = HumanResource::select('id', 'name', 'role_id')->get(); |
|
|
|
$data = HumanResource::select('id', 'name', 'role_id','company_id')->get(); |
|
|
|
$countData = $data->count(); |
|
|
|
$countData = $data->count(); |
|
|
|
|
|
|
|
|
|
|
|
if ($data) { |
|
|
|
if ($data) { |
|
|
|