@extends('layouts.app', ['title' => $conversation->title_it . ' — কথোপকথন']) @section('content')
← অধ্যায় {{ $conversation->chapter_number ?? 1 }}
{{ $conversation->category_icon ?? '💬' }}
{{ $conversation->category_name }}

{{ $conversation->title_it }}

{{ $conversation->title_bn }}

@if($conversation->situation_bn)
বাস্তব পরিস্থিতি: {{ $conversation->situation_bn }}
@endif
@php $dialoguesList = is_array($conversation->dialogues) ? $conversation->dialogues : (json_decode($conversation->dialogues, true) ?? []); @endphp
@forelse($dialoguesList as $idx => $d) @php $isB = ($d['speaker'] ?? ($idx % 2 == 1 ? 'B' : 'A')) === 'B'; @endphp
{{ $isB ? 'B' : 'A' }}
{{ $isB ? 'ব্যক্তি ২' : 'ব্যক্তি ১' }}

{{ $d['italian'] ?? '' }}

{{ $d['bangla'] ?? '' }}

@empty

কোনো সংলাপ পাওয়া যায়নি।

@endforelse
@endsection