@extends('website_builder.construction_theme.layout') @section('title', ($agency->site_title ?? 'BuildCraft Construction') . ' — Our Services') @section('description', 'Comprehensive construction services across residential, commercial, road, infrastructure, and remodeling projects.') @section('content') @php $heroBg = asset('assets/website_builder/Templates/Construction_agency/construction_herobanner.png'); $rawServices = $agency->services_data ?? null; if (is_string($rawServices)) { $dec = json_decode($rawServices, true); $rawServices = is_string($dec) ? json_decode($dec, true) : $dec; } $services = (!empty($rawServices) && is_array($rawServices) && count($rawServices) > 0) ? $rawServices : [ ['title' => 'Residential Construction', 'desc' => 'Dream homes built with precision.', 'image' => 'assets/website_builder/Templates/Construction_agency/service_residential.png', 'icon' => 'fa-house'], ['title' => 'Commercial Buildings', 'desc' => 'Functional spaces for growing businesses.', 'image' => 'assets/website_builder/Templates/Construction_agency/service_commercial.png', 'icon' => 'fa-building'], ['title' => 'Road & Infrastructure', 'desc' => 'Building stronger communities.', 'image' => 'assets/website_builder/Templates/Construction_agency/service_infra.png', 'icon' => 'fa-road'], ['title' => 'Renovation & Remodeling', 'desc' => 'Transforming spaces for a better tomorrow.', 'image' => 'https://images.unsplash.com/photo-1581094794329-c8112a89af12?q=80&w=600&auto=format&fit=crop', 'icon' => 'fa-hammer'], ['title' => 'Project Management', 'desc' => 'On-time. On-budget. Beyond expectations.', 'image' => 'https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=600&auto=format&fit=crop', 'icon' => 'fa-clipboard-check'], ['title' => 'Structural Engineering & Design', 'desc' => 'Advanced structural calculations, foundation design, and architectural engineering.', 'image' => 'assets/website_builder/Templates/Construction_agency/service_structural.png', 'icon' => 'fa-drafting-compass'], ]; $specializations = $agency->construction_data['specializations'] ?? []; $contactUrl = isset($subdomain) && $subdomain ? route('website-builder.subdomain.contact', ['subdomain' => $subdomain]) : route('website-builder.templates.construction.contact'); $homeUrl = isset($subdomain) && $subdomain ? route('website-builder.subdomain.site', ['subdomain' => $subdomain]) : route('website-builder.templates.construction'); @endphp {{-- Page Hero --}}
Home Our Services

{!! nl2br(e($agency->services_title ?? "Comprehensive Construction &\nEngineering Services")) !!}

{{ $agency->services_subtitle ?? 'End-to-end construction solutions across residential, commercial, industrial, and infrastructure sectors.' }}

{{-- Services List (3 columns per row on laptop view) --}} @if(count($services) > 0)

{!! nl2br(e($agency->services_title ?? 'What We Build')) !!}

{{ $agency->services_subtitle ?? 'We deliver integrated construction solutions with precision, safety, and on-time execution at every stage.' }}

@foreach($services as $service) @php $srvImgSrc = resolveWebsiteBuilderImage($service['image'] ?? '', 'assets/website_builder/Templates/Construction_agency/service_residential.png'); @endphp
@if(!empty($srvImgSrc))
{{ $service['title'] ?? 'Service' }}
@endif
@php $sIcon = trim($service['icon'] ?? 'fa-building'); if (!preg_match('/^(fa-solid|fa-regular|fa-brands|fas|far|fab)\s+/i', $sIcon)) { $sIcon = 'fa-solid ' . $sIcon; } @endphp

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

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

{{ $service['btn_text'] ?? 'Get a Quote' }}
@endforeach
@endif @endsection