@@ -3,23 +3,23 @@
|
||||
@section('content')
|
||||
@include('partials.breadcrumbs', [
|
||||
'items' => [
|
||||
['label' => 'Главная', 'url' => route('home')],
|
||||
['label' => 'Корзина', 'url' => route('cart.index')],
|
||||
['label' => 'Данные получателя', 'url' => null],
|
||||
['label' => __('Главная'), 'url' => route('home')],
|
||||
['label' => __('Корзина'), 'url' => route('cart.index')],
|
||||
['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">
|
||||
<form class="pc-card pc-form" method="post" action="{{ route('checkout.prepare') }}">
|
||||
@csrf
|
||||
<label>
|
||||
Имя получателя
|
||||
{{ __('Имя получателя') }}
|
||||
<input type="text" name="customer_name" value="{{ old('customer_name', session('checkout.customer.customer_name', auth()->user()->name ?? '')) }}" required>
|
||||
</label>
|
||||
<label>
|
||||
@@ -27,22 +27,22 @@
|
||||
<input type="email" name="email" value="{{ old('email', session('checkout.customer.email', auth()->user()->email ?? '')) }}" required>
|
||||
</label>
|
||||
<label>
|
||||
Телефон
|
||||
{{ __('Телефон') }}
|
||||
<input type="text" name="phone" value="{{ old('phone', session('checkout.customer.phone')) }}">
|
||||
</label>
|
||||
<label>
|
||||
Адрес доставки
|
||||
{{ __('Адрес доставки') }}
|
||||
<textarea name="address" required>{{ old('address', session('checkout.customer.address')) }}</textarea>
|
||||
</label>
|
||||
<label>
|
||||
Комментарий к заказу
|
||||
{{ __('Комментарий к заказу') }}
|
||||
<textarea name="comment">{{ old('comment', session('checkout.customer.comment')) }}</textarea>
|
||||
</label>
|
||||
<button class="pc-btn primary" type="submit">Перейти к реквизитам</button>
|
||||
<button class="pc-btn primary" type="submit">{{ __('Перейти к реквизитам') }}</button>
|
||||
</form>
|
||||
|
||||
<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">
|
||||
@@ -52,11 +52,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>
|
||||
|
||||
Reference in New Issue
Block a user