{{-- 근태현황 테이블 (HTMX로 로드) --}} @php use App\Models\HR\Attendance; @endphp @forelse($attendances as $attendance) @php $profile = $attendance->user?->tenantProfiles?->first(); $department = $profile?->department; $displayName = $profile?->display_name ?? $attendance->user?->name ?? '-'; $color = Attendance::STATUS_COLORS[$attendance->status] ?? 'gray'; $label = Attendance::STATUS_MAP[$attendance->status] ?? $attendance->status; $checkIn = $attendance->check_in ? substr($attendance->check_in, 0, 5) : '-'; $checkOut = $attendance->check_out ? substr($attendance->check_out, 0, 5) : '-'; @endphp {{-- 체크박스 --}} {{-- 날짜 --}} {{-- 사원 --}} {{-- 부서 --}} {{-- 상태 --}} {{-- 출근 --}} {{-- 퇴근 --}} {{-- 비고 --}} {{-- GPS --}} {{-- 작업 --}} @empty @endforelse
날짜 사원 부서 상태 출근 퇴근 비고 GPS 작업
{{ $attendance->base_date->format('m-d') }} {{ ['일','월','화','수','목','금','토'][$attendance->base_date->dayOfWeek] }}
{{ mb_substr($displayName, 0, 1) }}
{{ $displayName }}
{{ $department?->name ?? '-' }} {{ $label }} {{ $checkIn }} {{ $checkOut }} {{ $attendance->remarks ?? '' }} @php $gpsData = $attendance->json_details['gps_data'] ?? null; @endphp @if($gpsData) @else @endif
{{-- 수정 --}} {{-- 삭제 --}}

근태 기록이 없습니다.

{{-- 페이지네이션 --}} @if($attendances->hasPages())
{{ $attendances->links() }}
@endif