diff --git a/resources/lang/en-GB/install.php b/resources/lang/en-GB/install.php index a75a84d6d..af6686441 100644 --- a/resources/lang/en-GB/install.php +++ b/resources/lang/en-GB/install.php @@ -22,6 +22,7 @@ return [ 'extension' => ':extension extension needs to be installed and loaded!', 'directory' => ':directory directory needs to be writable!', 'executable' => 'The PHP CLI executable file is not defined/working or its version is not :php_version or higher! Please, ask your hosting company to set PHP_BINARY or PHP_PATH environment variable correctly.', + 'npm' => 'Missing JavaScript files !

You should run npm install and npm run dev commands.', ], 'database' => [ diff --git a/resources/views/components/layouts/install.blade.php b/resources/views/components/layouts/install.blade.php index 814b4cc3f..cf9e56c74 100644 --- a/resources/views/components/layouts/install.blade.php +++ b/resources/views/components/layouts/install.blade.php @@ -10,21 +10,39 @@ @stack('body_start')
-
- - {!! $slider ?? '' !!} - + @if (! file_exists(public_path('public/js/install/install.min.js'))) +
+ -
-
- Akaunting +
+
+ Akaunting - - {!! $content !!} - +
+ {!! trans('install.requirements.npm') !!} +
+
-
+ @else +
+ + {!! $slider ?? '' !!} + + +
+
+ Akaunting + + + {!! $content !!} + +
+
+
+ @endif
@stack('body_end')