diff --git a/app/Http/Controllers/Admin/SettingsControllers/SettingsController.php b/app/Http/Controllers/Admin/SettingsControllers/SettingsController.php index b12d8416..0e0da944 100644 --- a/app/Http/Controllers/Admin/SettingsControllers/SettingsController.php +++ b/app/Http/Controllers/Admin/SettingsControllers/SettingsController.php @@ -26,18 +26,19 @@ class SettingsController extends Controller $tabs[] = 'admin.settings.tabs.' . basename($filename, '.blade.php'); } - // - - //Generate a html list item for each tab based on tabs file basename - $tabsListItem = []; + //Generate a html list item for each tab based on tabs file basename, set first tab as active + $tabListItems = []; foreach ($tabs as $tab) { - $tabsListItem[] = ''; + $tabName = str_replace('admin.settings.tabs.', '', $tab); + $tabListItems[] = ''; } return view('admin.settings.index', [ 'tabs' => $tabs, + 'tabListItems' => $tabListItems, ]);; } diff --git a/package-lock.json b/package-lock.json index 6999b351..e9cdc147 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "bitsec-dashboard", + "name": "controllpanelgg", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/resources/views/admin/settings/index.blade.php b/resources/views/admin/settings/index.blade.php index 368431eb..9ff11a06 100644 --- a/resources/views/admin/settings/index.blade.php +++ b/resources/views/admin/settings/index.blade.php @@ -36,67 +36,14 @@
-
- -
- @csrf - @method('PATCH') - -
-
-
-
- - -
- @error('icon') - - {{ $message }} - - @enderror -
-
-
- - -
- @error('favicon') - - {{ $message }} - - @enderror -
-
-
- - -
- -

Images and Icons may be cached, use CNTRL + - F5(google - chrome hotkey) to reload without cache to see your changes appear :)

- -
@foreach ($tabs as $tab) @include($tab) diff --git a/resources/views/admin/settings/tabs/dashboard.blade.php b/resources/views/admin/settings/tabs/dashboard.blade.php new file mode 100644 index 00000000..f6f25741 --- /dev/null +++ b/resources/views/admin/settings/tabs/dashboard.blade.php @@ -0,0 +1,43 @@ +
+
+ @csrf + @method('PATCH') + +
+
+
+
+ + +
+ @error('icon') + + {{ $message }} + + @enderror +
+
+
+ + +
+ @error('favicon') + + {{ $message }} + + @enderror +
+
+
+ + +
+ +

Images and Icons may be cached, use CNTRL + + F5(google + chrome hotkey) to reload without cache to see your changes appear :)

+ +
diff --git a/resources/views/admin/settings/tabs/invoice.blade.php b/resources/views/admin/settings/tabs/invoice.blade.php index 3a2e791f..cfee5027 100644 --- a/resources/views/admin/settings/tabs/invoice.blade.php +++ b/resources/views/admin/settings/tabs/invoice.blade.php @@ -1,3 +1,5 @@ +@inject('Invoices', 'App\Http\Controllers\Admin\SettingsControllers\InvoiceSettingsController') +