@extends('layouts.admin') @section('content')

Dashboard Overview

{{ date('l, d F Y') }}
Total Karyawan

{{ $totalEmployees }}

Aktif Terdaftar di sistem
Hadir Hari Ini

{{ $totalPresentToday }}

@php $percentage = $totalEmployees > 0 ? ($totalPresentToday / $totalEmployees) * 100 : 0; @endphp
{{ round($percentage) }}% Kehadiran
Total Penggajian

Rp {{ number_format($totalPayroll, 0, ',', '.') }}

Akumulasi Total
Log Aktivitas Terbaru (Security Audit)
@forelse($recentLogs as $log) @empty @endforelse
Waktu Admin/Sistem Aktivitas Keterangan Alamat IP
{{ $log->created_at->format('d/m/Y') }} {{ $log->created_at->format('H:i') }} WIB
{{ $log->user ? $log->user->name : 'System' }}
{{ $log->activity }} {{ $log->description }} {{ $log->ip_address }}
Belum ada aktivitas tercatat
Tren Kehadiran (7 Hari Terakhir)
Ringkasan Penggajian
@endsection