- Payroll, PayrollSetting 모델 생성 - PayrollService 구현 (CRUD, 자동계산, 간이세액표, 일괄생성) - Web/API 컨트롤러 생성 (HTMX/JSON 이중 응답) - 급여 목록, 통계 카드, 급여 설정 뷰 생성 - 라우트 추가 (web.php, api.php) - 상태 흐름: draft → confirmed → paid
24 lines
1.3 KiB
PHP
24 lines
1.3 KiB
PHP
{{-- 급여 월간 통계 카드 (HTMX로 갱신) --}}
|
|
<div class="grid gap-4" style="grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));">
|
|
<div class="bg-white rounded-lg shadow-sm p-4">
|
|
<div class="text-sm text-gray-500">총 지급액</div>
|
|
<div class="text-2xl font-bold text-blue-600">{{ number_format($stats['total_gross']) }}</div>
|
|
</div>
|
|
<div class="bg-white rounded-lg shadow-sm p-4">
|
|
<div class="text-sm text-gray-500">총 공제액</div>
|
|
<div class="text-2xl font-bold text-red-600">{{ number_format($stats['total_deductions']) }}</div>
|
|
</div>
|
|
<div class="bg-white rounded-lg shadow-sm p-4">
|
|
<div class="text-sm text-gray-500">실수령 총액</div>
|
|
<div class="text-2xl font-bold text-emerald-600">{{ number_format($stats['total_net']) }}</div>
|
|
</div>
|
|
<div class="bg-white rounded-lg shadow-sm p-4">
|
|
<div class="text-sm text-gray-500">대상 인원</div>
|
|
<div class="text-2xl font-bold text-gray-600">{{ $stats['total_count'] }}명</div>
|
|
</div>
|
|
<div class="bg-white rounded-lg shadow-sm p-4">
|
|
<div class="text-sm text-gray-500">미확정</div>
|
|
<div class="text-2xl font-bold text-amber-600">{{ $stats['draft_count'] }}건</div>
|
|
</div>
|
|
</div>
|