peliprint/resources/views/blueprint/dashboard/dashboard.blade.php

20 lines
No EOL
1 KiB
PHP

@section("blueprint.lib")
<?php
use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Client\BlueprintClientLibrary as BlueprintExtensionLibrary;
use Pterodactyl\BlueprintFramework\Services\PlaceholderService\BlueprintPlaceholderService;
$settings = app()->make('Pterodactyl\Contracts\Repository\SettingsRepositoryInterface');
$blueprint = app()->make(BlueprintExtensionLibrary::class, ['settings' => $settings]);
$PlaceholderService = app()->make(BlueprintPlaceholderService::class);
?>
@endsection
@section("blueprint.wrappers")
@foreach (File::allFiles($PlaceholderService->folder().'/resources/views/blueprint/dashboard/wrappers') as $partial)
@if ($partial->getExtension() == 'php')
@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())))
@endif
@endif
@endforeach
@endsection