<?php

namespace App\Http\Controllers\SuperAdmin;

use App\Http\Controllers\Controller;
use App\Services\SuperAdmin\PlatformAdminService;
use Illuminate\Http\Request;
use Illuminate\View\View;

class ActivityLogController extends Controller
{
    public function index(Request $request, PlatformAdminService $platform): View
    {
        return view('super-admin.activity.index', [
            'activities' => $platform->activities($request),
            'filters' => $request->only(['q']),
        ]);
    }
}
