Skip to content

Commit d70ea4f

Browse files
committed
Обновлена главная страница - раздел О сайте
1 parent 46d9411 commit d70ea4f

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

resources/views/components/home/about-us.blade.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ class="accordion-collapse collapse {{ $loop->first ? 'show' : '' }}"
3030
<h2>Хотите узнать больше о нас?</h2>
3131
<p>Чтобы узнать больше, посетите страницу "О нас".</p>
3232
<div class="main-button">
33-
<a href="{{ route('about') }}">Подробнее</a>
33+
<a
34+
href="{{ !$siteSettings->getRelated('pageAbout')->empty()
35+
? route('frontend.page', ['slug' => $siteSettings->getRelated('pageAbout')->first()->getActiveSlug()['slug']])
36+
: '#' }}">Подробнее</a>
3437
</div>
3538
</div>
3639
</div>

resources/views/twill/settings/homepage/homepage.blade.php

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
<x-twill::input name="logo" label="Лого" />
66

7+
<x-twill::browser
8+
module-name="pages"
9+
name="pageAbout"
10+
label="Ссылка на страницу О сайте"
11+
:max="1"
12+
/>
13+
714
<x-twill::repeater type="homepage_question" />
815

916
<x-twill::repeater type="fun_facts" />

routes/web.php

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
Route::get('pages/{slug}', [PageDisplayController::class, 'show'])->name('frontend.page')->where('slug', '.*');
4242
Route::get('pages', [PageDisplayController::class, 'index'])->name('pages');
4343
Route::get('pages/laboratornye', [PageDisplayController::class, 'show'])->name('labs');
44-
Route::get('pages/o-sajte', [PageDisplayController::class, 'show'])->name('about');
4544

4645
Route::post('test-check', [TestCheckController::class, 'handleTestResults'])->name('test-check');
4746

0 commit comments

Comments
 (0)