From 2c7bae7858ee4d51e719768503ac00daae2253b5 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Wed, 15 May 2024 15:30:48 +0300 Subject: [PATCH] update --- web/app/Filament/Pages/PHPInfo.php | 40 +++++++++++------- .../views/filament/pages/php-info.blade.php | 41 ++++++++++++++++++- 2 files changed, 65 insertions(+), 16 deletions(-) diff --git a/web/app/Filament/Pages/PHPInfo.php b/web/app/Filament/Pages/PHPInfo.php index b294be5..a0b968d 100644 --- a/web/app/Filament/Pages/PHPInfo.php +++ b/web/app/Filament/Pages/PHPInfo.php @@ -1,22 +1,10 @@ $installedPHPVersions, + ]; + } + } diff --git a/web/resources/views/filament/pages/php-info.blade.php b/web/resources/views/filament/pages/php-info.blade.php index dfbd136..d497ccf 100644 --- a/web/resources/views/filament/pages/php-info.blade.php +++ b/web/resources/views/filament/pages/php-info.blade.php @@ -1,7 +1,44 @@ -
- Installed PHP Version: {{ phpversion() }} +
+
+ @if (!empty($installedPHPVersions)) +
+ Installed PHP Versions on server are: +
+
+ @foreach($installedPHPVersions as $phpVersion) + +
+ + + + PHP {{ $phpVersion }} +
+
+ @endforeach +
+ @else + No PHP versions found. + @endif +
+ +
+ +
+
+ + + +
+ Do you install another php version ? + + Click here to install another PHP version + +
+
+
+