@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