@extends('frontend.layout') @section('title', 'Contact Us — ' . config('app.name')) @php // Admin can save EITHER a structured array (subtitle / response_time // / support_email_label / support_channels) OR a raw HTML string // (whole-page template). Detect which one and render the right // path below. $rawHtml = is_string($content) && trim($content) !== '' ? $content : null; $c = is_array($content) ? $content : []; $supportEmail = \App\Models\SystemSetting::get('support_email', 'support@example.com'); @endphp @section('content')
{{-- Ambient Background --}}
@if($rawHtml) {{-- Admin pasted raw HTML — render in a styled prose wrapper. --}}
{!! $rawHtml !!}
@else
{{-- Left Side: Info --}}
24/7 Support Available

Let's start a
{{ __("Conversation.") }}

{{ $c['subtitle'] ?? __('Reach out — we usually reply within a few hours.') }}

{{ $c['support_email_label'] ?? __('Email Us') }}

{{ $supportEmail }}

Avg. Response

{{ $c['response_time'] ?? '< 2h' }}

{{ $c['support_channels'] ?? '' }}

{{-- Right Side: Contact Form --}}

{{ __("Message Sent!") }}

We'll get back to you as soon as possible.

@endif
@endsection