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

This commit is contained in:
ssww23
2026-03-10 00:55:37 +03:00
parent fc0f28d830
commit 93a655235a
155 changed files with 24768 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
@extends('layouts.shop')
@section('content')
@include('partials.breadcrumbs', [
'items' => [
['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>
</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>
Email
<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>
</form>
<aside class="pc-card pc-cart-summary">
<h3>Ваш заказ</h3>
<div class="pc-account-orders">
@foreach ($items as $item)
<div class="pc-account-order">
<span>{{ $item['product']->name }} × {{ $item['quantity'] }}</span>
<strong>{{ number_format($item['subtotal'], 0, '.', ' ') }} {{ config('shop.currency_symbol', '₽') }}</strong>
</div>
@endforeach
</div>
<div class="pc-cart-summary-row">
<span>Товаров</span>
<strong>{{ $itemsCount }}</strong>
</div>
<div class="pc-cart-summary-row">
<span>Итого</span>
<strong>{{ number_format($total, 0, '.', ' ') }} {{ config('shop.currency_symbol', '₽') }}</strong>
</div>
</aside>
</div>
</section>
@endsection