@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
{{ json_encode($log->properties, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) }}