@foreach($card['groups'] as $group)
@php $groupSkipped = !empty($group['overdue']) && $overdueHidden; @endphp
{{ $group['label'] }}
{{ $group['items']->count() }}
@foreach($group['items'] as $item)
@php
// 整張卡合計只留前 N 條;收起的分組不佔名額
$isOverflow = ! $groupSkipped && $visibleRows >= $displayLimit;
if (! $groupSkipped) {
$visibleRows++;
}
@endphp
@if($item->url)
{{ $item->title }}
@else
{{ $item->title }}
@endif
@if($item->sub)
{{ $item->sub }}@endif
{{ $item->date?->format($timeFormat ? 'Y-m-d H:i' : 'Y-m-d') }}
@if($item->is_overdue)
已過期@endif
@if($item->people)
@foreach($item->people as $person)
{{ $person->name }}{{ ! $loop->last ? '、' : '' }}@endforeach
@endif
@endforeach
@endforeach
@if($card['groups'] === [])
{{ $card['empty_text'] }}