@extends('layouts.admin') @include('blueprint.admin.template') @section('title') {{ $EXTENSION_NAME }} @endsection @section('content-header') @yield('extension.header') @endsection @section('content') @yield('extension.config') @yield('extension.description')@section('content-header')

Admin Audit LogsView admin action history

@endsection @section('content')

Admin Action History

@isset($a) @foreach($a as $log) @endforeach @else @endisset
Time Admin IP Address Action Details
{{ \Carbon\Carbon::parse($log['timestamp'])->diffForHumans() }} {{ \Carbon\Carbon::parse($log['timestamp'])->format('Y-m-d H:i:s') }} {{ $log['admin_email'] }} {{ $log['ip_address'] }} @php $actionClass = match(true) { str_contains(strtolower($log['action']), 'created') => 'success', str_contains(strtolower($log['action']), 'updated') => 'info', str_contains(strtolower($log['action']), 'deleted') || str_contains(strtolower($log['action']), 'revoked') => 'danger', default => 'primary' }; $icon = match(true) { str_contains(strtolower($log['action']), 'created') => 'fa-plus-circle', str_contains(strtolower($log['action']), 'updated') => 'fa-pencil', str_contains(strtolower($log['action']), 'deleted') || str_contains(strtolower($log['action']), 'revoked') => 'fa-trash', default => 'fa-circle' }; @endphp {{ $log['action'] }} {{ $log['details'] }}
No audit logs found.
@endsection @endsection