Files
ladill-queue/resources/views/qms/audit/index.blade.php
T
isaaccladandCursor 725d0b346a
Deploy Ladill Queue / deploy (push) Successful in 48s
Remove bordered cards from Audit log page.
Match Analytics and Reports styling with shadow panels on the filter bar
and audit table instead of bordered card wrappers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 10:25:13 +00:00

38 lines
2.0 KiB
PHP

<x-app-layout title="Audit log">
<div class="mb-6 flex items-center justify-between">
<h1 class="text-2xl font-semibold">Audit log</h1>
@if ($canExport)
<a href="{{ route('qms.audit.export', request()->query()) }}" class="btn-primary">Export CSV</a>
@endif
</div>
<form method="GET" class="mb-4 flex flex-wrap gap-3 rounded-2xl bg-white p-4 shadow-sm">
<input type="search" name="q" value="{{ request('q') }}" placeholder="Search…" class="rounded-lg border-slate-300 text-sm">
<select name="action" class="rounded-lg border-slate-300 text-sm">
<option value="">All actions</option>
@foreach ($actions as $key => $label)
<option value="{{ $key }}" @selected(request('action') === $key)>{{ $label }}</option>
@endforeach
</select>
<button type="submit" class="rounded-lg bg-slate-100 px-4 py-2 text-sm">Filter</button>
</form>
<div class="overflow-hidden rounded-2xl bg-white shadow-sm">
<table class="min-w-full divide-y divide-slate-200 text-sm">
<thead class="bg-slate-50"><tr>
<th class="px-4 py-3 text-left text-xs font-semibold uppercase text-slate-500">Time</th>
<th class="px-4 py-3 text-left text-xs font-semibold uppercase text-slate-500">Action</th>
<th class="px-4 py-3 text-left text-xs font-semibold uppercase text-slate-500">Actor</th>
</tr></thead>
<tbody class="divide-y divide-slate-200">
@foreach ($logs as $log)
<tr>
<td class="px-4 py-3 whitespace-nowrap">{{ $log->created_at?->format('M j, H:i') }}</td>
<td class="px-4 py-3">{{ $actions[$log->action] ?? $log->action }}</td>
<td class="px-4 py-3 font-mono text-xs">{{ $log->actor_ref ?? '—' }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div class="mt-4">{{ $logs->links() }}</div>
</x-app-layout>