@extends('layouts.master') @section('title', 'Log Aktivitas') @section('page-title', 'Log Aktivitas Aplikasi') @section('content')

Log Aktivitas

Riwayat aksi perubahan data oleh pengguna aplikasi.
Reset
@forelse ($logs as $log) @php $methodBadge = match (strtoupper($log->method)) { 'POST' => 'bg-success-subtle text-success', 'PUT', 'PATCH' => 'bg-warning-subtle text-warning', 'DELETE' => 'bg-danger-subtle text-danger', default => 'bg-light text-muted', }; @endphp @empty @endforelse
Waktu User Method Deskripsi Route Path Status Payload
{{ $log->created_at?->format('d-m-Y H:i:s') }} {{ $log->user->name ?? '-' }} {{ strtoupper($log->method) }} {{ $log->description ?? '-' }} @if (str_starts_with((string) ($log->action ?? ''), 'user.'))
Audit User
@endif
{{ $log->route_name ?? '-' }} {{ $log->path }} {{ $log->status_code ?? '-' }} @if (!empty($log->payload))
Lihat data
{{ json_encode($log->payload, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
@else - @endif
Belum ada log aktivitas.
{{ $logs->withQueryString()->links() }}
@endsection