diff --git a/app/Helpers/TemplateHelper.php b/app/Helpers/TemplateHelper.php index 1334d82c2..cab298f33 100644 --- a/app/Helpers/TemplateHelper.php +++ b/app/Helpers/TemplateHelper.php @@ -9,12 +9,4 @@ public static function getTitleContent(string $header): string $name = __('layout.title.name_SICP'); return "{$header} - {$name}"; } - - public static function getBookLink(string $locale): string - { - return match ($locale) { - 'ru' => 'https://drive.google.com/file/d/1xc9r6txuTZMZ5lPy9YQuD1Dwv9spg7Nt/view?usp=sharing', - default => 'https://drive.google.com/file/d/1t3rlltwuU85ow7g0ZI6Kx7eY5n-Umh8p/view?usp=sharing', - }; - } } diff --git a/resources/assets/images/sicp-en.pdf b/resources/assets/pdf/sicp-en.pdf similarity index 100% rename from resources/assets/images/sicp-en.pdf rename to resources/assets/pdf/sicp-en.pdf diff --git a/resources/assets/images/sicp-ru.pdf b/resources/assets/pdf/sicp-ru.pdf similarity index 100% rename from resources/assets/images/sicp-ru.pdf rename to resources/assets/pdf/sicp-ru.pdf diff --git a/resources/views/layouts/_nav.blade.php b/resources/views/layouts/_nav.blade.php index 22e58b07d..64a266ba5 100644 --- a/resources/views/layouts/_nav.blade.php +++ b/resources/views/layouts/_nav.blade.php @@ -1,5 +1,4 @@ @php - use App\Helpers\TemplateHelper; use App\Helpers\LocalizationHelper; $currentLocale = LaravelLocalization::getCurrentLocale(); $locales = LaravelLocalization::getSupportedLocales(); @@ -29,8 +28,8 @@ class="nav-link p-2">{{ __('layout.nav.sicp_read') }} @endif - +