netgescon-day0/resources/views/filament/pages/impostazioni/scheda-amministratore.blade.php

56 lines
2.8 KiB
PHP

<x-filament-panels::page>
<form wire:submit="submit" class="space-y-4">
{{ $this->getSchema('form') }}
<div class="flex flex-wrap items-center gap-3">
<x-filament::button type="submit">Salva</x-filament::button>
<x-filament::button type="button" color="warning" wire:click="runProductionUpgrade">
Aggiorna produzione
</x-filament::button>
<x-filament::button type="button" color="primary" wire:click="runBuildProdUpdatePackage">
Crea pacchetto aggiornamento
</x-filament::button>
<x-filament::button type="button" color="gray" wire:click="downloadLastUpdatePackage">
Scarica ultimo pacchetto
</x-filament::button>
<x-filament::button type="button" color="gray" wire:click="reviewUsersToEnable">
Controlla nuovi utenti
</x-filament::button>
<x-filament::button type="button" color="success" wire:click="runBackupProductionData">
Backup produzione
</x-filament::button>
<x-filament::button type="button" color="success" wire:click="runBackupModifiedDataToGdrive">
Backup incrementale dati su Drive
</x-filament::button>
<x-filament::button type="button" color="info" wire:click="runGoogleDriveCheck">
Verifica Google Drive
</x-filament::button>
<x-filament::button type="button" color="info" wire:click="runRestoreDataNonDistruttivo">
Restore dati non distruttivo
</x-filament::button>
<x-filament::button type="button" color="primary" wire:click="runSyncProdUpdate">
Sync aggiornamenti + archivi
</x-filament::button>
<x-filament::button type="button" color="success" wire:click="connectGoogle">
Collega Google
</x-filament::button>
<x-filament::button type="button" color="danger" wire:click="disconnectGoogle">
Scollega Google
</x-filament::button>
</div>
@if(filled($this->opsLastOutput))
<div class="rounded-lg border border-gray-200 bg-gray-50 p-3">
<div class="mb-2 text-sm font-semibold text-gray-700">Output operazioni</div>
<pre class="max-h-80 overflow-auto whitespace-pre-wrap text-xs text-gray-800">{{ $this->opsLastOutput }}</pre>
</div>
@endif
@if(filled($this->lastUpdatePackageName))
<div class="rounded-lg border border-primary-200 bg-primary-50 p-3 text-sm text-primary-700">
Ultimo pacchetto aggiornamento: <strong>{{ $this->lastUpdatePackageName }}</strong>
</div>
@endif
</form>
</x-filament-panels::page>