@props([ 'label', 'copy_what' => null, 'icon_type' => null, 'hide_if_null' => false, 'align' => 'left', ]) @if ($hide_if_null!='true') @php // Render the slot once. ComponentSlot::isEmpty() re-renders // the slot each call, which can double DB queries for data-row // contents that walk a relation. Also used to tag empty rows // for print-mode suppression. $hasValue = ! $slot->isEmpty(); $printHideClass = $hasValue ? '' : 'hidden-print-empty-row'; @endphp
@if (isset($icon_type)) @endif {{ $label }}
merge(['class' => $printHideClass, 'style' => 'text-align: '.$align.' !important;']) }}> @if ($hasValue && ($copy_what!='')) {{ $slot }} @elseif ($hasValue) {{ $slot }} @else {{ trans('general.no_value') }} @endif
@endif