@extends('layouts.dashboard') @section('title', 'سجل التدقيق') @section('content')

📋 سجل التدقيق

تتبع جميع التغييرات والوصول للإعدادات الحساسة

إجمالي السجلات

{{ number_format($stats['total']) }}

اليوم

{{ number_format($stats['today']) }}

تعديلات

{{ number_format($stats['updates']) }}

حساسة

{{ number_format($stats['sensitive']) }}

@if(request()->hasAny(['search', 'action', 'model', 'sensitive', 'date_from', 'date_to'])) ✕ إلغاء @endif
@forelse($logs as $log) @empty @endforelse
التاريخ المستخدم الإجراء النوع الوصف IP
{{ $log->created_at->format('Y-m-d H:i') }} {{ $log->user_name }} {{ $log->action_label }} {{ $log->model_type }} @if($log->model_name) {{ $log->model_name }} @endif @if($log->is_sensitive) 🔒 @endif {{ $log->description ?? '-' }} {{ $log->ip_address ?? '-' }}
📋 لا توجد سجلات
@if($logs->hasPages())
{{ $logs->withQueryString()->links() }}
@endif
@if(auth()->user()->isAdmin())

⚠️ منطقة الخطر

حذف السجلات القديمة لا يمكن التراجع عنه

@csrf
@endif
@endsection