@extends('website_builder.construction_theme.layout') @php $pageSiteTitle = (!empty($agency->site_title) && $agency->site_title !== 'DesignAGENCY') ? $agency->site_title : ((isset($customer) && !empty($customer->company_name)) ? $customer->company_name : ((isset($customer) && !empty($customer->name)) ? $customer->name : 'BuildCraft Construction')); @endphp @section('title', $pageSiteTitle . ' — Building Stronger Futures') @section('description', $agency->hero_subtitle ?? 'Reliable construction, renovation, and infrastructure solutions built on quality, safety, and trust.') @section('content') @php $subdomainParam = isset($subdomain) && $subdomain ? $subdomain : null; $contactUrl = $subdomainParam ? route('website-builder.subdomain.contact', ['subdomain' => $subdomainParam]) : route('website-builder.templates.construction.contact'); $aboutUrl = $subdomainParam ? route('website-builder.subdomain.about', ['subdomain' => $subdomainParam]) : route('website-builder.templates.construction.about'); $portfolioUrl = $subdomainParam ? route('website-builder.subdomain.portfolio', ['subdomain' => $subdomainParam]) : route('website-builder.templates.construction.portfolio'); $servicesUrl = $subdomainParam ? route('website-builder.subdomain.services', ['subdomain' => $subdomainParam]) : route('website-builder.templates.construction.services'); $defaultHero = asset('assets/website_builder/Templates/Construction_agency/construction_herobanner.png'); $heroImg = $agency->hero_image ?? ''; $isDigitalHero = empty($heroImg) || str_contains($heroImg, 'Digital_agency') || str_contains($heroImg, 'hero_banner.png') || str_contains($heroImg, 'homepage_hero'); $heroBg = !$isDigitalHero ? (str_starts_with($heroImg, 'http') ? $heroImg : asset(ltrim($heroImg, '/'))) : $defaultHero; $footerCtaBg = asset('assets/website_builder/Templates/Construction_agency/construction_footercta.png'); $heroBadge = !empty($agency->hero_badge) ? $agency->hero_badge : '🛡️ Trusted Construction Partner'; $heroTitle = !empty($agency->hero_title) ? $agency->hero_title : 'Building Stronger Futures'; $heroSubtitle = !empty($agency->hero_subtitle) ? $agency->hero_subtitle : 'Reliable construction, renovation, and infrastructure solutions built on quality, safety, and trust. We turn visions into extraordinary spaces.'; $rawStats = $agency->stats_data ?? null; if (is_string($rawStats)) { $dec = json_decode($rawStats, true); $rawStats = is_string($dec) ? json_decode($dec, true) : $dec; } $stats = (is_array($rawStats) && count($rawStats) > 0) ? $rawStats : (\App\Models\WebsiteBuilder\WbAgencySetting::createConstructionDefaultInstance()->stats_data ?? []); $rawServices = $agency->services_data ?? null; if (is_string($rawServices)) { $dec = json_decode($rawServices, true); $rawServices = is_string($dec) ? json_decode($dec, true) : $dec; } $services = (is_array($rawServices) && count($rawServices) > 0) ? $rawServices : (\App\Models\WebsiteBuilder\WbAgencySetting::createConstructionDefaultInstance()->services_data ?? []); $rawPortfolio = $agency->portfolio_data ?? null; if (is_string($rawPortfolio)) { $dec = json_decode($rawPortfolio, true); $rawPortfolio = is_string($dec) ? json_decode($dec, true) : $dec; } $portfolio = (is_array($rawPortfolio) && count($rawPortfolio) > 0) ? $rawPortfolio : (\App\Models\WebsiteBuilder\WbAgencySetting::createConstructionDefaultInstance()->portfolio_data ?? []); $rawTesti = $agency->testimonials_data ?? null; if (is_string($rawTesti)) { $dec = json_decode($rawTesti, true); $rawTesti = is_string($dec) ? json_decode($dec, true) : $dec; } $testimonials = (is_array($rawTesti) && count($rawTesti) > 0) ? $rawTesti : (\App\Models\WebsiteBuilder\WbAgencySetting::createConstructionDefaultInstance()->testimonials_data ?? []); $specializations = $agency->construction_data['specializations'] ?? []; @endphp {{-- ===================================================================== 1. HERO SECTION (Ref Screenshot 2 Match) ===================================================================== --}}
{{-- Floating Top Right Script Text --}}
Construct Innovate Elevate
{{ $heroBadge }}

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

{{ $heroSubtitle }}

