merge([ 'id' => $getId(), ], escape: false) ->merge($getExtraAttributes(), escape: false) }} > @if (count($childComponentContainers = $getChildComponentContainers()))
merge($getExtraAttributes(), escape: false) ->class([ 'gap-2', ]) }} > @php $lastDateLabel = null; @endphp @foreach ($childComponentContainers as $container) @php $createdAt = data_get($container->getRecord(), 'created_at'); try { $dt = $createdAt instanceof \Carbon\CarbonInterface ? $createdAt : \Carbon\Carbon::parse($createdAt); } catch (\Throwable $e) { $dt = null; } $currentLabel = ''; if ($dt) { if ($dt->isToday()) { $currentLabel = __('chatter::views/filament/infolists/components/activities/repeatable-entry.today'); } elseif ($dt->isYesterday()) { $currentLabel = __('chatter::views/filament/infolists/components/activities/repeatable-entry.yesterday'); } else { $currentLabel = $dt->format('M j, Y'); } } @endphp @if ($currentLabel && $currentLabel !== $lastDateLabel) @php $lastDateLabel = $currentLabel; @endphp @endif
data_get($container->getRecord(), 'type') === 'note', 'bg-white/70 ring-black/5 dark:bg-gray-900/60 dark:ring-white/5' => data_get($container->getRecord(), 'type') !== 'note', ]) > {{ $container }}
@endforeach
@elseif (($placeholder = $getPlaceholder()) !== null)
{{ $placeholder }}
@endif