@yield('styles') @php $evData = $interior ?? $agency ?? null; $subdomainParam = isset($subdomain) && $subdomain ? $subdomain : null; $homeUrl = $subdomainParam ? route('website-builder.subdomain.site', ['subdomain' => $subdomainParam]) : route('website-builder.templates.evently'); $aboutUrl = $subdomainParam ? route('website-builder.subdomain.about', ['subdomain' => $subdomainParam]) : route('website-builder.templates.evently.about'); $servicesUrl = $subdomainParam ? route('website-builder.subdomain.services', ['subdomain' => $subdomainParam]) : route('website-builder.templates.evently.services'); $contactUrl = $subdomainParam ? route('website-builder.subdomain.contact', ['subdomain' => $subdomainParam]) : route('website-builder.templates.evently.contact'); $portfolioUrl = $subdomainParam ? route('website-builder.subdomain.portfolio', ['subdomain' => $subdomainParam]) : route('website-builder.templates.evently.portfolio'); $blogUrl = $subdomainParam ? route('website-builder.subdomain.blogs', ['subdomain' => $subdomainParam]) : route('website-builder.templates.evently.blogs'); $siteTitle = $evData->site_title ?? 'Evently'; $defaultLogo = asset('assets/website_builder/Templates/Evently/logo.png'); $logoSrc = !empty($evData->site_logo) ? (str_starts_with($evData->site_logo, 'http') ? $evData->site_logo : asset(ltrim($evData->site_logo, '/'))) : $defaultLogo; @endphp

Loading {{ $siteTitle }}...

@if(session('success'))
{{ session('success') }}
@endif
@php $currentPath = request()->path(); $currentRoute = request()->route() ? request()->route()->getName() : ''; $isAbout = str_contains($currentRoute, '.about') || str_ends_with($currentPath, '/about'); $isPortfolio = str_contains($currentRoute, '.portfolio') || str_ends_with($currentPath, '/portfolio') || str_ends_with($currentPath, '/projects') || str_ends_with($currentPath, '/events'); $isContact = str_contains($currentRoute, '.contact') || str_ends_with($currentPath, '/contact'); $isServices = str_contains($currentRoute, '.services') || str_ends_with($currentPath, '/services'); $isBlogs = str_contains($currentRoute, '.blogs') || str_contains($currentRoute, '.blog') || str_ends_with($currentPath, '/blogs'); $isHome = !$isAbout && !$isPortfolio && !$isContact && !$isServices && !$isBlogs; $defaultNav = [ ['title' => 'Home', 'url' => $homeUrl], ['title' => 'About Us', 'url' => $aboutUrl], ['title' => 'Services', 'url' => $servicesUrl], ['title' => 'Events', 'url' => $portfolioUrl], ['title' => 'Contact', 'url' => $contactUrl], ]; $navLinks = !empty($evData->header_nav_links) && is_array($evData->header_nav_links) ? $evData->header_nav_links : $defaultNav; $navLinks = array_values(array_filter($navLinks, function($nl) { $t = strtolower($nl['title'] ?? ''); $u = strtolower($nl['url'] ?? ''); return !str_contains($t, 'blog') && !str_contains($u, 'blog'); })); $resolveNavUrl = function($targetUrl) use ($homeUrl, $aboutUrl, $servicesUrl, $contactUrl, $portfolioUrl, $blogUrl) { $u = strtolower(trim($targetUrl ?? '')); if (empty($u) || $u === 'home' || $u === '#') return $homeUrl; if ($u === 'about' || str_contains($u, 'about')) return $aboutUrl; if ($u === 'services' || str_contains($u, 'service')) return $servicesUrl; if ($u === 'portfolio' || $u === 'projects' || $u === 'events' || str_contains($u, 'portfolio') || str_contains($u, 'project') || str_contains($u, 'event')) return $portfolioUrl; if ($u === 'blogs' || $u === 'blog' || str_contains($u, 'blog')) return $blogUrl; if ($u === 'contact' || str_contains($u, 'contact')) return $contactUrl; if (str_starts_with($u, 'http') || str_starts_with($u, '/') || str_starts_with($u, '#')) return $targetUrl; return $homeUrl; }; @endphp
    @foreach($navLinks as $nl) @if(is_array($nl) && isset($nl['title'])) @php $urlStr = strtolower($nl['url'] ?? ''); $titleStr = strtolower($nl['title'] ?? ''); $targetHref = $resolveNavUrl($nl['url'] ?? ''); $isActive = false; if (($isAbout && (str_contains($urlStr, 'about') || str_contains($titleStr, 'about'))) || ($isPortfolio && (str_contains($urlStr, 'portfolio') || str_contains($urlStr, 'project') || str_contains($urlStr, '/events') || str_contains($titleStr, 'portfolio') || str_contains($titleStr, 'project') || str_contains($titleStr, 'event'))) || ($isContact && (str_contains($urlStr, 'contact') || str_contains($titleStr, 'contact'))) || ($isServices && (str_contains($urlStr, 'service') || str_contains($titleStr, 'service'))) || ($isBlogs && (str_contains($urlStr, 'blog') || str_contains($titleStr, 'blog'))) || ($isHome && ($urlStr === 'home' || $urlStr === '#' || str_contains($titleStr, 'home')))) { $isActive = true; } @endphp
  • {{ $nl['title'] }}
  • @endif @endforeach
{{ $evData->primary_btn_text ?? 'Plan Your Event' }}
{{ $evData->email ?? 'hello@evently.com' }}
{{ $evData->phone ?? '+1 (234) 567-890' }}
@yield('content')
@hasSection('no_cta') @else @php $ctaBg = !empty($evData->cta_banner_image) ? (str_starts_with($evData->cta_banner_image, 'http') ? $evData->cta_banner_image : asset(ltrim($evData->cta_banner_image, '/'))) : asset('assets/website_builder/Templates/Evently/event_cta_bg.png'); @endphp
{{ !empty($evData->cta_banner_badge) ? $evData->cta_banner_badge : 'LET\'S CREATE SOMETHING AMAZING' }}

{!! nl2br(e(!empty($evData->cta_banner_title) ? $evData->cta_banner_title : 'Ready to Plan Your Next Event?')) !!}

{{ !empty($evData->cta_banner_subtitle) ? $evData->cta_banner_subtitle : (!empty($evData->cta_subtitle) ? $evData->cta_subtitle : "From concept to celebration, we're here to make it extraordinary.") }}

Your Event
Our Passion
@endif @yield('scripts') @include('website_builder.partials.launch_celebration') @include('website_builder.partials.floating_call_whatsapp')