{{-- Bottom Hero Trust Highlights Bar --}} @php $trustBar = $agency->trust_bar_data ?? [ ['title' => 'Safe & Quality', 'sub' => 'Construction'], ['title' => 'Experienced', 'sub' => 'Professional Team'], ['title' => 'On-Time', 'sub' => 'Project Delivery'], ]; @endphp
@foreach($trustBar as $ti => $tb)
{{ $tb['title'] ?? '' }}
{{ $tb['sub'] ?? '' }}
@endforeach
{{-- Floating Bottom Right Badge --}}
Shaping A Better
Tomorrow
{{-- ===================================================================== 2. OUR SERVICES SECTION ("Comprehensive Construction Solutions") ===================================================================== --}} @php if (empty($services)) { $services = [ ['icon' => 'fa-building', 'title' => 'Commercial Construction', 'desc' => 'High-rise office complexes, retail centers, and modern corporate headquarters.', 'image' => 'assets/website_builder/Templates/Construction_agency/service_commercial.png'], ['icon' => 'fa-house-chimney', 'title' => 'Residential Contracting', 'desc' => 'Custom luxury villas, housing developments, and private family residences.', 'image' => 'assets/website_builder/Templates/Construction_agency/service_residential.png'], ['icon' => 'fa-city', 'title' => 'Civil Infrastructure', 'desc' => 'Skyscraper developments, bridges, highways, and municipal projects.', 'image' => 'assets/website_builder/Templates/Construction_agency/service_civil.png'], ['icon' => 'fa-hammer', 'title' => 'Structural Renovation', 'desc' => 'Historic building restoration, structural retrofitting, and modern upgrades.', 'image' => 'assets/website_builder/Templates/Construction_agency/service_renovation.png'], ['icon' => 'fa-compass-drafting', 'title' => 'Architectural Engineering', 'desc' => 'BIM modeling, structural engineering blueprints, and site planning.', 'image' => 'assets/website_builder/Templates/Construction_agency/service_industrial.png'], ['icon' => 'fa-helmet-safety', 'title' => 'Project Supervision', 'desc' => 'Turnkey site management, safety compliance, and quality auditing.', 'image' => 'assets/website_builder/Templates/Construction_agency/service_infrastructure.png'], ['icon' => 'fa-ruler-combined', 'title' => 'Interior Fit-Out', 'desc' => 'Luxury interior acoustic ceiling, partitions, and custom millwork.', 'image' => 'assets/website_builder/Templates/Construction_agency/service_commercial.png'], ['icon' => 'fa-leaf', 'title' => 'Green Sustainable Build', 'desc' => 'LEED-certified eco-friendly building materials and solar integration.', 'image' => 'assets/website_builder/Templates/Construction_agency/service_residential.png'], ]; } $servicesCount = count($services); @endphp @if($servicesCount > 0)

{!! nl2br(e(!empty($agency->services_title) ? $agency->services_title : 'Comprehensive Construction Solutions')) !!}

{{ !empty($agency->services_subtitle) ? $agency->services_subtitle : 'From innovative buildings to critical infrastructure, we deliver excellence in every project.' }}

@if($servicesCount > 4)
@endif
@if($servicesCount > 4)
@foreach($services as $service) @php $srvImg = $service['image'] ?? 'assets/website_builder/Templates/Construction_agency/service_residential.png'; $srvImgUrl = str_starts_with($srvImg, 'http') ? $srvImg : asset(ltrim($srvImg, '/')); $srvIcon = trim($service['icon'] ?? 'fa-building'); if (!preg_match('/^(fa-solid|fa-regular|fa-brands|fas|far|fab)\s+/i', $srvIcon)) { $srvIcon = 'fa-solid ' . $srvIcon; } @endphp
{{ $service['title'] ?? '' }}

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

{{ $service['desc'] ?? ($service['description'] ?? '') }}

@endforeach
@else
@foreach($services as $service) @php $srvImg = $service['image'] ?? 'assets/website_builder/Templates/Construction_agency/service_residential.png'; $srvImgUrl = str_starts_with($srvImg, 'http') ? $srvImg : asset(ltrim($srvImg, '/')); $srvIcon = trim($service['icon'] ?? 'fa-building'); if (!preg_match('/^(fa-solid|fa-regular|fa-brands|fas|far|fab)\s+/i', $srvIcon)) { $srvIcon = 'fa-solid ' . $srvIcon; } @endphp
{{ $service['title'] ?? '' }}

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

{{ $service['desc'] ?? ($service['description'] ?? '') }}

@endforeach
@endif
@endif {{-- ===================================================================== 3. ABOUT US SECTION (BELOW SERVICES SECTION!) ===================================================================== --}}

{!! nl2br(e($agency->about_hero_title ?? "More Than Just Construction\nWe Build Better Lives")) !!}

{{ $agency->about_hero_subtitle ?? 'BuildCraft committed to delivering exceptional construction solutions for residential, commercial, and infrastructure projects. With a focus on quality, innovation, and sustainability, we create spaces that inspire and last for generations.' }}

{{ $agency->about_primary_btn_text ?? 'Learn More' }}
{{-- 3 Feature Cards (Mission, Vision, Values) --}}

{{ $agency->mission_title ?? 'Our Mission' }}

{{ $agency->mission_text ?? 'To deliver high-quality construction solutions that enhance communities and create lasting value.' }}

{{ $agency->vision_title ?? 'Our Vision' }}

{{ $agency->vision_text ?? 'To be a leading global construction company known for innovation, sustainability, and excellence.' }}

