<?php

namespace App\Modules\Admin\Operations\Controllers;

use App\Http\Controllers\Controller;
use App\Modules\Admin\Operations\Services\TenantDiagnosticsService;
use App\Modules\Admin\Tenancy\Models\Tenant;
use Illuminate\View\View;

class TenantDiagnosticsController extends Controller
{
    public function show(Tenant $tenant, TenantDiagnosticsService $diagnostics): View
    {
        return view('pages.admin.operations.tenant-diagnostics', [
            'tenant' => $tenant,
            'snapshot' => $diagnostics->snapshot($tenant),
        ]);
    }
}
