@extends('admin._layout') @section('title', 'سجل النشاطات') @push('head') @endpush @section('content')
@if($logs->isEmpty())

لا توجد سجلات تطابق الفلاتر

@else @foreach($logs as $log) @php $color = \App\Services\AuditLogger::actionColor($log->action); $label = \App\Services\AuditLogger::actionLabel($log->action); @endphp
{{ $label }}
@if($log->admin) {{ $log->admin->name }} ({{ $log->admin->email }}) @else النظام @endif @if($log->subject_label) — {{ $log->subject_label }} @endif
@if($log->ip_address) {{ $log->ip_address }} @endif @if($log->subject_type) {{ class_basename($log->subject_type) }}#{{ $log->subject_id }} @endif @if(! empty($log->metadata)) بيانات إضافية @endif
{{ $log->created_at->translatedFormat('j M Y') }}
{{ $log->created_at->translatedFormat('h:i:s A') }}
{{ $log->created_at->diffForHumans() }}
@endforeach @endif
@endsection