@extends('layouts.app') @section('title', __('app.audit.title') . ' - PMMS') @section('content')

{{ __('app.audit.heading') }}

{{-- architecture.md Bahagian 15 [R-55] (Langkah 22) - filter audit log --}}
@forelse ($logs as $log) @empty @endforelse
{{ __('app.audit.table.time') }} {{ __('app.audit.table.user') }} {{ __('app.audit.table.action') }} {{ __('app.audit.table.entity') }} {{ __('app.audit.table.details') }} {{ __('app.audit.table.ip') }}
{{ \Illuminate\Support\Carbon::parse($log->created_at)->format('d/m/Y H:i:s') }} {{ $log->user_name }} {{ $log->action }} {{ $log->entity_type }}{{ $log->entity_id ? ' #'.$log->entity_id : '' }} @if ($log->old_value)
{{ __('app.audit.old_label') }} {{ $log->old_value }}
@endif @if ($log->new_value)
{{ __('app.audit.new_label') }} {{ $log->new_value }}
@endif
{{ $log->ip_address ?? '-' }}
{{ __('app.audit.empty') }}
{{ $logs->links() }} @endsection