@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user