<?php

namespace App\Http\Controllers;

use App\Repositories\ActivityLogRepository;
use Illuminate\Http\Request;
use Illuminate\View\View;

class ActivityLogController extends Controller
{
    public function __invoke(Request $request, ActivityLogRepository $activityLogs): View
    {
        return view('activity-logs.index', [
            'filters' => $request->only('category', 'search'),
            'logs' => $activityLogs->paginate($request->only('category', 'search')),
        ]);
    }
}
