2024-03-29 08:27:52 -04:00
|
|
|
@section("blueprint.lib")
|
|
|
|
<?php
|
|
|
|
use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Client\BlueprintClientLibrary as BlueprintExtensionLibrary;
|
2024-03-29 08:31:48 -04:00
|
|
|
use Pterodactyl\BlueprintFramework\Services\PlaceholderService\BlueprintPlaceholderService;
|
|
|
|
|
2024-03-29 08:27:52 -04:00
|
|
|
$settings = app()->make('Pterodactyl\Contracts\Repository\SettingsRepositoryInterface');
|
|
|
|
$blueprint = app()->make(BlueprintExtensionLibrary::class, ['settings' => $settings]);
|
2024-03-29 08:31:48 -04:00
|
|
|
$PlaceholderService = app()->make(BlueprintPlaceholderService::class);
|
2024-03-29 08:27:52 -04:00
|
|
|
?>
|
|
|
|
@endsection
|
|
|
|
|
2024-02-27 11:32:09 -05:00
|
|
|
@section("blueprint.wrappers")
|
2024-03-29 08:34:06 -04:00
|
|
|
@foreach (File::allFiles($PlaceholderService->folder().'/resources/views/blueprint/dashboard/wrappers') as $partial)
|
2024-03-25 12:49:44 -04:00
|
|
|
@if ($partial->getExtension() == 'php')
|
2024-03-29 08:40:10 -04:00
|
|
|
@if ($blueprint->dbGet('blueprint', 'extensionconfig_'.str_replace('.blade.php','',basename($partial->getPathname())).'_dashboardwrapper') != '0')
|
|
|
|
@include('blueprint.dashboard.wrappers.'.str_replace('.blade.php','',basename($partial->getPathname())))
|
2024-03-28 08:51:35 -04:00
|
|
|
@endif
|
2024-03-25 12:49:44 -04:00
|
|
|
@endif
|
|
|
|
@endforeach
|
2024-02-17 15:32:08 -05:00
|
|
|
@endsection
|