@extends('layouts.app', ['title' => $chapter->title_it . ' - ' . $course->title]) @section('content')
অধ্যায় তালিকা
{{ $course->level_code }} · অধ্যায় {{ $chapter->chapter_number }}

{{ $chapter->title_it }}

{{ $chapter->title_bn }}

@if($chapter->description)

{{ $chapter->description }}

@endif
@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
@endforeach @else

এই পাঠের বিস্তারিত কনটেন্ট সফলভাবে সক্রিয় রয়েছে।

@endif
@if($prevChapter) আগের পাঠ ({{ $prevChapter->chapter_number }}) @else
@endif @if($nextChapter) পরবর্তী পাঠ ({{ $nextChapter->chapter_number }}) @endif
@endsection