@extends('layouts.app') @section('title', $post->title) @section('meta-tags') @endsection @section('content') @php $allImages = collect([]); if($post->featured_image){ $allImages->push([ 'url' => asset($post->featured_image), 'alt' => $post->title, ]); } if($post->images && $post->images->count()){ foreach($post->images as $img){ $allImages->push([ 'url' => asset($img->image_path), 'alt' => $img->alt_text ?: $post->title, ]); } } $words = str_word_count(strip_tags($post->content)); $readingTime = max(1, ceil($words / 200)); @endphp
{{-- Migas de pan --}}
Inicio @if($post->category) / {{ $post->category->name }} @endif
{{-- Hero tipo ficha proveedor --}}
{{-- Columna imágenes --}}
@if($allImages->count()) {{ $allImages[0]['alt'] }} @endif
@if($allImages->count() > 1)
@foreach($allImages as $idx => $img)
{{ $img['alt'] }}
@endforeach
@endif
{{-- Columna ficha info --}}
@if($post->category) {{ $post->category->name }} @endif

{{ $post->title }}

@if($post->excerpt)

{{ $post->excerpt }}

@endif
Publicado {{ $post->created_at->format('d \d\e F Y') }}
Tiempo de lectura {{ $readingTime }} min aprox.
@if($post->category)
Estilo {{ $post->category->name }}
@endif

Inspiración Decoración Ideas para novios
{{-- Tabs simples --}}
Información @if($post->images && $post->images->count()) Galería @endif
{{-- Contenido principal, ancho y alineado a la izquierda --}}

Información del artículo

{!! $post->content !!}
{{-- Galería a ancho completo --}} @if($post->images && $post->images->count()) @endif {{-- CTA final alineada a la izquierda --}}
{{-- Modal galería --}} @endsection @push('scripts') @endpush