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,24 +3,24 @@
@section('content')
@include('partials.breadcrumbs', [
'items' => [
['label' => 'Главная', 'url' => route('home')],
['label' => 'Личный кабинет', 'url' => null],
['label' => __('Главная'), 'url' => route('home')],
['label' => __('Личный кабинет'), 'url' => null],
],
])
<section class="pc-section">
<div class="pc-section-title">
<h2>Личный кабинет</h2>
<p>Управляйте данными профиля и просматривайте историю заказов.</p>
<h2>{{ __('Личный кабинет') }}</h2>
<p>{{ __('Управляйте данными профиля и просматривайте историю заказов.') }}</p>
</div>
<div class="pc-grid pc-grid-2">
<div class="pc-card">
<form class="pc-form" method="post" action="{{ route('account.update') }}">
@csrf
<h3>Данные аккаунта</h3>
<h3>{{ __('Данные аккаунта') }}</h3>
<label>
Имя
{{ __('Имя') }}
<input type="text" name="name" value="{{ old('name', $user->name) }}" required>
</label>
<label>
@@ -28,25 +28,25 @@
<input type="email" name="email" value="{{ old('email', $user->email) }}" required>
</label>
<div class="pc-product-actions">
<button class="pc-btn primary" type="submit">Сохранить</button>
<button class="pc-btn primary" type="submit">{{ __('Сохранить') }}</button>
</div>
</form>
<form method="post" action="{{ route('logout') }}">
@csrf
<button class="pc-btn ghost" type="submit">Выйти</button>
<button class="pc-btn ghost" type="submit">{{ __('Выйти') }}</button>
</form>
</div>
<div class="pc-card">
<h3>Мои заказы</h3>
<h3>{{ __('Мои заказы') }}</h3>
@if ($orders->isEmpty())
<p>Пока нет заказов.</p>
<a class="pc-btn ghost" href="{{ route('catalog.index') }}">Перейти в каталог</a>
<p>{{ __('Пока нет заказов.') }}</p>
<a class="pc-btn ghost" href="{{ route('catalog.index') }}">{{ __('Перейти в каталог') }}</a>
@else
<div class="pc-account-orders">
@foreach ($orders as $order)
<a class="pc-account-order" href="{{ route('account.orders.show', $order) }}">
<span>Заказ #{{ $order->id }}</span>
<span>{{ __('Заказ #:number', ['number' => $order->id]) }}</span>
<strong>{{ number_format($order->total, 0, '.', ' ') }} {{ config('shop.currency_symbol', '₽') }}</strong>
</a>
@endforeach