@extends('public.layout') @section('title', 'Blog | GiGi Food Partner') @section('meta_description', __('Guides and articles for restaurants.')) @section('content') @php $assetUrl = static function (?string $value): ?string { if (! is_string($value) || $value === '') { return null; } if (preg_match('/^(https?:)?\/\//i', $value)) { return $value; } return url($value); }; @endphp

{{ $settings['blog_index_title'] ?? 'Blog para restaurantes' }}

{{ $settings['blog_index_description'] ?? 'Contenido editorial conectado al nuevo panel administrativo.' }}

@forelse ($posts as $post)
@if ($assetUrl($post->cover_image))
{{ $post->title }}
@endif
{{ $post->published_at?->format('d/m/Y') }}

{{ $post->title }}

{{ $post->excerpt ?: \Illuminate\Support\Str::limit(strip_tags($post->content), 150) }}

{{ __('Read article') }}
@empty

{{ __('There are no published posts yet.') }}

@endforelse
@endsection