@extends('website_builder.evently_theme.layout') @section('title', 'Our Events - ' . ($interior->site_title ?? 'Evently')) @section('content') @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'); $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'); @endphp @php $evPortHeroImg = resolveWebsiteBuilderImage($evData->portfolio_hero_image ?? $evData->hero_image ?? '', 'https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=1200&auto=format&fit=crop'); if (empty($evPortHeroImg) || str_contains($evPortHeroImg, 'Digital_agency') || str_contains($evPortHeroImg, 'hero_banner.png') || str_contains($evPortHeroImg, 'Construction_agency')) { $evPortHeroImg = 'https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=1200&auto=format&fit=crop'; } $evPortHeroStyle = "background-image: url('" . $evPortHeroImg . "'); background-size: cover; background-position: center;"; $portBadge = !empty($evData->portfolio_badge) ? $evData->portfolio_badge : 'Our Events'; $portTitle = !empty($evData->portfolio_title) ? $evData->portfolio_title : "Events We've\nBrought to Life"; $portSubtitle = !empty($evData->portfolio_subtitle) ? $evData->portfolio_subtitle : 'Browse our portfolio of unforgettable events — from intimate weddings to grand corporate galas.'; $portBtnText = !empty($evData->portfolio_primary_btn_text) ? $evData->portfolio_primary_btn_text : ($evData->primary_btn_text ?? 'Start Planning'); $portBtnUrl = !empty($evData->portfolio_primary_btn_url) ? $evData->portfolio_primary_btn_url : ($evData->primary_btn_url ?? $contactUrl); @endphp
{{ $portBadge }}

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

{{ $portSubtitle }}

Home Our Events
@php $portfolio = $evData->portfolio_data ?? []; if (empty($portfolio)) { $portfolio = \App\Models\WebsiteBuilder\WbAgencySetting::createEventlyDefaultInstance()->portfolio_data; } $dynamicCategories = []; foreach ($portfolio as $item) { $catStr = $item['category'] ?? ''; if (!empty($catStr)) { $cats = preg_split('/[•,]+/', $catStr); foreach ($cats as $c) { $trimmed = trim($c); if ($trimmed !== '') { $slug = \Illuminate\Support\Str::slug($trimmed); $dynamicCategories[$slug] = $trimmed; } } } } @endphp
@foreach($dynamicCategories as $slug => $catName) @endforeach
@foreach($portfolio as $proj) @php $catStr = $proj['category'] ?? ''; $catSlugs = []; if (!empty($catStr)) { foreach (preg_split('/[•,]+/', $catStr) as $c) { $t = trim($c); if ($t !== '') $catSlugs[] = \Illuminate\Support\Str::slug($t); } } $dataCatAttr = implode(' ', $catSlugs); @endphp
{{ $proj['title'] ?? '' }} {{ $proj['category'] ?? 'Event' }}

{{ $proj['title'] ?? '' }}

{{ $proj['desc'] ?? $proj['description'] ?? '' }}

@endforeach
@endsection