@extends('layout.front.master') @section('title', ($post->title ?? 'Post') . ' | ' . config('site.modules.blog.page_header.title', 'Blog')) @section('description', Str::limit($post->description ?? strip_tags($post->content ?? ''), 160)) @section('content') {{-- Dynamic Header --}} @include('modules.blog.frontend.partials.dynamic-header')
{{-- Post Content --}}
@php $postImage = null; if ($post->header) { if (filter_var($post->header, FILTER_VALIDATE_URL)) { $postImage = $post->header; } elseif (file_exists(public_path($post->header))) { $postImage = asset($post->header); } } @endphp
{{-- Post Image --}} @if($postImage)
{{ $post->title }}
@endif {{-- Meta --}}
@if($post->category) {{ $post->category->name }} @endif @if($post->user) {{ $post->user->name ?? '' }} @endif
{{-- Title --}}

{{ $post->title }}

{{-- Content --}}
{!! $post->content !!}
{{-- Share --}}
{{ __('Compartir') }}:
@if(config('site.social_media.whatsapp.active')) @endif
{{-- Back to blog --}}
{{-- Sidebar --}}
@endsection