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

@@ -1,8 +1,8 @@
@extends('layouts.shop')
@section('meta_title', 'Контакты')
@section('meta_description', 'Контакты магазина: телефон, email, адрес и часы работы поддержки.')
@section('meta_keywords', 'контакты магазина, телефон, email, адрес')
@section('meta_title', __('Контакты'))
@section('meta_description', __('Контакты магазина: телефон, email, адрес и часы работы поддержки.'))
@section('meta_keywords', __('контакты магазина, телефон, email, адрес'))
@section('meta_canonical', route('pages.contacts'))
@section('content')
@@ -11,7 +11,7 @@
$contactPhone = trim((string) config('shop.contact_phone'));
$contactEmail = trim((string) config('shop.contact_email'));
$contactTelegram = trim((string) config('shop.contact_telegram'));
$contactHours = trim((string) config('shop.contact_hours'));
$contactHours = trim((string) __(config('shop.contact_hours')));
$telegramUrl = '';
$phoneUrl = '';
$emailUrl = '';
@@ -33,48 +33,48 @@
@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">
<article class="pc-card">
<div class="pc-card-meta">Поддержка</div>
<h3>{{ $companyName }} поддержка клиентов</h3>
<div class="pc-card-meta">{{ __('Поддержка') }}</div>
<h3>{{ __(':company — поддержка клиентов', ['company' => $companyName]) }}</h3>
@if ($phoneUrl !== '')
<p>Телефон: <a class="pc-contact-link" href="{{ $phoneUrl }}">{{ $contactPhone }}</a></p>
<p>{{ __('Телефон:') }} <a class="pc-contact-link" href="{{ $phoneUrl }}">{{ $contactPhone }}</a></p>
@endif
@if ($emailUrl !== '')
<p>Почта: <a class="pc-contact-link" href="{{ $emailUrl }}">{{ $contactEmail }}</a></p>
<p>{{ __('Почта:') }} <a class="pc-contact-link" href="{{ $emailUrl }}">{{ $contactEmail }}</a></p>
@endif
@if ($telegramUrl !== '')
<p>Telegram: <a class="pc-contact-link" href="{{ $telegramUrl }}" target="_blank" rel="noopener noreferrer">{{ $contactTelegram }}</a></p>
@endif
@if ($contactHours !== '')
<p>Часы: {{ $contactHours }}</p>
<p>{{ __('Часы:') }} {{ $contactHours }}</p>
@endif
</article>
<form class="pc-card pc-form" method="post" action="{{ route('pages.contacts.submit') }}">
@csrf
<label>
Имя
<input type="text" name="name" value="{{ old('name') }}" placeholder="Ваше имя" required />
{{ __('Имя') }}
<input type="text" name="name" value="{{ old('name') }}" placeholder="{{ __('Ваше имя') }}" required />
</label>
<label>
Почта
{{ __('Почта') }}
<input type="email" name="email" value="{{ old('email') }}" placeholder="mail@example.com" required />
</label>
<label>
Сообщение
<textarea name="message" placeholder="Расскажите о вашей сборке" required>{{ old('message') }}</textarea>
{{ __('Сообщение') }}
<textarea name="message" placeholder="{{ __('Расскажите о вашей сборке') }}" required>{{ old('message') }}</textarea>
</label>
<button type="submit" class="pc-btn primary">Отправить сообщение</button>
<button type="submit" class="pc-btn primary">{{ __('Отправить сообщение') }}</button>
</form>
</div>
</section>