pollSeconds = max(1, min(10, (int) config('tenantpilot.bulk_operations.poll_interval_seconds', 3))); $this->loadRuns(); } #[Computed] public function activeRuns() { return $this->runs; } public function loadRuns() { try { $tenant = Tenant::current(); } catch (\RuntimeException $e) { $this->runs = collect(); return; } $this->runs = BulkOperationRun::query() ->where('tenant_id', $tenant->id) ->where('user_id', auth()->id()) ->whereIn('status', ['pending', 'running']) ->orderByDesc('created_at') ->get(); } public function render(): \Illuminate\Contracts\View\View { return view('livewire.bulk-operation-progress'); } }