<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\AuditLog;
use Inertia\Inertia;
use Inertia\Response;

class AuditLogController extends Controller
{
    public function index(): Response
    {
        return Inertia::render('Admin/Logs/Audit', [
            'logs' => AuditLog::query()->with('user:id,name')->latest('created_at')->paginate(50),
        ]);
    }
}