{{ $agency->values_title ?? 'Our Values' }}

@php $valText = $agency->values_text ?? "Safety First\nIntegrity & Transparency\nQuality in Every Detail\nCustomer Satisfaction\nSustainable Growth"; $valItems = array_values(array_filter(array_map('trim', preg_split('/\r\n|\r|\n|,/', $valText)))); @endphp @foreach($valItems as $vi) {{ $vi }} @endforeach
{{-- Dark Stats Bar (4 columns) --}} @php $rawStatsBar = $agency->stats_data ?? null; if (is_string($rawStatsBar)) { $dec = json_decode($rawStatsBar, true); $rawStatsBar = is_string($dec) ? json_decode($dec, true) : $dec; } $statsBar = (is_array($rawStatsBar) && count($rawStatsBar) > 0) ? $rawStatsBar : [ ['number' => '15+', 'label' => 'Years of Experience', 'icon' => 'fa-users'], ['number' => '320+', 'label' => 'Projects Completed', 'icon' => 'fa-file-lines'], ['number' => '98%', 'label' => 'Client Satisfaction', 'icon' => 'fa-star'], ['number' => '24/7', 'label' => 'Project Support', 'icon' => 'fa-headset'], ]; @endphp
@foreach($statsBar as $st)
{{ $st['number'] ?? '' }}
{{ $st['label'] ?? '' }}
@endforeach
{{-- ===================================================================== 4. FEATURED PROJECTS SECTION (Portfolio) ===================================================================== --}} @if(count($portfolio) > 0)

{{ !empty($agency->portfolio_title) ? $agency->portfolio_title : 'Featured Projects' }}

{{ !empty($agency->portfolio_subtitle) ? $agency->portfolio_subtitle : 'Explore some of our recently completed projects across various sectors.' }}

@foreach(array_slice($portfolio, 0, 5) as $project) @php $prjImg = $project['image'] ?? $project['img'] ?? 'assets/website_builder/Templates/Construction_agency/service_residential.png'; @endphp
{{ $project['title'] ?? '' }} {{ $project['category'] ?? 'Construction' }}

{{ $project['title'] }}

{{ $project['location'] ?? 'USA' }}
@endforeach
@endif {{-- ===================================================================== 5. TESTIMONIALS SECTION ("What Our Clients Say") ===================================================================== --}} @php $testimonialsCount = count($testimonials); @endphp @if($testimonialsCount > 0)

{!! nl2br(e($agency->testimonials_title ?? 'What Our Clients Say')) !!}

{{ $agency->testimonials_subtitle ?? 'Real stories from our valued clients who have built their dreams with us.' }}

@if($testimonialsCount > 4)
@endif
@if($testimonialsCount > 0)
@foreach($testimonials as $idx => $t) @php $avatar = $t['avatar'] ?? $t['image'] ?? $t['photo'] ?? ''; if (empty($avatar) || str_contains($avatar, 'unsplash.com')) { $avatar = asset('assets/website_builder/Templates/Construction_agency/team_' . (($idx % 3) + 1) . '.png'); } else { $avatar = str_starts_with($avatar, 'http') ? $avatar : asset(ltrim($avatar, '/')); } @endphp

"{{ $t['comment'] ?? '' }}"

{{ $t['name'] ?? '' }}
{{ $t['name'] ?? '' }}
{{ $t['role'] ?? '' }}
View Review
@endforeach
@endif
@endif {{-- ===================================================================== BLOG & INSIGHTS SECTION ===================================================================== --}} @if(!isset($agency) || (method_exists($agency, 'isFeatureEnabled') ? $agency->isFeatureEnabled('blog', $customer ?? null) : true)) @php $blogs = $agency->blogs_data ?? []; if (empty($blogs) || \App\Models\WebsiteBuilder\WbAgencySetting::isDefaultBlogPlaceholderForOtherTheme('construction', $blogs)) { $blogs = \App\Models\WebsiteBuilder\WbAgencySetting::createConstructionDefaultInstance($agency->customer_id ?? null)->blogs_data ?? []; } $blogsCount = count($blogs); $subdomainSlug = $subdomain ?? (isset($customer) && !empty($customer->subdomain) ? $customer->subdomain : null); @endphp

Construction Insights & Updates

Latest news, engineering innovations, and site management best practices.

@if($blogsCount > 3) @endif
@if($blogsCount > 0)
@foreach($blogs as $b) @php $blogId = $b['id'] ?? $loop->iteration; $blogDetailUrl = $subdomainSlug ? route('website-builder.subdomain.blog', ['subdomain' => $subdomainSlug, 'id' => $blogId]) : url('/website-builder/templates/construction/blog/' . $blogId); @endphp
{{ $b['title'] ?? '' }} {{ $b['category'] ?? 'Article' }}
{{ $b['date'] ?? date('M d, Y') }} {{ $b['author'] ?? 'Admin' }}
{{ $b['title'] ?? '' }}

{{ $b['excerpt'] ?? '' }}

Read Article
@endforeach
@endif
@endif @endsection @section('scripts') @endsection