@extends('layouts.app') @section('content')
@if($page->mobile_image) {{-- Imagen para móviles --}} @endif @php $pageTitle = $page->getTranslation('title', app()->getLocale(), false); @endphp {{-- Imagen para desktop (por defecto) --}} @if($page->desktop_image) {{ $pageTitle ?? '' }} @endif @if($pageTitle)

{{ $pageTitle }}

@endif
@php $pageDescription = $page->getTranslation('description', app()->getLocale(), false); @endphp @if($pageDescription)
{!! $pageDescription !!}
@endif {{-- Mostrar proyectos solo en la página "Programs" --}} @if($page->slug === 'programs' && $projects->count() > 0)

{{ App::getLocale() == 'es' ? '. nuestros programas' : '. our programs' }}

@foreach($projects as $project) @php $locale = app()->getLocale(); $projectTitle = $project->getTranslation('title', $locale, false); $projectRegion = $project->getTranslation('region', $locale, false); $projectCountry = $project->getTranslation('country', $locale, false); @endphp @if($projectTitle)
@if($projectRegion || $projectCountry)
@if($projectRegion){{ $projectRegion }}@endif @if($projectRegion && $projectCountry)
@endif @if($projectCountry){{ $projectCountry }}@endif
@endif

{{ $projectTitle }}

@if($project->estimated_cost)
{{ App::getLocale() == 'es' ? 'Costo estimado: $' : 'Estimated Cost: $' }}{{ $project->estimated_cost }}
@endif
@endif @endforeach
@endif {{-- Galería --}} @if($page->album && $page->album->galleries->count())

{{ $page->album->title }}

@endif @endsection