html("
{$log->error}
") ->warning() ->timer(null) ->withCancelButton('Close') ->show(); } } public function showOutput(int $logId): void { $log = BotLog::find($logId); if ($log) { $output = $log->output ?? 'No output'; LivewireAlert::title('Output Details') ->html("
{$output}")
                ->info()
                ->timer(null)
                ->withCancelButton('Close')
                ->show();
        }
    }

    public function render()
    {
        return view('livewire.bot-logs', [
            'logs' => BotLog::whereHas('bot', fn($q) => $q->where('user_id', Auth::id()))
                ->orderBy('created_at', 'desc')
                ->latest()
                ->paginate(10),
        ]);
    }
}