@props(['property', 'tool' => null, 'plan' => null])
@if (!$tool)
@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
@endif