@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
merge($entry?->getExtraEntryWrapperAttributes() ?? []) ->class(['fi-in-entry-wrp']) }} > @if ($label && $labelSrOnly)
{{ $label }}
@endif
$hasInlineLabel, ]) > @if (($label && (! $labelSrOnly)) || $labelPrefix || $labelSuffix || filled($hint) || $hintIcon)
(! $labelSrOnly) || $labelPrefix || $labelSuffix, 'justify-end' => $labelSrOnly && ! ($labelPrefix || $labelSuffix), ($label instanceof \Illuminate\View\ComponentSlot) ? $label->attributes->get('class') : null, ]) > @if ($label && (! $labelSrOnly)) {{ $label }} @elseif ($labelPrefix) {{ $labelPrefix }} @elseif ($labelSuffix) {{ $labelSuffix }} @endif @if (filled($hint) || $hintIcon || count($hintActions)) {{ $hint }} @endif
@endif
$hasInlineLabel, ]) >
'text-start', Alignment::Center => 'text-center', Alignment::End => 'text-end', Alignment::Justify, Alignment::Between => 'text-justify', Alignment::Left => 'text-left', Alignment::Right => 'text-right', default => $alignment, }, ]) > @if ($url) {{ $slot }} @elseif ($action) @php $wireClickAction = $action->getLivewireClickHandler(); @endphp @else {{ $slot }} @endif
@if (filled($helperText)) {{ $helperText }} @endif