1
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
ssww23
2026-03-17 01:59:00 +03:00
parent 93a655235a
commit 0ee9f05416
48 changed files with 1193 additions and 413 deletions

View File

@@ -3,22 +3,22 @@
@section('content')
@include('partials.breadcrumbs', [
'items' => [
['label' => 'Главная', 'url' => route('home')],
['label' => 'Корзина', 'url' => route('cart.index')],
['label' => 'Данные получателя', 'url' => route('checkout.show')],
['label' => 'Реквизиты для оплаты', 'url' => null],
['label' => __('Главная'), 'url' => route('home')],
['label' => __('Корзина'), 'url' => route('cart.index')],
['label' => __('Данные получателя'), 'url' => route('checkout.show')],
['label' => __('Реквизиты для оплаты'), 'url' => null],
],
])
<section class="pc-section">
<div class="pc-section-title">
<h2>Реквизиты для оплаты</h2>
<p>Переведите сумму заказа по реквизитам ниже и подтвердите оформление.</p>
<h2>{{ __('Реквизиты для оплаты') }}</h2>
<p>{{ __('Переведите сумму заказа по реквизитам ниже и подтвердите оформление.') }}</p>
</div>
<div class="pc-cart-layout">
<div class="pc-card">
<h3>Данные получателя</h3>
<h3>{{ __('Данные получателя') }}</h3>
<p><strong>{{ $customer['customer_name'] }}</strong></p>
<p>{{ $customer['email'] }}</p>
@if (!empty($customer['phone']))
@@ -26,16 +26,16 @@
@endif
<p>{{ $customer['address'] }}</p>
@if (!empty($customer['comment']))
<p>Комментарий: {{ $customer['comment'] }}</p>
<p>{{ __('Комментарий:') }} {{ $customer['comment'] }}</p>
@endif
<div class="pc-product-actions">
<a class="pc-btn ghost" href="{{ route('checkout.show') }}">Изменить данные</a>
<a class="pc-btn ghost" href="{{ route('checkout.show') }}">{{ __('Изменить данные') }}</a>
</div>
</div>
<aside class="pc-card pc-cart-summary">
<h3>Ваш заказ</h3>
<h3>{{ __('Ваш заказ') }}</h3>
<div class="pc-account-orders">
@foreach ($items as $item)
<div class="pc-account-order">
@@ -45,11 +45,11 @@
@endforeach
</div>
<div class="pc-cart-summary-row">
<span>Товаров</span>
<span>{{ __('Товаров') }}</span>
<strong>{{ $itemsCount }}</strong>
</div>
<div class="pc-cart-summary-row">
<span>Итого</span>
<span>{{ __('Итого') }}</span>
<strong>{{ number_format($total, 0, '.', ' ') }} {{ config('shop.currency_symbol', '₽') }}</strong>
</div>
</aside>
@@ -57,13 +57,13 @@
@include('partials.payment-requisites', [
'amount' => $total,
'purpose' => 'Номер заказа будет присвоен после подтверждения',
'purpose' => __('Номер заказа будет присвоен после подтверждения'),
'showHelp' => true,
])
<form method="post" action="{{ route('checkout.store') }}">
@csrf
<button class="pc-btn primary" type="submit">Подтвердить оформление заказа</button>
<button class="pc-btn primary" type="submit">{{ __('Подтвердить оформление заказа') }}</button>
</form>
</section>
@endsection