@extends('layouts.app') @section('title', 'Riwayat Poin') @section('content')
Jejak audit setiap penambahan & penghapusan poin pelanggaran siswa
| Waktu | Siswa | Aksi | Δ Poin | Sebelum → Sesudah | Keterangan | Oleh |
|---|---|---|---|---|---|---|
|
{{ $log->created_at->format('d/m/Y') }}
{{ $log->created_at->format('H:i') }} WIB
|
{{ $log->student?->full_name ?? '(siswa terhapus)' }}
{{ $log->student?->class?->name }} · {{ $log->student?->nisn }}
|
@if ($log->action === 'created') Pencatatan @elseif ($log->action === 'deleted') Penghapusan @else Penyesuaian @endif | {{ $log->points_delta > 0 ? '+' : '' }}{{ $log->points_delta }} | {{ $log->points_before }} → {{ $log->points_after }} |
{{ $log->description }}
@if (! empty($log->metadata['description']))
{{ $log->metadata['description'] }}
@endif
|
{{ $log->actor?->name ?? 'Sistem' }}
@if ($log->ip_address)
{{ $log->ip_address }}
@endif
|
|
Belum ada catatan perubahan poin Log akan muncul otomatis saat pelanggaran dicatat atau dihapus |
||||||