<?php

namespace App\Modules\Admin\ActivityLog\Controllers;

use App\Http\Controllers\Controller;
use App\Modules\Admin\ActivityLog\Requests\ActivityLogIndexRequest;
use App\Modules\Admin\ActivityLog\Services\ActivityLogReadService;
use Illuminate\View\View;

class ActivityLogController extends Controller
{
    public function __construct(
        private readonly ActivityLogReadService $read,
    ) {}

    public function index(ActivityLogIndexRequest $request): View
    {
        $data = $this->read->indexPage($request->validated());

        return view('pages.admin.activity_logs.index', $data);
    }
}
