{{-- 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)
{{ $post->category->name_bn }}
@endif
{{-- Featured Image --}}
@if($post->thumbnail_url && !$post->video_embed && !$post->video_url && !$post->custom_embed)
@if($post->image_caption)
{{ $post->image_caption }}
@endif
@endif
{{-- Video Embed --}}
@if($post->video_embed)
@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)
@endif
{{-- Fallback Image if video/custom embed exists --}}
@if(($post->video_embed || $post->video_url || $post->custom_embed) && $post->thumbnail_url)
@endif
{{-- Ad after image --}}
{{ $post->title }}
@if($post->is_sponsored)
স্পন্সরড
@if($post->sponsor_name)
{{ $post->sponsor_name }}
@endif
@endif
@if($post->is_premium)
প্রিমিয়াম
@endif
@if($post->excerpt)
{{ $post->excerpt }}
@endif
{{-- Main Content --}}
{{-- Post Content --}}
@endif
{{-- Tags --}}
@if($post->tags->count() > 0)
@endif
{{-- Reactions --}}
{{-- Star Rating --}}
{{-- 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
@endif
{{-- Ad before author --}}
{{-- Author Box --}}
@if($post->author)
@endif
{{-- Related Posts --}}
@if($relatedPosts->count() > 0)
@endif
{{-- Sidebar --}}
{!! $post->content !!}
@if($post->is_premium && !($canAccessFullContent ?? false))
@endif
{{-- Photo Gallery with Lightbox --}}
@if($post->gallery_images && count($post->gallery_images) > 0)
ফটো গ্যালারি
@foreach($post->gallery_images as $index => $image)
@if(str_starts_with($image, 'http'))
@else
@endif
@endforeach
আপনার প্রতিক্রিয়া
{{ $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
@endforeach
মোট ভোট: {{ $totalVotes }}
@else
@endif
{{ $option->option_text }}
{{ $percentage }}%