diff --git a/web/app/Filament/Pages/RepairTool.php b/web/app/Filament/Pages/RepairTool.php index a0ad0e3..b1c0c3f 100644 --- a/web/app/Filament/Pages/RepairTool.php +++ b/web/app/Filament/Pages/RepairTool.php @@ -2,7 +2,10 @@ namespace App\Filament\Pages; +use App\Http\Livewire\RepairTool as RepairToolComponent; use Filament\Pages\Page; +use Illuminate\Support\Facades\Artisan; +use Livewire\Livewire; class RepairTool extends Page { @@ -13,4 +16,15 @@ class RepairTool extends Page protected static ?string $navigationGroup = 'Server Management'; + public function runRepair() + { + Artisan::call('phyre:run-repair'); + session()->flash('message', 'RunRepair command executed successfully.'); + } + + public function runDomainRepair() + { + Artisan::call('phyre:run-domain-repair'); + session()->flash('message', 'RunDomainRepair command executed successfully.'); + } } diff --git a/web/resources/views/filament/pages/repair-tool.blade.php b/web/resources/views/filament/pages/repair-tool.blade.php index a13479f..d1f1401 100644 --- a/web/resources/views/filament/pages/repair-tool.blade.php +++ b/web/resources/views/filament/pages/repair-tool.blade.php @@ -1,6 +1,56 @@ + +
+ @if (session()->has('message')) +
+ {{ session('message') }} +
+ @endif + +
+
+ +
+ Run Repair +
+
+
+ +
+ Run Domain Repair +
+
+