<x-filament-panels::page>
    <form wire:submit="executeCommand">
        {{ $this->form }}

        <div class="mt-4">
            <x-filament::button type="submit">
                Exécuter
            </x-filament::button>
        </div>
    </form>

    @if ($output !== null)
        <div class="mt-6 space-y-2">
            <h3 class="text-lg font-medium">Résultat du serveur :</h3>
            <pre class="p-4 bg-gray-950 text-emerald-400 rounded-xl overflow-x-auto whitespace-pre-wrap font-mono text-sm leading-relaxed border border-gray-800 shadow-inner">{{ $output }}</pre>
        </div>
    @endif
</x-filament-panels::page>
