@extends('user.master') @section('title', 'Contact Us') @section('content')

Contact Us

Home > Contact Us

Contact Me

Get In Touch With Me

Phone
@if(isset($websiteSetting) && !empty($websiteSetting->contact_phone)) {{ $websiteSetting->contact_phone }} @elseif(isset($websiteSetting) && !empty($websiteSetting->contact_mobile)) {{ $websiteSetting->contact_mobile }} @else N/A @endif
Email
@if(isset($websiteSetting) && !empty($websiteSetting->contact_email)) {{ $websiteSetting->contact_email }} @else N/A @endif
Address

@if(isset($websiteSetting)) @php $addressParts = array_filter([ $websiteSetting->contact_address, $websiteSetting->contact_city, $websiteSetting->contact_state, $websiteSetting->contact_pincode, $websiteSetting->contact_country ]); @endphp @if(!empty($addressParts)) {{ implode(', ', $addressParts) }} @else N/A @endif @else N/A @endif

@csrf
@php $mapUrl = null; if (isset($websiteSetting) && $websiteSetting) { // Get raw attribute value first to check if data exists $rawMapUrl = $websiteSetting->getAttributes()['map_embed_url'] ?? null; // If raw value exists and is not null/empty, process it if ($rawMapUrl !== null && trim($rawMapUrl) !== '') { $mapUrl = $websiteSetting->map_embed_url; // Check if map_embed_url is not empty (after model accessor processing) if (!empty($mapUrl) && trim($mapUrl) !== '') { // Extract src URL if full iframe HTML is stored if (preg_match('/]+src=["\']([^"\']+)["\']/', $mapUrl, $matches)) { $mapUrl = $matches[1]; } } else { $mapUrl = null; } } } @endphp @if(!empty($mapUrl) && trim($mapUrl) !== '') @if(strpos($mapUrl, 'maps.app.goo.gl') !== false || strpos($mapUrl, 'goo.gl/maps') !== false)

Map Error: Please use the embed URL, not the share link.

Go to Google Maps → Share → Embed a map → Copy the iframe src URL

@else @endif @else @endif
@endsection