@php
$content = $chapter->content;
$pages = $content['pages'] ?? [];
@endphp
@if(!empty($pages))
@foreach($pages as $pIndex => $page)
@if(!empty($page['heading']))
{{ $page['heading'] }}
@if(!empty($page['page']))
পাতা {{ $page['page'] }}
@endif
@endif
@if(!empty($page['blocks']))
@foreach($page['blocks'] as $block)
@if($block['type'] === 'dialogue' || !empty($block['lines']))
@if(!empty($block['title']))
💬 {{ $block['title'] }}
@endif
@foreach($block['lines'] as $line)
@if(!empty($line['sp']))
{{ $line['sp'] }}:
@endif
{{ $line['it'] ?? '' }}
{{ $line['bn'] ?? '' }}
@endforeach
@elseif($block['type'] === 'rule_box' || $block['type'] === 'grammar')
📖 ব্যাকরণ ও নিয়ম (Grammatica)
@if(!empty($block['rules']))
@foreach($block['rules'] as $rule)
{{ $rule['it'] ?? ($rule['form'] ?? '') }}
{{ $rule['bn'] ?? '' }}
@endforeach
@endif
@elseif(!empty($block['it']))
{{ $block['it'] }}
{{ $block['bn'] ?? '' }}
@endif
@endforeach
@endif
এই পাঠের বিস্তারিত কনটেন্ট সফলভাবে সক্রিয় রয়েছে।