@php $bn = $locale === 'bn'; $tz = config('shastho.display_timezone'); $t = fn (string $bnText, string $enText) => $bn ? $bnText : $enText; $types = [ 'symptom' => $t('লক্ষণ', 'Symptom'), 'note' => $t('নোট', 'Note'), 'doctor_visit' => $t('ডাক্তার দেখানো', 'Doctor visit'), 'vitals' => $t('শারীরিক মাপ', 'Vitals'), ]; @endphp

{{ $t('স্বাস্থ্য সারসংক্ষেপ', 'Health summary') }} — {{ $member->name }}

{{ $from->format('d M Y') }} – {{ $to->format('d M Y') }} @if ($member->birth_year) · {{ $t('জন্মসাল', 'Born') }} {{ $member->birth_year }} @endif · {{ $t('তৈরি', 'Generated') }} {{ $generatedAt->timezone($tz)->format('d M Y H:i') }}
@if ($medicines->isNotEmpty())

{{ $t('বর্তমান ওষুধ', 'Current medicines') }}

@foreach ($medicines as $medicine) @endforeach
{{ $t('ওষুধ', 'Medicine') }} {{ $t('মাত্রা (ব্যবস্থাপত্র অনুযায়ী)', 'Dose (as prescribed)') }} {{ $t('সময়', 'Times') }} {{ $t('শুরু', 'Since') }}
{{ $medicine->medicine_name }} {{ $medicine->dosage_text }} {{ $medicine->instructions }} {{ implode(', ', $medicine->times ?? []) }} {{ $medicine->start_date?->format('d M Y') }}
@endif

{{ $t('ডায়েরি', 'Journal') }}

@if ($entries->isEmpty())

{{ $t('এই সময়ে কোনো এন্ট্রি নেই।', 'No entries in this period.') }}

@else @foreach ($entries as $entry) @endforeach
{{ $t('তারিখ', 'Date') }} {{ $t('ধরন', 'Type') }} {{ $t('বিবরণ', 'Details') }}
{{ $entry->occurred_at->timezone($tz)->format('d M Y H:i') }} {{ $types[$entry->type] ?? $entry->type }} @if ($entry->title){{ $entry->title }}
@endif @if ($entry->doctor_name || $entry->hospital_name) {{ trim(($entry->doctor_name ?? '').' '.($entry->hospital_name ? '('.$entry->hospital_name.')' : '')) }}
@endif @if (! empty($entry->data['symptoms'])) {{ $t('লক্ষণ', 'Symptoms') }}: {{ implode(', ', $entry->data['symptoms']) }} @if (isset($entry->data['severity'])) · {{ $t('তীব্রতা', 'Severity') }} {{ $entry->data['severity'] }}/5 @endif
@endif @if (! empty($entry->data['vitals'])) @foreach ($entry->data['vitals'] as $key => $value) {{ $key }}: {{ $value }}   @endforeach
@endif {{ $entry->body }}
@endif

{{ $t( 'এই সারসংক্ষেপ ব্যবহারকারী নিজে লিখেছেন (স্বাস্থ্য সাথী অ্যাপ)। এটি মেডিকেল রেকর্ড বা রোগনির্ণয় নয়।', 'This summary was written by the user in the Shastho Sathi app. It is not a medical record or diagnosis.' ) }}