@php // Copy affordance reads the live Livewire value. The bound property comes // either from the `id`-derived modelBinding or from a passthrough // `wire:model` attribute (used by read-only fields like DB URLs). Resolve to a // single JS expression here — a directive inside the tag would // break Blade's component-tag compiler. $copyResolve = null; if ($copyable) { $copyModel = $modelBinding !== 'null' ? $modelBinding : $attributes->get('wire:model'); $copyResolve = $copyModel ? "\$wire.get('".$copyModel."')" : (string) \Illuminate\Support\Js::from($value); } @endphp
$isMultiline, 'w-full' => !$isMultiline, ])> @if ($label) {{-- Fixed-height label row (h-4 = helper icon). Helper lives outside