@extends('layouts.app') @section('title', 'Rekap & Laporan Absensi') @section('content')

Absensi / Rekap & Laporan

Total Absensi

{{ $totalAttendance }}

Hadir

{{ $hadirCount }}

{{ $totalAttendance > 0 ? round(($hadirCount / $totalAttendance) * 100, 1) : 0 }}%
Terlambat

{{ $terlambatCount }}

{{ $totalAttendance > 0 ? round(($terlambatCount / $totalAttendance) * 100, 1) : 0 }}%
Alpha

{{ $alphaCount }}

{{ $totalAttendance > 0 ? round(($alphaCount / $totalAttendance) * 100, 1) : 0 }}%
Grafik Absensi Harian
{{ \Carbon\Carbon::create($year, $month)->locale('id')->translatedFormat('F Y') }}
Distribusi Status
Hadir {{ $hadirCount }}
Terlambat {{ $terlambatCount }}
Izin {{ $izinCount }}
Alpha {{ $alphaCount }}
Top 10 Karyawan Terlambat
@forelse($topLateEmployees as $index => $emp) @empty @endforelse
Rank NIP Nama Karyawan Jumlah Terlambat Total Menit Terlambat Rata-rata
@if ($index == 0) 🥇 #1 @elseif($index == 1) 🥈 #2 @elseif($index == 2) 🥉 #3 @else #{{ $index + 1 }} @endif {{ $emp->employee_code }} {{ $emp->name }} {{ $emp->late_count }}x {{ $emp->total_late }} menit {{ round($emp->total_late / $emp->late_count, 1) }} menit/hari

Tidak ada keterlambatan! 🎉

@push('scripts') @endpush @endsection