PHP Snippet 1:
@php if(isset($selectedCondCheckbox)) {
if($selectedCondCheckbox =='discount_on_total_amount_of_shipping')
{ echo "checked=checked"; }}@endphp
PHP Snippet 2:
<input type="radio" name="condition_tab" value="1" class="flat-red" style="position: absolute; opacity: 0;" {{ isset($selectedCondCheckbox) ? $selectedCondCheckbox == 'customer_get_discounts_and_special_offers_on_certain_product_or_categories' ? 'checked=checked' :'' :'' }} >
<input type="radio" name="condition_tab" value="2" class="flat-red" style="position: absolute; opacity: 0;" {{ isset($selectedCondCheckbox) ? $selectedCondCheckbox == 'discount_on_total_amount_of_shipping' ? 'checked=checked' :'' :'' }}>
PHP Snippet 3:
<input type="checkbox"
name="active"
value="active"
@checked(old('active', $user->active)) />