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