51 lines
2.7 KiB
PHP
51 lines
2.7 KiB
PHP
<x-layout.app>
|
|
<x-slot:page_title>AuditionAdmin Logs</x-slot:page_title>
|
|
<x-card.card>
|
|
<div class="px-4 sm:px-6 lg:px-8">
|
|
<div class="mt-4 flow-root">
|
|
<div class="-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8">
|
|
<div class="inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8">
|
|
<table class="min-w-full divide-y divide-gray-300">
|
|
<thead>
|
|
<tr class="divide-x divide-gray-200">
|
|
<th scope="col"
|
|
class="py-3.5 pl-4 pr-4 text-left text-sm font-semibold text-gray-900 sm:pl-0">
|
|
Timestamp
|
|
</th>
|
|
<th scope="col" class="px-4 py-3.5 text-left text-sm font-semibold text-gray-900">User
|
|
</th>
|
|
<th scope="col" class="px-4 py-3.5 text-left text-sm font-semibold text-gray-900">IP
|
|
</th>
|
|
<th scope="col"
|
|
class="py-3.5 pl-4 pr-4 text-left text-sm font-semibold text-gray-900 sm:pr-0">
|
|
Message
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="divide-y divide-gray-200 bg-white">
|
|
@foreach($log_entries as $entry)
|
|
@php($message = strip_tags($entry->message, '<br>'))
|
|
<tr class="divide-x divide-gray-200">
|
|
<td class="whitespace-nowrap py-4 pl-4 pr-4 text-sm font-medium text-gray-900 sm:pl-0">{{ $entry->created_at }}</td>
|
|
<td class="whitespace-nowrap p-4 text-sm text-gray-500">{{ $entry->user }}</td>
|
|
<td class="whitespace-nowrap p-4 text-sm text-gray-500">{{ gethostbyaddr($entry->ip_address) }}<br>{{ $entry->ip_address }}</td>
|
|
<td class="whitespace-nowrap py-4 pl-4 pr-4 text-sm text-gray-500 sm:pr-0">{!! $message !!}</td>
|
|
</tr>
|
|
@endforeach
|
|
|
|
|
|
<!-- More people... -->
|
|
</tbody>
|
|
</table>
|
|
<div class="py-6 border-t">
|
|
{{ $log_entries->links() }}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-card.card>
|
|
|
|
</x-layout.app>
|