contacts.blade.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {{--
  2. Вьюха: Страница контактов
  3. Создана: 2026-05-07
  4. Контроллер: PageController::contacts()
  5. Переменные:
  6. $page — модель Page (slug=contacts, title, meta_title)
  7. $siteSettings — View Composer (phone, email, telegram, working_hours)
  8. Дизайн: по макету diz_tocha/contact.html
  9. Форма: Blade-компонент <x-web-form slug="contact" /> — подключает форму из конструктора
  10. --}}
  11. @extends('layouts.app')
  12. @section('title', $page->meta_title ?: 'Контакты — Точка')
  13. @section('content')
  14. {{-- Заголовок страницы --}}
  15. <section class="page-hdr">
  16. <div class="container">
  17. <div class="sh-label reveal-up">Мы на связи</div>
  18. <h1 class="reveal">КОНТАКТЫ</h1>
  19. <nav class="breadcrumb">
  20. <a href="{{ route('home') }}">Главная</a>
  21. <span>/</span>
  22. <span>Контакты</span>
  23. </nav>
  24. </div>
  25. </section>
  26. {{-- Основной блок --}}
  27. <section class="section sec-alt">
  28. <div class="container">
  29. <div class="contact-layout">
  30. {{-- Левая колонка: форма --}}
  31. <div class="reveal">
  32. <div class="sh-label" style="margin-bottom:10px">Напишите нам</div>
  33. <h2 style="font-family:var(--fh);font-size:clamp(28px,3.5vw,44px);font-weight:900;letter-spacing:-.02em;margin-bottom:32px;line-height:1">
  34. ОСТАВЬТЕ ЗАЯВКУ
  35. </h2>
  36. <x-web-form slug="contact" />
  37. @if(!\App\Models\WebForm::where('slug', 'contact')->where('is_active', true)->exists())
  38. <div style="background:var(--bg2);border:1px solid var(--line);border-radius:var(--r);padding:24px;text-align:center;color:var(--muted)">
  39. <p>Форма временно недоступна. Напишите нам напрямую:</p>
  40. @if($siteSettings['telegram'] ?? '')
  41. <a href="{{ $siteSettings['telegram'] }}" class="btn btn-red" target="_blank">Написать в Telegram</a>
  42. @endif
  43. </div>
  44. @endif
  45. </div>
  46. {{-- Правая колонка: контактная информация --}}
  47. <div class="ci-card reveal">
  48. <h3>КАК СВЯЗАТЬСЯ</h3>
  49. @if($siteSettings['telegram'] ?? '')
  50. <div class="ci">
  51. <div class="ci-icon">
  52. <svg viewBox="0 0 24 24" fill="currentColor" style="width:16px;height:16px">
  53. <path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.96 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/>
  54. </svg>
  55. </div>
  56. <div>
  57. <div class="ci-l">Telegram (быстро)</div>
  58. <div class="ci-v">
  59. <a href="{{ $siteSettings['telegram'] }}" target="_blank" rel="noopener">
  60. {{ $siteSettings['telegram'] }}
  61. </a>
  62. </div>
  63. </div>
  64. </div>
  65. @endif
  66. @if($siteSettings['phone'] ?? '')
  67. <div class="ci">
  68. <div class="ci-icon">
  69. <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" style="width:16px;height:16px">
  70. <path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12 19.79 19.79 0 0 1 1.61 3.4 2 2 0 0 1 3.6 1.22h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 8.79a16 16 0 0 0 6.29 6.29l.96-.96a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z"/>
  71. </svg>
  72. </div>
  73. <div>
  74. <div class="ci-l">Телефон</div>
  75. <div class="ci-v">
  76. <a href="tel:{{ preg_replace('/\D/', '', $siteSettings['phone']) }}">
  77. {{ $siteSettings['phone'] }}
  78. </a>
  79. </div>
  80. </div>
  81. </div>
  82. @endif
  83. @if($siteSettings['email'] ?? '')
  84. <div class="ci">
  85. <div class="ci-icon">
  86. <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="width:16px;height:16px">
  87. <path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/>
  88. </svg>
  89. </div>
  90. <div>
  91. <div class="ci-l">Email</div>
  92. <div class="ci-v">
  93. <a href="mailto:{{ $siteSettings['email'] }}">{{ $siteSettings['email'] }}</a>
  94. </div>
  95. </div>
  96. </div>
  97. @endif
  98. @if($siteSettings['working_hours'] ?? '')
  99. <div class="ci">
  100. <div class="ci-icon">
  101. <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="width:16px;height:16px">
  102. <circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/>
  103. </svg>
  104. </div>
  105. <div>
  106. <div class="ci-l">Режим работы</div>
  107. <div class="ci-v" style="font-size:13px;font-weight:400;line-height:1.8">
  108. @foreach(explode('|', $siteSettings['working_hours']) as $line)
  109. {{ trim($line) }}<br>
  110. @endforeach
  111. </div>
  112. </div>
  113. </div>
  114. @endif
  115. @if($siteSettings['telegram'] ?? '')
  116. <div style="margin-top:20px;padding:14px 16px;background:var(--red-lt);border:1px solid rgba(209,38,38,.15);border-radius:var(--r-sm)">
  117. <p style="font-size:13px;color:var(--muted);line-height:1.7;margin:0">
  118. 💬 <strong style="color:var(--text)">Быстрее всего</strong> — написать в Telegram. Отвечаем за 5–15 минут.
  119. </p>
  120. </div>
  121. @endif
  122. </div>
  123. </div>
  124. </div>
  125. </section>
  126. @endsection