@extends('front.layouts.main') @section('contenido')

{{ $nosotros->hero_title }}

Inicio / {{ $nosotros->breadcrumb_label }}

{{ $nosotros->section1_title_prefix }} {{ $nosotros->section1_title_highlight }}

{!! $nosotros->section1_html !!}
@php // Features como array (ordenadas si existe el accesor features_sorted del modelo) $features = property_exists($nosotros, 'features_sorted') ? ($nosotros->features_sorted ?? []) : (is_array($nosotros->features) ? $nosotros->features : (json_decode($nosotros->features ?? '[]', true) ?: [])); usort($features, fn($a,$b) => ($a['order'] ?? 0) <=> ($b['order'] ?? 0)); @endphp
@foreach($features as $feature)
@if(!empty($feature['icon_path'])) @endif

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

{!! $feature['body'] ?? '' !!}

{{-- @php $bullets = $feature['bullets'] ?? []; usort($bullets, fn($a,$b) => ($a['order'] ?? 0) <=> ($b['order'] ?? 0)); @endphp @if(!empty($bullets)) @foreach($bullets as $b) @endforeach
{{ $b['number'] ?? '' }}
{!! $b['text'] ?? '' !!}
@endif --}} @if(!empty($feature['footer_text']))

{{ $feature['footer_text'] }}

@endif
@endforeach
{{--
--}}

{{ $nosotros->mission_title }}

{!! $nosotros->mission_text !!}

{{--
--}}

{{ $nosotros->vision_title }}

{!! $nosotros->vision_text !!}

{{-- Bloque de equipo queda igual, comentado --}} @endsection