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,81 @@
@extends('layouts.shop')
@section('meta_title', 'Контакты')
@section('meta_description', 'Контакты магазина: телефон, email, адрес и часы работы поддержки.')
@section('meta_keywords', 'контакты магазина, телефон, email, адрес')
@section('meta_canonical', route('pages.contacts'))
@section('content')
@php
$companyName = config('shop.company_name', config('app.name'));
$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'));
$telegramUrl = '';
$phoneUrl = '';
$emailUrl = '';
if ($contactPhone !== '') {
$phoneUrl = 'tel:' . preg_replace('/[^\d+]/', '', $contactPhone);
}
if ($contactEmail !== '') {
$emailUrl = 'mailto:' . $contactEmail;
}
if ($contactTelegram !== '') {
$telegramUrl = str_starts_with($contactTelegram, 'http://') || str_starts_with($contactTelegram, 'https://')
? $contactTelegram
: 'https://t.me/' . ltrim($contactTelegram, '@/');
}
@endphp
@include('partials.breadcrumbs', [
'items' => [
['label' => 'Главная', 'url' => route('home')],
['label' => 'Контакты', 'url' => null],
],
])
<section class="pc-section">
<div class="pc-section-title">
<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>
@if ($phoneUrl !== '')
<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>
@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>
@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 />
</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>
</label>
<button type="submit" class="pc-btn primary">Отправить сообщение</button>
</form>
</div>
</section>
@endsection