From e5c07e699c880be3c06623318b3113e18012f75d Mon Sep 17 00:00:00 2001 From: Lewis Larsen Date: Mon, 15 Jul 2024 00:05:51 +0100 Subject: [PATCH] fix: Broken view on certain step progress --- .../steps-to-get-started/view.blade.php | 56 +++++++++++-------- 1 file changed, 33 insertions(+), 23 deletions(-) diff --git a/resources/views/partials/steps-to-get-started/view.blade.php b/resources/views/partials/steps-to-get-started/view.blade.php index f9c53f61..c5219ec5 100644 --- a/resources/views/partials/steps-to-get-started/view.blade.php +++ b/resources/views/partials/steps-to-get-started/view.blade.php @@ -8,7 +8,7 @@
-
+

{{ __('Step 1)') }}

@@ -24,15 +24,25 @@ {{ __('We support Ubuntu and Debian distributions primarily.') }}
- - - {{ __('Link Remote Server') }} - @svg('heroicon-o-arrow-right', 'h-5 w-5 ml-2 inline') - - + @if (Auth::user()->remoteServers->isNotEmpty()) +
+ @svg('heroicon-o-check', 'h-5 w-5 text-green-600 mr-2 inline') + {{ __('You have completed this step.') }} +
+ @endif + + @if (Auth::user()->remoteServers->isEmpty()) + + + {{ __('Link Remote Server') }} + @svg('heroicon-o-arrow-right', 'h-5 w-5 ml-2 inline') + + + @endif
-
+

{{ __('Step 2)') }}

@@ -48,27 +58,33 @@ {{ __('Add your S3 bucket API details to store your backups safely.') }}
+ @if (Auth::user()->backupDestinations->isNotEmpty()) +
+ @svg('heroicon-o-check', 'h-5 w-5 text-green-600 mr-2 inline') + {{ __('You have completed this step.') }} +
+ @endif + @if (Auth::user()->remoteServers->isEmpty())
@svg('heroicon-o-exclamation-triangle', 'h-5 w-5 text-red-500 mr-2 inline') - {{ __('You need to link a Remote Server first.') }} + {{ __('You need to link a Remote Server first.') }}
+ @endif + + @if (Auth::user()->remoteServers->isEmpty()) {{ __('Add your Backup Destination') }} @svg('heroicon-o-arrow-right', 'h-5 w-5 ml-2 inline') - @else - - - {{ __('Add another Backup Destination') }} - @svg('heroicon-o-arrow-right', 'h-5 w-5 ml-2 inline') - @endif
-