first commit
This commit is contained in:
38
resources/views/audit/index.blade.php
Normal file
38
resources/views/audit/index.blade.php
Normal file
@@ -0,0 +1,38 @@
|
||||
@extends('layouts.app')
|
||||
@section('title', 'Log Audit')
|
||||
@section('heading', 'Log Audit')
|
||||
@section('page-title', 'Log Audit / Jejak Aktiviti')
|
||||
|
||||
@section('content')
|
||||
<div class="card mb-3"><div class="card-body">
|
||||
<form class="row g-2">
|
||||
<div class="col-md-4">
|
||||
<select name="log" class="form-select">
|
||||
<option value="">Semua log</option>
|
||||
@foreach ($logNames as $ln)<option value="{{ $ln }}" @selected(request('log')===$ln)>{{ $ln }}</option>@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2 d-grid"><button class="btn btn-outline-primary">Tapis</button></div>
|
||||
</form>
|
||||
</div></div>
|
||||
|
||||
<div class="card"><div class="card-body p-0">
|
||||
<table class="table table-sm table-hover mb-0 align-middle">
|
||||
<thead><tr><th class="ps-3">Masa</th><th>Log</th><th>Aktiviti</th><th>Oleh</th><th>Subjek</th></tr></thead>
|
||||
<tbody>
|
||||
@forelse ($logs as $log)
|
||||
<tr>
|
||||
<td class="ps-3 small">{{ $log->created_at->format('d/m/Y H:i:s') }}</td>
|
||||
<td><span class="badge bg-light text-dark">{{ $log->log_name }}</span></td>
|
||||
<td class="small">{{ $log->description }}</td>
|
||||
<td class="small">{{ $log->causer?->name ?? 'Sistem' }}</td>
|
||||
<td class="small text-muted">{{ class_basename($log->subject_type) }} #{{ $log->subject_id }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="5" class="text-center text-muted py-3">Tiada log.</td></tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div></div>
|
||||
<div class="mt-2">{{ $logs->links() }}</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user