@php $gateway_instance = $gateway instanceof \App\Models\CompanyGateway ? $gateway : $gateway->company_gateway; $token_billing = true; $token_billing_string = 'true'; $checked_on = ''; $checked_off = 'checked'; if($gateway_instance->token_billing == 'off'){ $token_billing = false; $token_billing_string = 'false'; } if($gateway_instance->token_billing == 'always'){ $token_billing = false; $token_billing_string = 'true'; } if($gateway_instance->token_billing == 'optout'){ $checked_on = 'checked'; $checked_off = ''; } if (isset($pre_payment) && $pre_payment == '1' && isset($is_recurring) && $is_recurring == '1') { $token_billing_string = 'true'; } @endphp @if($token_billing)