@foreach($reminders as $reminder)
@php
$patient = $reminder['patient'];
$nextDate = $reminder['next_follow_up_date'];
$daysUntil = $reminder['days_until'];
@endphp
{{-- 卡片头部 --}}
{{-- 诊断标签 --}}
{{ $patient->getDiagnosisType() }}
第{{ $reminder['next_follow_up_number'] }}次随访
{{-- 关键信息 --}}
📅
随访日期
{{ $nextDate ? $nextDate->format('Y-m-d') : '-' }}
📞
联系方式
{{ $patient->phone ?: '-' }}
📍
地址
{{ $patient->address ?: '-' }}
@if($patient->remark)
📝
备注
@endif
{{-- 进度条 --}}
@php
$total = count($patient->getFollowUpSchedule());
$completed = $patient->follow_up_count;
$percent = ($completed / $total) * 100;
@endphp
{{-- 操作按钮 --}}
@if($patient->phone)
@endif