@extends("landingpage::themes.{$activeTheme}.layouts.app") @php // $page is the LpPage instance (which might just be a wrapper or could hold some intro content) // $businessData is passed from FrontendPageController, ideally containing ['project' => ProjectObject] // Or, if $page itself is the project data source: $project = $businessData['project'] ?? $page ?? null; // Prioritize $businessData if available $projectName = $project->name ?? $project->title ?? 'Project Details'; $projectDescription = $project->full_description ?? $project->description ?? $project->content ?? 'No description available.'; $featuredImageUrl = $project->featured_image_url ?? 'https://via.placeholder.com/1200x600.png?text=' . urlencode($projectName); $instructionsToTest = $project->test_instructions ?? null; $testLinks = $project->test_links ?? []; // Expects an array of ['title' => 'Live Demo', 'url' => '...'] $customerSupportInfo = $project->customer_support_info ?? null; $canyonUrl = $project->canyon_url ?? null; $technologies = $project->technologies_used ?? []; // Expects an array of strings or objects with name/icon @endphp @if($project) @section('meta_title', $project->meta_title ?: $projectName) @section('meta_description', $project->meta_description ?: \Illuminate\Support\Str::limit(strip_tags($projectDescription), 160)) @push('schema_markup') @endpush @section('content')

{{ $projectName }}

@if($project->short_description ?? null)

{{ $project->short_description }}

@endif
Featured image for {{ $projectName }}

Project Overview

{!! $projectDescription !!}
@if($instructionsToTest)

Testing Instructions

{!! $instructionsToTest !!}
@endif @if(!empty($testLinks))

Test & Preview Links

@endif @if($customerSupportInfo)

Customer Support

{!! $customerSupportInfo !!}
@endif @if($canyonUrl) @endif
@endsection @else @section('meta_title', 'Project Not Found') @section('content')

Project Not Found

Sorry, the project you are looking for could not be found.

Go to Homepage
@endsection @endif