61 lines
2.4 KiB
PHP
61 lines
2.4 KiB
PHP
@extends('layouts.shop')
|
||
|
||
@section('content')
|
||
@include('partials.breadcrumbs', [
|
||
'items' => [
|
||
['label' => 'Главная', 'url' => route('home')],
|
||
['label' => 'Личный кабинет', 'url' => route('account')],
|
||
['label' => 'Заказ #' . $order->id, 'url' => null],
|
||
],
|
||
])
|
||
|
||
<section class="pc-section">
|
||
<div class="pc-section-title">
|
||
<h2>Заказ #{{ $order->id }}</h2>
|
||
<p>Статус: <strong>{{ $order->status }}</strong></p>
|
||
<p>Способ оплаты: <strong>{{ $order->payment_method_label }}</strong></p>
|
||
</div>
|
||
|
||
<div class="pc-grid pc-grid-2">
|
||
<div class="pc-card">
|
||
<h3>Состав заказа</h3>
|
||
<div class="pc-account-orders">
|
||
@foreach ($order->items as $item)
|
||
<div class="pc-account-order">
|
||
<span>{{ $item->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>{{ number_format($order->total, 0, '.', ' ') }} {{ config('shop.currency_symbol', '₽') }}</strong>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="pc-card">
|
||
<h3>Данные получателя</h3>
|
||
<p><strong>{{ $order->customer_name }}</strong></p>
|
||
<p>{{ $order->email }}</p>
|
||
@if ($order->phone)
|
||
<p>{{ $order->phone }}</p>
|
||
@endif
|
||
@if ($order->address)
|
||
<p>{{ $order->address }}</p>
|
||
@endif
|
||
@if ($order->comment)
|
||
<p>Комментарий: {{ $order->comment }}</p>
|
||
@endif
|
||
</div>
|
||
</div>
|
||
|
||
@if (!in_array($order->status, ['paid', 'shipped', 'completed'], true))
|
||
@include('partials.payment-requisites', [
|
||
'amount' => $order->total,
|
||
'purpose' => 'Заказ #' . $order->id,
|
||
'showHelp' => true,
|
||
])
|
||
@endif
|
||
</section>
|
||
@endsection
|