@extends('frontend.layouts.app') @section('title', $contact->seo_title ?? ($setting->seo_title ?? 'Ramkamal Developers')) @section('meta-title', $contact->seo_title ?? ($setting->seo_title ?? 'Ramkamal Developers')) @section('meta-description', $contact->seo_description ?? ($setting->seo_description ?? '')) @php $cmsAsset = function (string $key, string $fallback = '') use ($content) { $path = (string) ($content[$key] ?? $fallback); return asset_image($path) ?: asset($fallback); }; $splitOptions = function (?string $text) { return array_values(array_filter(array_map('trim', preg_split('/\r\n|\r|\n/', (string) $text) ?: []), fn ($v) => $v !== '')); }; $phone1 = trim((string) ($contact->office_phone_1 ?? '')); $phone2 = trim((string) ($contact->office_phone_2 ?? '')); $email1 = trim((string) ($contact->office_email_1 ?? '')); $email2 = trim((string) ($contact->office_email_2 ?? '')); $address = trim((string) ($contact->office_address ?? ($setting->headoffice ?? ''))); $waNum = preg_replace('/\D+/', '', (string) ($contact->whatsapp_number ?? $setting->whatsapp ?? '918870313444')); $waUrl = $waNum !== '' ? ('https://wa.me/'.$waNum.'?text=Hi') : '#'; $officeHours = []; foreach ($splitOptions($contact->office_hours ?? '') as $line) { $parts = array_map('trim', explode('|', $line, 2)); if (($parts[0] ?? '') !== '') { $officeHours[] = [$parts[0], $parts[1] ?? '']; } } @endphp @section('content')
{{ $contact->enquire_kicker ?? 'Enquire Now' }}

{{ $contact->enquire_title ?? 'Send Us a Message' }}

@csrf @include('frontend.partials.honeypot') @include('frontend.partials.turnstile')
Select a Project
    @foreach($splitOptions($contact->enquiry_projects ?? '') as $option)
  • {{ $option }}
  • @endforeach
Select
    @foreach($splitOptions($contact->enquiry_bhk ?? '') as $option)
  • {{ $option }}
  • @endforeach
Select budget
    @foreach($splitOptions($contact->enquiry_budgets ?? '') as $option)
  • {{ $option }}
  • @endforeach
{{ $contact->office_kicker ?? 'Our Office' }}

{{ $contact->office_title ?? 'Visit Us or Call Us' }}

location
{{ $contact->office_address_title ?? 'Head Office' }}

{!! nl2br(e($address)) !!}

call
{{ $contact->office_sales_title ?? 'Sales Enquiries' }}
@if($phone1)

{{ $phone1 }} {{ $contact->office_phone_1_label ?? '' }}

@endif @if($phone2)

{{ $phone2 }} {{ $contact->office_phone_2_label ?? '' }}

@endif @if(!empty($contact->office_sales_note))

{{ $contact->office_sales_note }}

@endif
email
{{ $contact->office_email_title ?? 'Email' }}
@if($email1)

{{ $email1 }}

@endif @if($email2)

{{ $email2 }}

@endif
whatsapp
{{ $contact->office_whatsapp_title ?? 'WhatsApp' }}

{{ $contact->office_whatsapp_text ?? 'Chat Now on WhatsApp →' }}

@if(!empty($contact->office_whatsapp_note)) {{ $contact->office_whatsapp_note }} @endif
{{ $contact->callback_title ?? 'Request an Instant Callback' }}

{{ $contact->callback_description ?? '' }}

@csrf @include('frontend.partials.honeypot') @include('frontend.partials.turnstile')
{{ $contact->hours_title ?? 'Office Hours' }}
    @foreach($officeHours as [$label, $value])
  • {{ $label }}{{ $value }}
  • @endforeach
{{ $contact->team_kicker ?? 'JOIN OUR TEAM' }}

{{ $contact->team_title ?? "We're Always Looking for Exceptional People" }}

{{ $contact->team_description ?? '' }}

@endsection @include('frontend.contact.script')