61 lines
2.5 KiB
PHP
61 lines
2.5 KiB
PHP
@extends('layouts.shop')
|
||
|
||
@section('content')
|
||
@include('partials.breadcrumbs', [
|
||
'items' => [
|
||
['label' => __('Главная'), 'url' => route('home')],
|
||
['label' => __('Личный кабинет'), 'url' => route('account')],
|
||
['label' => __('Заказ #:number', ['number' => $order->id]), 'url' => null],
|
||
],
|
||
])
|
||
|
||
<section class="pc-section">
|
||
<div class="pc-section-title">
|
||
<h2>{{ __('Заказ #:number', ['number' => $order->id]) }}</h2>
|
||
<p>{{ __('Статус:') }} <strong>{{ $order->status_label }}</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' => __('Заказ #:number', ['number' => $order->id]),
|
||
'showHelp' => true,
|
||
])
|
||
@endif
|
||
</section>
|
||
@endsection
|