@props([ 'action' => null, 'alignment' => null, 'entry' => null, 'hasInlineLabel' => null, 'helperText' => null, 'hint' => null, 'hintActions' => null, 'hintColor' => null, 'hintIcon' => null, 'hintIconTooltip' => 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(); $hintIconTooltip ??= $entry->getHintIconTooltip(); $id ??= $entry->getId(); $label ??= $entry->getLabel(); $labelSrOnly ??= $entry->isLabelHidden(); $shouldOpenUrlInNewTab ??= $entry->shouldOpenUrlInNewTab(); $statePath ??= $entry->getStatePath(); $tooltip ??= $entry->getTooltip(); $url ??= $entry->getUrl(); } if (! $alignment instanceof Alignment) { $alignment = filled($alignment) ? (Alignment::tryFrom($alignment) ?? $alignment) : null; } $hintActions = array_filter( $hintActions ?? [], fn (\Filament\Infolists\Components\Actions\Action $hintAction): bool => $hintAction->isVisible(), ); @endphp