@extends('front.layouts.marketplace') @section('title', $seoTitle . ' | Mariachis.co') @section('meta_description', $seoDescription) @section('body_page', 'blog-index') @push('styles') @endpush @section('content') @php $heroPrimary = $heroPosts->first(); $heroFallbackImage = asset('marketplace/img/portada-960.webp'); $heroImageLarge = $heroPrimary?->featuredImageUrlForVariant('large') ?: $heroFallbackImage; $heroImageMedium = $heroPrimary?->featuredImageUrlForVariant('medium') ?: $heroImageLarge; $heroImageThumb = $heroPrimary?->featuredImageUrlForVariant('thumb') ?: $heroImageMedium; $heroImageSrcset = collect([ ['url' => $heroImageThumb, 'width' => 640], ['url' => $heroImageMedium, 'width' => 960], ['url' => $heroImageLarge, 'width' => 1600], ])->unique('url')->map(fn (array $candidate): string => $candidate['url'].' '.$candidate['width'].'w')->implode(', '); $heroImageSizes = '(max-width: 767px) 100vw, (max-width: 1279px) 50vw, 580px'; $heroAlt = $heroPrimary?->title ?: 'Mariachis en vivo durante un evento'; $heroSpotlightLabel = $heroPrimary?->primary_event_type_name ?: 'Guías, ideas y recursos'; $postsCount = $posts->count(); $postsGridClass = match (true) { $postsCount <= 1 => 'blog-post-grid blog-post-grid--single', $postsCount === 2 => 'blog-post-grid blog-post-grid--double', default => 'blog-post-grid blog-post-grid--triple', }; @endphp
Comunidad editorial

{{ $h1 }}

@if($posts->isNotEmpty())
@foreach($posts as $post)
@php $cityLabel = $post->primary_city_name ?: 'Colombia'; $zoneLabel = $post->primary_zone_name; $eventLabel = $post->eventTypes->pluck('name')->take(2)->join(' · ') ?: ($post->primary_event_type_name ?: 'Recurso'); $postCardImage = $post->featuredImageUrlForVariant('medium') ?: $post->featuredImageUrlForVariant('thumb') ?: $heroFallbackImage; $postCardImageSrcset = $post->featuredImageSrcset() ?: "{$postCardImage} 960w"; @endphp {{ $post->title }} {{ $cityLabel }} {{ optional($post->published_at)->format('d/m/Y') ?: optional($post->created_at)->format('d/m/Y') }}
@endforeach
{{ $posts->links('vendor.pagination.marketplace') }}
@else

Aún no hay publicaciones públicas

Cuando el equipo publique artículos desde el panel admin, aparecerán aquí automáticamente.

@endif
@endsection