@props(['property', 'tool' => null, 'plan' => null]) @if (!$tool)
merge(['class' => 'form-check-input']) }} data-child="{{ $property->id }}" id="property_{{ $property->id }}" name="property_{{ $property->id }}" value="1" @if (isset($property) && $property->value == 1) checked @endif type="checkbox"> {{ $property->description }}
@else @php $checked = ''; if (isset($plan)) { if ($tool->planProperty('', $property->prop_key, $plan->id)['value'] == 1) { $checked = 'checked'; } } else { if ($property->value == 1) { $checked = 'checked'; } } @endphp
merge(['class' => 'form-check-input']) }} id="property_{{ $tool->id }}_{{ $property->id }}" name="property_{{ $tool->id }}_{{ $property->id }}" value="1" {{ $checked }} type="checkbox"> {{ $property->description }}
@endif