@extends('layouts.master', [ 'title' => $post->title . ' - ' . config('app.name'), 'description' => $post->meta_description ?? Str::limit(strip_tags($post->content), 160), 'keywords' => $post->meta_keywords ?? $post->tags->pluck('name')->implode(', '), 'image' => $post->thumbnail_url, 'publishedTime' => $post->published_at->toIso8601String(), 'modifiedTime' => $post->updated_at->toIso8601String(), 'author' => $post->author, 'category' => $post->category, 'articleId' => $post->id, 'schema' => true, ]) @section('content')
{{-- Breadcrumb --}} @component('components.breadcrumb', [ 'items' => [ ['label' => $post->category->name_bn ?? '', 'url' => route('category.show', $post->category->slug ?? '#')], ['label' => Str::limit($post->title, 40), 'url' => null] ] ]) @endcomponent {{-- Post Header --}}
@if($post->category) @endif

{{ $post->title }}

@if($post->is_sponsored) @endif @if($post->is_premium)
প্রিমিয়াম
@endif @if($post->excerpt)

{{ $post->excerpt }}

@endif
{{-- Featured Image --}} @if($post->thumbnail_url && !$post->video_embed && !$post->video_url && !$post->custom_embed)
{{ $post->title }} @if($post->image_caption)
{{ $post->image_caption }}
@endif
@endif {{-- Video Embed --}} @if($post->video_embed)
@if(str_contains($post->video_embed, 'youtube.com/embed')) @elseif(str_contains($post->video_embed, 'youtube.com/watch')) @else {!! $post->video_embed !!} @endif
@endif {{-- Custom/External Video --}} @if($post->video_url && !$post->video_embed)
@endif {{-- Facebook Embed --}} @if($post->facebook_embed) @endif {{-- Twitter Embed --}} @if($post->twitter_embed) @endif {{-- Custom Embed --}} @if($post->custom_embed)
{!! $post->custom_embed !!}
@endif {{-- Fallback Image if video/custom embed exists --}} @if(($post->video_embed || $post->video_url || $post->custom_embed) && $post->thumbnail_url)
{{ $post->title }}
@endif {{-- Ad after image --}}
@component('components.ad', ['placement' => 'in_article']) @endcomponent
{{-- Main Content --}}
{{-- Post Content --}}
{!! $post->content !!} @if($post->is_premium && !($canAccessFullContent ?? false))

প্রিমিয়াম কন্টেন্ট

এই আর্টিকেলটি পড়তে আপনাকে সাবস্ক্রাইব করতে হবে।

@endif
{{-- Photo Gallery with Lightbox --}} @if($post->gallery_images && count($post->gallery_images) > 0)
@endif {{-- Tags --}} @if($post->tags->count() > 0) @endif {{-- Reactions --}}
আপনার প্রতিক্রিয়া
{{-- Star Rating --}}
এই পোস্টটি রেট করুন
@for($i = 1; $i <= 5; $i++) @endfor
{{ $post->averageRating() }}/5 ({{ $post->totalRatings() }} ভোট)
{{-- Poll --}} @if($post->poll && $post->poll->is_active) @php $poll = $post->poll; $hasVoted = $poll->hasVoted(auth()->id(), request()->ip()); $totalVotes = $poll->options->sum('votes'); @endphp
{{ $poll->question }}
@if($hasVoted || ($poll->expires_at && $poll->expires_at->isPast()))
@foreach($poll->options as $option) @php $percentage = $totalVotes > 0 ? round(($option->votes / $totalVotes) * 100, 1) : 0; @endphp
{{ $option->option_text }} {{ $percentage }}%
@endforeach মোট ভোট: {{ $totalVotes }}
@else
@foreach($poll->options as $option)
@endforeach
@endif
@endif {{-- Ad before author --}}
@component('components.ad', ['placement' => 'in_article']) @endcomponent
{{-- Author Box --}} @if($post->author)
{{ $post->author->name }}

{{ $post->author->name }} @if($post->author->is_verified) @endif @auth @endauth

@if($post->author->bio)

{{ $post->author->bio }}

@endif
{{ $post->author->followers_count }} অনুসারী {{ $post->author->posts_count }} পোস্ট
@if($post->author->facebook) @endif @if($post->author->twitter) @endif
আরও পোস্ট দেখুন
@endif {{-- Related Posts --}} @if($relatedPosts->count() > 0)
@endif
{{-- Sidebar --}}
@endsection @push('styles') @endpush @push('scripts') @endpush