@extends('layouts.app') @section('title', '随访提醒 - 病例回访提醒系统') @section('content')
{{ $stats['total'] }}
总患者数
{{ $stats['overdue'] }}
已过期
{{ $stats['today'] }}
今日到期
{{ $stats['upcoming'] }}
7天内到期
{{ $stats['completed'] }}
已完成全部随访
全部 已过期 今日到期 即将到期
导出当前列表
@if($reminders->isEmpty())
暂无需要随访的患者

当前筛选条件下没有需要随访的患者,您可以切换筛选条件或导入新的患者数据。

导入患者数据
@else
@foreach($reminders as $reminder) @php $patient = $reminder['patient']; $nextDate = $reminder['next_follow_up_date']; $daysUntil = $reminder['days_until']; @endphp
{{-- 卡片头部 --}}
{{ mb_substr($patient->name, 0, 1) }}
{{ $patient->name }}
{{ $patient->gender }} · {{ $patient->age }}岁
@if($daysUntil !== null && $daysUntil < 0) 过期 {{ abs($daysUntil) }} 天 @elseif($daysUntil === 0) 今日到期 @elseif($daysUntil !== null && $daysUntil <= 7) {{ $daysUntil }} 天后 @else 未到期 @endif
{{-- 诊断标签 --}}
{{ $patient->getDiagnosisType() }}
{{-- 关键信息 --}}
📅 随访日期 {{ $nextDate ? $nextDate->format('Y-m-d') : '-' }}
📞 联系方式 {{ $patient->phone ?: '-' }}
📍 地址 {{ $patient->address ?: '-' }}
@if($patient->remark)
📝 备注 {{ $patient->remark }}
@endif
{{-- 进度条 --}}
@php $total = count($patient->getFollowUpSchedule()); $completed = $patient->follow_up_count; $percent = ($completed / $total) * 100; @endphp
随访进度 {{ $completed }}/{{ $total }}
{{-- 操作按钮 --}}
@if($patient->phone) @endif
@csrf
@endforeach
@endif @endsection