LAPORAN PENCABUTAN AKSES

Monitoring dan Audit Pencabutan Hak Akses Pegawai

Dicetak pada: {{ now()->format('d F Y H:i') }} | Total Data: {{ $summary['total'] }} Log Pencabutan
Periode Laporan
{{ $startDate->format('d F Y') }} s/d {{ $endDate->format('d F Y') }} ({{ $startDate->diffInDays($endDate) + 1 }} hari)

Ringkasan Pencabutan

{{ $summary['total'] }}

Total Pencabutan

{{ $summary['automatic'] }}

Otomatis (System)

@if($summary['total'] > 0)
{{ round(($summary['automatic'] / $summary['total']) * 100) }}% dari total
@endif

{{ $summary['manual'] }}

Manual (Admin)

@if($summary['total'] > 0)
{{ round(($summary['manual'] / $summary['total']) * 100) }}% dari total
@endif

Detail Log Pencabutan Akses

@if(count($data) > 0) @foreach($data as $index => $log) @endforeach
No Waktu Revoke Pegawai Akses Dicabut Method Alasan/Trigger Direvoke Oleh
{{ $index + 1 }}
{{ $log->revoked_at->format('d M Y') }}
{{ $log->revoked_at->format('H:i:s') }}
{{ strtoupper(substr($log->employeeAccessDetail->employee->name ?? 'UN', 0, 2)) }}
{{ $log->employeeAccessDetail->employee->name ?? 'Unknown' }}
NIP: {{ $log->employeeAccessDetail->employee->nip ?? '-' }}
{{ $log->employeeAccessDetail->accessCatalog->name ?? 'Unknown Access' }}
ID Detail: {{ $log->employee_access_detail_id }}
@php $methodClass = $log->method === 'automatic' ? 'badge-automatic' : 'badge-manual'; @endphp {{ ucfirst($log->method) }} @if($log->reason)
{{ $log->reason }}
@else {{ $log->method === 'automatic' ? 'Auto-revoke: Retirement/Expired' : 'No reason provided' }} @endif
@if($log->revoked_by && $log->revokedBy)
{{ $log->revokedBy->name }}
Admin/User
@else
System Automation
{{ $log->method === 'automatic' ? 'Scheduled Job' : 'Unknown' }}
@endif
@else

Tidak ada data pencabutan akses untuk periode ini

{{ $startDate->format('d M Y') }} - {{ $endDate->format('d M Y') }}

@endif
@if(count($data) > 0 && isset($summary['by_access']) && count($summary['by_access']) > 0)

Statistik per Jenis Akses

@foreach($summary['by_access']->take(2) as $accessName => $count)
{{ $accessName }}
{{ $count }} pencabutan
@endforeach
@if(count($summary['by_access']) > 2) @foreach($summary['by_access']->skip(2) as $accessName => $count) @endforeach
Jenis Akses Jumlah Persentase
{{ $accessName }} {{ $count }} {{ $summary['total'] > 0 ? round(($count / $summary['total']) * 100, 1) : 0 }}%
@endif
@endif