@@ -31,7 +31,7 @@
|
||||
];
|
||||
@endphp
|
||||
|
||||
<nav class="pc-breadcrumbs" aria-label="Хлебные крошки">
|
||||
<nav class="pc-breadcrumbs" aria-label="{{ __('Хлебные крошки') }}">
|
||||
@foreach ($items as $item)
|
||||
@if (!$loop->last && !empty($item['url']))
|
||||
<a href="{{ $item['url'] }}">{{ $item['label'] }}</a>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
$hasSubtitle = $slide->show_subtitle && !empty($slide->subtitle);
|
||||
$hasButton = $slide->show_button && !empty($slide->button_text) && !empty($slide->button_url);
|
||||
$hasContent = $hasTitle || $hasSubtitle || $hasButton;
|
||||
$altText = $hasTitle ? $slide->title : 'Слайд на главной странице';
|
||||
$altText = $hasTitle ? __($slide->title) : __('Слайд на главной странице');
|
||||
@endphp
|
||||
<article class="pc-home-slide {{ $loop->first ? 'is-active' : '' }}" data-home-slide>
|
||||
<img src="{{ $slide->image_url }}" alt="{{ $altText }}" loading="{{ $loop->first ? 'eager' : 'lazy' }}">
|
||||
@@ -19,13 +19,13 @@
|
||||
@if ($hasContent)
|
||||
<div class="pc-home-slide-content">
|
||||
@if ($hasTitle)
|
||||
<h2>{{ $slide->title }}</h2>
|
||||
<h2>{{ __($slide->title) }}</h2>
|
||||
@endif
|
||||
@if ($hasSubtitle)
|
||||
<p>{{ $slide->subtitle }}</p>
|
||||
<p>{{ __($slide->subtitle) }}</p>
|
||||
@endif
|
||||
@if ($hasButton)
|
||||
<a class="pc-btn primary" href="{{ $slide->button_url }}">{{ $slide->button_text }}</a>
|
||||
<a class="pc-btn primary" href="{{ $slide->button_url }}">{{ __($slide->button_text) }}</a>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
@@ -34,16 +34,16 @@
|
||||
<article class="pc-home-slide is-active is-fallback" data-home-slide>
|
||||
<div class="pc-home-slide-overlay"></div>
|
||||
<div class="pc-home-slide-content">
|
||||
<h2>{{ $fallbackTitle ?? 'Собирайте ПК быстрее' }}</h2>
|
||||
<p>{{ $fallbackText ?? 'Загрузите баннеры в админке, чтобы вывести акции и подборки товаров на главной странице.' }}</p>
|
||||
<h2>{{ __($fallbackTitle ?? 'Собирайте ПК быстрее') }}</h2>
|
||||
<p>{{ __($fallbackText ?? 'Загрузите баннеры в админке, чтобы вывести акции и подборки товаров на главной странице.') }}</p>
|
||||
@if (!empty($fallbackUrl))
|
||||
<a class="pc-btn primary" href="{{ $fallbackUrl }}">{{ $fallbackButton ?? 'Открыть каталог' }}</a>
|
||||
<a class="pc-btn primary" href="{{ $fallbackUrl }}">{{ __($fallbackButton ?? 'Открыть каталог') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</article>
|
||||
@endforelse
|
||||
</div>
|
||||
|
||||
<button class="pc-home-slider-btn is-prev" type="button" data-home-slider-prev aria-label="Предыдущий слайд" @disabled($isSingle)>‹</button>
|
||||
<button class="pc-home-slider-btn is-next" type="button" data-home-slider-next aria-label="Следующий слайд" @disabled($isSingle)>›</button>
|
||||
<button class="pc-home-slider-btn is-prev" type="button" data-home-slider-prev aria-label="{{ __('Предыдущий слайд') }}" @disabled($isSingle)>‹</button>
|
||||
<button class="pc-home-slider-btn is-next" type="button" data-home-slider-next aria-label="{{ __('Следующий слайд') }}" @disabled($isSingle)>›</button>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
@if ($paginator->hasPages())
|
||||
<nav class="pc-pager" role="navigation" aria-label="Пагинация">
|
||||
<nav class="pc-pager" role="navigation" aria-label="{{ __('Пагинация') }}">
|
||||
<ul class="pc-pager-list">
|
||||
<li>
|
||||
@if ($paginator->onFirstPage())
|
||||
<span class="pc-pager-link is-disabled" aria-disabled="true">Назад</span>
|
||||
<span class="pc-pager-link is-disabled" aria-disabled="true">{{ __('Назад') }}</span>
|
||||
@else
|
||||
<a class="pc-pager-link" href="{{ $paginator->previousPageUrl() }}" rel="prev">Назад</a>
|
||||
<a class="pc-pager-link" href="{{ $paginator->previousPageUrl() }}" rel="prev">{{ __('Назад') }}</a>
|
||||
@endif
|
||||
</li>
|
||||
|
||||
@@ -31,9 +31,9 @@
|
||||
|
||||
<li>
|
||||
@if ($paginator->hasMorePages())
|
||||
<a class="pc-pager-link" href="{{ $paginator->nextPageUrl() }}" rel="next">Вперед</a>
|
||||
<a class="pc-pager-link" href="{{ $paginator->nextPageUrl() }}" rel="next">{{ __('Вперед') }}</a>
|
||||
@else
|
||||
<span class="pc-pager-link is-disabled" aria-disabled="true">Вперед</span>
|
||||
<span class="pc-pager-link is-disabled" aria-disabled="true">{{ __('Вперед') }}</span>
|
||||
@endif
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -13,33 +13,33 @@
|
||||
@endphp
|
||||
|
||||
<div class="pc-payment-details {{ $class ?? '' }}">
|
||||
<h3>{{ $title ?? 'Оплата по реквизитам' }}</h3>
|
||||
<h3>{{ __($title ?? 'Оплата по реквизитам') }}</h3>
|
||||
|
||||
@isset($amount)
|
||||
<p class="pc-payment-total">Сумма к оплате: <strong>{{ number_format((float) $amount, 0, '.', ' ') }} {{ config('shop.currency_symbol', '₽') }}</strong></p>
|
||||
<p class="pc-payment-total">{{ __('Сумма к оплате:') }} <strong>{{ number_format((float) $amount, 0, '.', ' ') }} {{ config('shop.currency_symbol', '₽') }}</strong></p>
|
||||
@endisset
|
||||
|
||||
<div class="pc-payment-grid">
|
||||
<div class="pc-payment-row">
|
||||
<span class="pc-payment-key">Банк</span>
|
||||
<strong class="pc-payment-value">{{ $paymentBank }}</strong>
|
||||
<span class="pc-payment-key">{{ __('Банк') }}</span>
|
||||
<strong class="pc-payment-value">{{ __($paymentBank) }}</strong>
|
||||
</div>
|
||||
<div class="pc-payment-row">
|
||||
<span class="pc-payment-key">Получатель</span>
|
||||
<span class="pc-payment-key">{{ __('Получатель') }}</span>
|
||||
<strong class="pc-payment-value">{{ $paymentCardHolder }}</strong>
|
||||
</div>
|
||||
<div class="pc-payment-row">
|
||||
<span class="pc-payment-key">Номер карты</span>
|
||||
<span class="pc-payment-key">{{ __('Номер карты') }}</span>
|
||||
<strong class="pc-payment-value">{{ $paymentCardNumber }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@isset($purpose)
|
||||
<p class="pc-payment-purpose">Назначение платежа: <strong>{{ $purpose }}</strong></p>
|
||||
<p class="pc-payment-purpose">{{ __('Назначение платежа:') }} <strong>{{ $purpose }}</strong></p>
|
||||
@endisset
|
||||
|
||||
@if (!empty($showHelp))
|
||||
<p class="pc-muted">После оплаты отправьте чек в поддержку для подтверждения заказа.</p>
|
||||
<p class="pc-muted">{{ __('После оплаты отправьте чек в поддержку для подтверждения заказа.') }}</p>
|
||||
@if ($telegramUrl !== '')
|
||||
<p class="pc-muted">Telegram: <a class="pc-contact-link" href="{{ $telegramUrl }}" target="_blank" rel="noopener noreferrer">{{ $telegram }}</a></p>
|
||||
@endif
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div class="pc-product-tools">
|
||||
<form method="post" action="{{ route('favorites.toggle', $product) }}" class="pc-product-tool-form" data-preserve-scroll="true">
|
||||
@csrf
|
||||
<button class="pc-product-tool {{ $isFavorite ? 'is-active' : '' }}" type="submit" aria-label="Добавить в избранное" title="В избранное">
|
||||
<button class="pc-product-tool {{ $isFavorite ? 'is-active' : '' }}" type="submit" aria-label="{{ __('Добавить в избранное') }}" title="{{ __('В избранное') }}">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M12 20s-7-4.5-9-9c-1.2-2.7.7-6 4.2-6 2 0 3.2 1 3.8 2 0.6-1 1.8-2 3.8-2 3.5 0 5.4 3.3 4.2 6-2 4.5-9 9-9 9z"></path>
|
||||
</svg>
|
||||
@@ -20,7 +20,7 @@
|
||||
</form>
|
||||
<form method="post" action="{{ route('compare.toggle', $product) }}" class="pc-product-tool-form" data-preserve-scroll="true">
|
||||
@csrf
|
||||
<button class="pc-product-tool {{ $isCompared ? 'is-active' : '' }}" type="submit" aria-label="Добавить в сравнение" title="Сравнить">
|
||||
<button class="pc-product-tool {{ $isCompared ? 'is-active' : '' }}" type="submit" aria-label="{{ __('Добавить в сравнение') }}" title="{{ __('Сравнить') }}">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M5 4h3v16H5zM16 4h3v16h-3zM10.5 8h3v12h-3z"></path>
|
||||
</svg>
|
||||
@@ -37,7 +37,7 @@
|
||||
<a class="pc-product-link" href="{{ route('products.show', $product) }}">{{ $product->name }}</a>
|
||||
</h3>
|
||||
@if (!empty($product->short_description))
|
||||
<p>{{ $product->short_description }}</p>
|
||||
<p>{{ __($product->short_description) }}</p>
|
||||
@endif
|
||||
<div class="pc-product-meta">
|
||||
<strong>{{ number_format($product->price, 0, '.', ' ') }} {{ config('shop.currency_symbol', '₽') }}</strong>
|
||||
@@ -50,11 +50,11 @@
|
||||
<form method="post" action="{{ route('cart.add', $product) }}" data-preserve-scroll="true">
|
||||
@csrf
|
||||
<button class="pc-btn ghost {{ $isInCart ? 'is-active' : '' }}" type="submit">
|
||||
{{ $isInCart ? 'В корзине' : 'В корзину' }}
|
||||
{{ $isInCart ? __('В корзине') : __('В корзину') }}
|
||||
</button>
|
||||
</form>
|
||||
@else
|
||||
<button class="pc-btn ghost" type="button" disabled>Нет в наличии</button>
|
||||
<button class="pc-btn ghost" type="button" disabled>{{ __('Нет в наличии') }}</button>
|
||||
@endif
|
||||
</div>
|
||||
</article>
|
||||
|
||||
@@ -4,17 +4,17 @@
|
||||
|
||||
<section class="pc-section">
|
||||
<div class="pc-section-title">
|
||||
<h2>{{ $title ?? 'Товары' }}</h2>
|
||||
<h2>{{ __($title ?? 'Товары') }}</h2>
|
||||
@if (!empty($description))
|
||||
<p>{{ $description }}</p>
|
||||
<p>{{ __($description) }}</p>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if ($items->isEmpty())
|
||||
<div class="pc-card">{{ $emptyText ?? 'Пока нет товаров.' }}</div>
|
||||
<div class="pc-card">{{ __($emptyText ?? 'Пока нет товаров.') }}</div>
|
||||
@else
|
||||
<div class="pc-product-carousel" data-product-carousel>
|
||||
<button class="pc-product-carousel-btn is-prev" type="button" data-product-carousel-prev aria-label="Предыдущие товары">‹</button>
|
||||
<button class="pc-product-carousel-btn is-prev" type="button" data-product-carousel-prev aria-label="{{ __('Предыдущие товары') }}">‹</button>
|
||||
<div class="pc-product-carousel-track" data-product-carousel-track>
|
||||
@foreach ($items as $product)
|
||||
<div class="pc-product-carousel-item">
|
||||
@@ -22,7 +22,7 @@
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<button class="pc-product-carousel-btn is-next" type="button" data-product-carousel-next aria-label="Следующие товары">›</button>
|
||||
<button class="pc-product-carousel-btn is-next" type="button" data-product-carousel-next aria-label="{{ __('Следующие товары') }}">›</button>
|
||||
</div>
|
||||
@endif
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user