@props([ 'action' => null, 'alignment' => null, 'entry' => null, 'hasInlineLabel' => null, 'helperText' => null, 'hint' => null, 'hintActions' => null, 'hintColor' => null, 'hintIcon' => null, 'id' => null, 'label' => null, 'labelPrefix' => null, 'labelSrOnly' => null, 'labelSuffix' => null, 'shouldOpenUrlInNewTab' => null, 'statePath' => null, 'tooltip' => null, 'url' => null, ]) @php use Filament\Support\Enums\Alignment; if ($entry) { $action ??= $entry->getAction(); $alignment ??= $entry->getAlignment(); $hasInlineLabel ??= $entry->hasInlineLabel(); $helperText ??= $entry->getHelperText(); $hint ??= $entry->getHint(); $hintActions ??= $entry->getHintActions(); $hintColor ??= $entry->getHintColor(); $hintIcon ??= $entry->getHintIcon(); $id ??= $entry->getId(); $label ??= $entry->getLabel(); $labelSrOnly ??= $entry->isLabelHidden(); $shouldOpenUrlInNewTab ??= $entry->shouldOpenUrlInNewTab(); $statePath ??= $entry->getStatePath(); $tooltip ??= $entry->getTooltip(); $url ??= $entry->getUrl(); } $hintActions = array_filter( $hintActions ?? [], fn (\Filament\Infolists\Components\Actions\Action $hintAction): bool => $hintAction->isVisible(), ); @endphp