@extends('website_builder.interior_template.layout') @section('title', 'Portfolio - InterioCRAFT Architectural & Interior Design Showcase') @section('content') @php $subdomainParam = isset($subdomain) && $subdomain ? $subdomain : null; $homeUrl = $subdomainParam ? route('website-builder.subdomain.site', ['subdomain' => $subdomainParam]) : route('website-builder.templates.interior'); $aboutUrl = $subdomainParam ? route('website-builder.subdomain.about', ['subdomain' => $subdomainParam]) : route('website-builder.templates.interior.about'); $contactUrl = $subdomainParam ? route('website-builder.subdomain.contact', ['subdomain' => $subdomainParam]) : route('website-builder.templates.interior.contact'); $portfolioUrl = $subdomainParam ? route('website-builder.subdomain.portfolio', ['subdomain' => $subdomainParam]) : route('website-builder.templates.interior.portfolio'); @endphp @php $defaultPortHero = asset('assets/website_builder/Templates/Interior_agency/portfolio_hero.png'); $portHeroSrc = resolveWebsiteBuilderImage($interior->portfolio_hero_image ?? $interior->hero_image ?? '', 'assets/website_builder/Templates/Interior_agency/portfolio_hero.png'); @endphp
{{ !empty($interior->portfolio_badge) ? $interior->portfolio_badge : ($interior->hero_badge ?? 'OUR PORTFOLIO') }}

{!! nl2br(e(!empty($interior->portfolio_title) ? $interior->portfolio_title : "Spaces We Design,\nStories We Create")) !!}

{{ !empty($interior->portfolio_subtitle) ? $interior->portfolio_subtitle : 'Explore our latest interior design projects and see how we turn ideas into beautiful, functional spaces.' }}

@php $rawStats = $interior->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 : [ ['number' => '8+', 'label' => 'Years of Experience', 'icon' => 'fa-trophy'], ['number' => '250+', 'label' => 'Projects Completed', 'icon' => 'fa-house'], ['number' => '98%', 'label' => 'Client Satisfaction', 'icon' => 'fa-star'], ['number' => '24/7', 'label' => 'Design Support', 'icon' => 'fa-headset'], ]; @endphp
@foreach($stats as $st)
{{ $st['number'] ?? $st['num'] ?? '' }}
{{ $st['label'] ?? '' }}
@endforeach
@php $portfolio = $interior->portfolio_data ?? [ [ 'title' => 'Modern Living Room', 'category' => 'Residential', 'desc' => 'A perfect blend of comfort and style.', 'image' => 'https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?q=80&w=800&auto=format&fit=crop', 'icon' => 'fa-house' ], [ 'title' => 'Elegant Modular Kitchen', 'category' => 'Residential', 'desc' => 'Functional design for modern homes.', 'image' => 'https://images.unsplash.com/photo-1556911220-e15b29be8c8f?q=80&w=800&auto=format&fit=crop', 'icon' => 'fa-utensils' ], [ 'title' => 'Modern Office Space', 'category' => 'Commercial', 'desc' => 'Productive spaces for growing businesses.', 'image' => 'https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=800&auto=format&fit=crop', 'icon' => 'fa-building' ], [ 'title' => 'Luxury Bedroom', 'category' => 'Residential', 'desc' => 'A peaceful retreat for your everyday life.', 'image' => 'https://images.unsplash.com/photo-1616594039964-ae9021a400a0?q=80&w=800&auto=format&fit=crop', 'icon' => 'fa-bed' ], [ 'title' => 'Stylish Restaurant', 'category' => 'Hospitality', 'desc' => 'Inviting spaces that leave a lasting impression.', 'image' => 'https://images.unsplash.com/photo-1554118811-1e0d58224f24?q=80&w=800&auto=format&fit=crop', 'icon' => 'fa-utensils' ], [ 'title' => 'Retail Store Design', 'category' => 'Commercial', 'desc' => 'Creative interiors for modern brands.', 'image' => 'https://images.unsplash.com/photo-1441986300917-64674bd600d8?q=80&w=800&auto=format&fit=crop', 'icon' => 'fa-bag-shopping' ], [ 'title' => 'Bathroom Makeover', 'category' => 'Renovation', 'desc' => 'Transforming spaces with elegant details.', 'image' => 'https://images.unsplash.com/photo-1584622650111-993a426fbf0a?q=80&w=800&auto=format&fit=crop', 'icon' => 'fa-shower' ], [ 'title' => 'Home Styling', 'category' => 'Interior Styling', 'desc' => 'Thoughtful details that make a difference.', 'image' => 'https://images.unsplash.com/photo-1586023492125-27b2c045efd7?q=80&w=800&auto=format&fit=crop', 'icon' => 'fa-couch' ], [ 'title' => 'Outdoor Living Space', 'category' => 'Space Planning', 'desc' => 'Beautiful spaces beyond your walls.', 'image' => 'https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=800&auto=format&fit=crop', 'icon' => 'fa-tree' ], ]; $icDynamicCategories = ['All']; foreach ($portfolio as $p) { $cName = $p['category'] ?? ''; if (!empty($cName) && !in_array($cName, $icDynamicCategories)) { $icDynamicCategories[] = $cName; } } @endphp
@foreach($icDynamicCategories as $idx => $catName) @php $catFilterKey = (strtolower($catName) === 'all' || strtolower($catName) === 'all projects') ? 'all' : strtolower($catName); @endphp @endforeach
@foreach($portfolio as $proj)
{{ $proj['title'] ?? '' }} {{ $proj['category'] ?? 'Design' }}

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

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

@endforeach
@endsection