feat: [hr] 사원등록 기능 확장

- 기본정보에 주민등록번호 필드 추가
- 급여이체정보 섹션 추가 (이체은행, 예금주, 계좌번호)
- 부양가족 정보 섹션 추가 (동적 행 추가/삭제)
- 첨부파일 업로드/다운로드/삭제 기능 추가
- 은행 목록 config/banks.php 설정 파일 생성
- show 페이지 주민등록번호 뒷자리 마스킹 처리
This commit is contained in:
김보곤
2026-02-26 19:59:15 +09:00
parent 5e06f53d2d
commit 2edce0d282
9 changed files with 739 additions and 12 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Http\Controllers\HR;
use App\Http\Controllers\Controller;
use App\Models\Boards\File;
use App\Services\HR\EmployeeService;
use Illuminate\Contracts\View\View;
@@ -39,6 +40,7 @@ public function create(): View
'departments' => $departments,
'ranks' => $ranks,
'titles' => $titles,
'banks' => config('banks', []),
]);
}
@@ -53,8 +55,15 @@ public function show(int $id): View
abort(404, '사원 정보를 찾을 수 없습니다.');
}
$files = File::where('document_type', 'employee_profile')
->where('document_id', $employee->id)
->where('tenant_id', session('selected_tenant_id'))
->orderBy('created_at', 'desc')
->get();
return view('hr.employees.show', [
'employee' => $employee,
'files' => $files,
]);
}
@@ -73,11 +82,19 @@ public function edit(int $id): View
$ranks = $this->employeeService->getPositions('rank');
$titles = $this->employeeService->getPositions('title');
$files = File::where('document_type', 'employee_profile')
->where('document_id', $employee->id)
->where('tenant_id', session('selected_tenant_id'))
->orderBy('created_at', 'desc')
->get();
return view('hr.employees.edit', [
'employee' => $employee,
'departments' => $departments,
'ranks' => $ranks,
'titles' => $titles,
'banks' => config('banks', []),
'files' => $files,
]);
}
}