first
This commit is contained in:
37
src/resources/views/admin/audit-trail.blade.php
Normal file
37
src/resources/views/admin/audit-trail.blade.php
Normal file
@@ -0,0 +1,37 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', 'Audit Trail')
|
||||
@section('page-title', 'Audit Trail')
|
||||
@section('page-label', 'Admin')
|
||||
|
||||
@section('content')
|
||||
<div class="card surface-card p-4">
|
||||
<div class="table-responsive">
|
||||
<table class="table align-middle">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Tarikh</th>
|
||||
<th>Pengguna</th>
|
||||
<th>Modul</th>
|
||||
<th>Tindakan</th>
|
||||
<th>Keterangan</th>
|
||||
<th>IP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($audits as $audit)
|
||||
<tr>
|
||||
<td>{{ $audit->created_at->format('d/m/Y h:i A') }}</td>
|
||||
<td>{{ $audit->user?->displayName() ?: 'Sistem' }}</td>
|
||||
<td>{{ $audit->module }}</td>
|
||||
<td>{{ $audit->action }}</td>
|
||||
<td>{{ $audit->description }}</td>
|
||||
<td>{{ $audit->ip_address ?: '-' }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="mt-3">{{ $audits->links() }}</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user