merge(['id' => $getId()], escape: false) ->merge($getExtraAttributes(), escape: false) }} > @if (count($childComponentContainers = $getChildComponentContainers()))
merge($getExtraAttributes(), escape: false) ->class(['flex flex-col gap-3']) }} > @php $lastDateLabel = null; @endphp @foreach ($childComponentContainers as $container) @php $createdAt = data_get($container->getRecord(), 'created_at'); $dt = null; try { $dt = $createdAt instanceof \Carbon\CarbonInterface ? $createdAt : \Carbon\Carbon::parse($createdAt); } catch (\Throwable $e) {} $currentLabel = match (true) { $dt?->isToday() => __('chatter::views/filament/infolists/components/messages/repeatable-entry.today'), $dt?->isYesterday() => __('chatter::views/filament/infolists/components/messages/repeatable-entry.yesterday'), $dt => $dt->format('M j, Y'), default => null, }; @endphp @if ($currentLabel && $currentLabel !== $lastDateLabel) @php $lastDateLabel = $currentLabel; @endphp @endif
data_get($container->getRecord(), 'type') === 'note', 'ring-black/5 dark:ring-white/5' => data_get($container->getRecord(), 'type') !== 'note', 'shadow-sm ring-1 bg-gray-50/80 dark:bg-gray-950' => ! ( data_get($container->getRecord(), 'type') === 'notification' && data_get($container->getRecord(), 'event') === 'updated' ), ]) > {{ $container }}
@endforeach
@elseif ($placeholder = $getPlaceholder())
{{ $placeholder }}
@endif