@extends('layouts.admin') @section('css') @vite(['node_modules/choices.js/public/assets/styles/choices.min.css']) @endsection @section('title', 'Audit Logs') @section('content')

Audit Logs

Track all critical system actions and user activities.

Reset
@forelse($logs as $log) @php $badgeClass = 'badge-soft-secondary'; if (str_starts_with($log->action, 'auth.')) $badgeClass = 'badge-soft-secondary'; elseif (str_starts_with($log->action, 'kyc.')) $badgeClass = 'badge-soft-info'; elseif (str_starts_with($log->action, 'booking.')) $badgeClass = 'badge-soft-warning'; elseif (str_starts_with($log->action, 'withdrawal.')) $badgeClass = 'badge-soft-primary'; elseif (str_starts_with($log->action, 'agent.')) $badgeClass = 'badge-soft-teal'; elseif (str_starts_with($log->action, 'rank.')) $badgeClass = 'badge-soft-warning'; elseif (str_starts_with($log->action, 'settings.')) $badgeClass = 'badge-soft-danger'; elseif (str_starts_with($log->action, 'emi.')) $badgeClass = 'badge-soft-success'; @endphp @empty @endforelse
Date & Time User Role Action Description IP Address
{{ $log->created_at->format('M d, Y') }}
{{ $log->created_at->format('h:i A') }}
@if($log->user) {{ $log->user_name }} @else {{ $log->user_name }} @endif {{ $log->user_role }} {{ str_ireplace('Kyc', 'KYC', Str::headline($log->action)) }} {{ $log->description }} {{ $log->ip_address }}
No audit logs found.
@if($logs->hasPages()) @endif
@endsection @push('styles') @vite(['node_modules/choices.js/public/assets/styles/choices.min.css']) @endpush