@extends('agency.layouts.app') @section('title', 'İşlem Kayıtları') @section('content') @php $dtColumns = [ ['key' => 'created_at', 'label' => 'Zaman', 'sortable' => true, 'sort' => 'created_at', 'width' => '150px'], ['key' => 'user', 'label' => 'Kullanıcı', 'sortable' => true, 'sort' => 'user_id', 'width' => '210px'], ['key' => 'module', 'label' => 'Modül', 'sortable' => true, 'sort' => 'module', 'width' => '140px'], ['key' => 'action', 'label' => 'İşlem', 'sortable' => true, 'sort' => 'action', 'width' => '130px'], ['key' => 'description', 'label' => 'Açıklama'], ['key' => 'route', 'label' => 'Rota', 'width' => '190px', 'visible' => false], ['key' => 'ip', 'label' => 'IP Adresi', 'width' => '130px'], ['key' => '_actions', 'label' => '', 'fixed' => true, 'align' => 'end', 'width' => '56px'], ]; $dtFilters = [ ['key' => 'date_from', 'label' => 'Başlangıç', 'type' => 'date', 'value' => request('date_from')], ['key' => 'date_to', 'label' => 'Bitiş', 'type' => 'date', 'value' => request('date_to')], ['key' => 'user_id', 'label' => 'Kullanıcı', 'value' => request('user_id'), 'placeholder' => 'Tüm kullanıcılar', 'options' => $users->pluck('full_name', 'id')->all()], ['key' => 'module', 'label' => 'Modül', 'value' => request('module'), 'placeholder' => 'Tüm modüller', 'options' => $modules->all()], ['key' => 'action', 'label' => 'İşlem Tipi', 'value' => request('action'), 'placeholder' => 'Tüm işlemler', 'options' => $actions], ]; $dtStats = [ ['label' => 'Bugünkü İşlem', 'value' => number_format($logStats['today'], 0, ',', '.'), 'icon' => 'fa-bolt', 'color' => '#0ea5e9'], ['label' => 'Son 7 Gün', 'value' => number_format($logStats['week'], 0, ',', '.'), 'icon' => 'fa-calendar-week', 'color' => '#6366f1'], ['label' => 'Toplam Kayıt', 'value' => number_format($logStats['total'], 0, ',', '.'), 'icon' => 'fa-database', 'color' => '#0f766e'], ['label' => 'Bugün Aktif Kullanıcı', 'value' => number_format($logStats['users_today'], 0, ',', '.'), 'icon' => 'fa-user-check', 'color' => '#d97706'], ]; @endphp
Kayıt aktif Ayarlar @forelse($logs as $log)
{{ $log->created_at->format('H:i:s') }}
@if($log->created_at->isToday()) Bugün @elseif($log->created_at->isYesterday()) Dün @else {{ $log->created_at->translatedFormat('d M Y') }} @endif
{{ $log->user ? mb_strtoupper(mb_substr($log->user->first_name, 0, 1) . mb_substr($log->user->last_name, 0, 1)) : '—' }} {{ $log->user->full_name ?? 'Sistem' }}
{{ $log->module_label }} {{ $log->action_label }} {{ $log->description }} {{ $log->route_name ?: '—' }} {{ $log->ip_address ?: '—' }} @if($log->properties) @endif @if($log->properties)
{{ $log->route_name ?: '—' }} {{ $log->url }}
{{ json_encode($log->properties, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) }}
@endif @empty

Kayıt bulunamadı

Seçili filtrelerle eşleşen işlem kaydı yok. Filtreleri genişletmeyi deneyin.
@endforelse
@endsection