@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') @php $activeDemo = get_active_demo(); $isDarkTheme = !in_array($activeDemo, ['demo-law-firm-2', 'demo-urban-development'], true); $sectionBg = $isDarkTheme ? 'var(--dark)' : '#F7F7F7'; $titleColor = $isDarkTheme ? 'var(--light)' : 'var(--dark-rgba-90, #212529)'; $textColor = $isDarkTheme ? 'rgba(255, 255, 255, 0.75)' : '#444444'; $metaColor = $isDarkTheme ? 'rgba(255, 255, 255, 0.55)' : '#777777'; $sidebarBg = $isDarkTheme ? 'var(--dark)' : '#ffffff'; $sidebarBorder = $isDarkTheme ? '1px solid var(--primary-rgba-10)' : '1px solid rgba(0, 0, 0, 0.08)'; $sidebarTitleColor = $isDarkTheme ? 'var(--primary)' : 'var(--secondary, #1A325D)'; $sidebarLinkColor = $isDarkTheme ? 'var(--light)' : '#212529'; $sidebarLinkActiveColor = 'var(--primary)'; $dividerColor = $isDarkTheme ? 'var(--primary-rgba-10)' : 'rgba(0, 0, 0, 0.08)'; @endphp {{-- 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