fix: parenthesize ternary in editable-field component to fix PHP 8 syntax error
This commit is contained in:
@@ -269,7 +269,11 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="editable-field-lte" x-data="{ showEditModal: @entangle($attributes->wire('model')->value() ? 'isEditing' . ucfirst($label) : 'editing') }">
|
||||
@php
|
||||
$entangleProperty = $attributes->wire('model')->value() ? ('isEditing' . ucfirst($label)) : 'editing';
|
||||
@endphp
|
||||
|
||||
<div class="editable-field-lte" x-data="{ showEditModal: @entangle($entangleProperty) }">
|
||||
<label class="editable-field-lte-label">{{ $label }}</label>
|
||||
<div class="editable-field-lte-display">
|
||||
<span class="editable-field-lte-value">{{ $value ?? 'Not set' }}</span>
|
||||
|
||||
Reference in New Issue
Block a user