<?php
/* Smarty version 3.1.48, created on 2025-07-04 21:21:36
  from '/home/servydhq/public_html/whmcs/templates/six/payment/billing-address.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.48',
  'unifunc' => 'content_686845e0517230_32840246',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'b25e33652e0d60492c7b77a649a002d3f58e2fe6' => 
    array (
      0 => '/home/servydhq/public_html/whmcs/templates/six/payment/billing-address.tpl',
      1 => 1748871040,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_686845e0517230_32840246 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="form-group" id="billingAddressChoice" <?php if (!$_smarty_tpl->tpl_vars['addingNew']->value) {?>style="display: none"<?php }?>>
    <label class="col-sm-4 control-label"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['billingAddress'];?>
</label>
    <div class="col-sm-8">
        <label class="radio-inline icheck-label billing-contact-0">
            <input
                    type="radio"
                    class="icheck-button"
                    name="billingcontact"
                    value="0"
                    <?php if ($_smarty_tpl->tpl_vars['billingContact']->value == 0) {?> checked<?php }?>
            >

            <strong class="name"><?php echo $_smarty_tpl->tpl_vars['client']->value->fullName;?>
</strong>
            <span class="address1"><?php echo $_smarty_tpl->tpl_vars['client']->value->address1;?>
</span>,
            <?php if ($_smarty_tpl->tpl_vars['client']->value->address2) {?><span class="address2"><?php echo $_smarty_tpl->tpl_vars['client']->value->address2;?>
</span>,<?php }?>
            <span class="city"><?php echo $_smarty_tpl->tpl_vars['client']->value->city;?>
</span>,
            <span class="state"><?php echo $_smarty_tpl->tpl_vars['client']->value->state;?>
</span>,
            <span class="postcode"><?php echo $_smarty_tpl->tpl_vars['client']->value->postcode;?>
</span>,
            <span class="country"><?php echo $_smarty_tpl->tpl_vars['client']->value->country;?>
</span>
        </label>
        <br>
        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['client']->value->contacts()->orderBy('firstname','asc')->orderBy('lastname','asc')->get(), 'contact');
$_smarty_tpl->tpl_vars['contact']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['contact']->value) {
$_smarty_tpl->tpl_vars['contact']->do_else = false;
?>
            <label class="radio-inline icheck-label billing-contact-<?php echo $_smarty_tpl->tpl_vars['contact']->value->id;?>
">
                <input
                        type="radio"
                        class="icheck-button"
                        name="billingcontact"
                        value="<?php echo $_smarty_tpl->tpl_vars['contact']->value->id;?>
"
                        <?php if ($_smarty_tpl->tpl_vars['billingContact']->value == $_smarty_tpl->tpl_vars['contact']->value->id) {?> checked<?php }?>
                >

                <strong class="name"><?php echo $_smarty_tpl->tpl_vars['contact']->value->fullName;?>
</strong>
                <span class="address1"><?php echo $_smarty_tpl->tpl_vars['contact']->value->address1;?>
</span>,
                <?php if ($_smarty_tpl->tpl_vars['contact']->value->address2) {?><span class="address2"><?php echo $_smarty_tpl->tpl_vars['contact']->value->address2;?>
</span>,<?php }?>
                <span class="city"><?php echo $_smarty_tpl->tpl_vars['contact']->value->city;?>
</span>,
                <span class="state"><?php echo $_smarty_tpl->tpl_vars['contact']->value->state;?>
</span>,
                <span class="postcode"><?php echo $_smarty_tpl->tpl_vars['contact']->value->postcode;?>
</span>,
                <span class="country"><?php echo $_smarty_tpl->tpl_vars['contact']->value->country;?>
</span>
            </label>
            <br>
        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
        <label class="radio-inline icheck-label">
            <input
                    type="radio"
                    class="icheck-button"
                    name="billingcontact"
                    value="new"
                    <?php if ($_smarty_tpl->tpl_vars['billingContact']->value === 'new') {?> checked<?php }?>
            >
            <?php echo $_smarty_tpl->tpl_vars['LANG']->value['paymentMethodsManage']['addNewBillingAddress'];?>

        </label>
    </div>
</div>
<div id="newBillingAddress" <?php if (!$_smarty_tpl->tpl_vars['userDetailsValidationError']->value && $_smarty_tpl->tpl_vars['billingcontact']->value !== 'new') {?> style="display: none"<?php }?>>
    <div class="form-group cc-billing-address">
        <label for="inputFirstName" class="col-sm-4 control-label"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['clientareafirstname'];?>
</label>
        <div class="col-sm-6">
            <input type="text" name="firstname" id="inputFirstName" value="<?php echo $_smarty_tpl->tpl_vars['firstname']->value;?>
" class="form-control" />
        </div>
    </div>
    <div class="form-group cc-billing-address">
        <label for="inputLastName" class="col-sm-4 control-label"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['clientarealastname'];?>
</label>
        <div class="col-sm-6">
            <input type="text" name="lastname" id="inputLastName" value="<?php echo $_smarty_tpl->tpl_vars['lastname']->value;?>
" class="form-control" />
        </div>
    </div>
    <div class="form-group cc-billing-address">
        <label for="inputAddress1" class="col-sm-4 control-label"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaaddress1'];?>
</label>
        <div class="col-sm-6">
            <input type="text" name="address1" id="inputAddress1" value="<?php echo $_smarty_tpl->tpl_vars['address1']->value;?>
" class="form-control" />
        </div>
    </div>
    <div class="form-group cc-billing-address">
        <label for="inputAddress2" class="col-sm-4 control-label"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaaddress2'];?>
</label>
        <div class="col-sm-6">
            <input type="text" name="address2" id="inputAddress2" value="<?php echo $_smarty_tpl->tpl_vars['address2']->value;?>
" class="form-control" />
        </div>
    </div>
    <div class="form-group cc-billing-address">
        <label for="inputCity" class="col-sm-4 control-label"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['clientareacity'];?>
</label>
        <div class="col-sm-6">
            <input type="text" name="city" id="inputCity" value="<?php echo $_smarty_tpl->tpl_vars['city']->value;?>
" class="form-control" />
        </div>
    </div>
    <div class="form-group cc-billing-address">
        <label for="inputState" class="col-sm-4 control-label"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['clientareastate'];?>
</label>
        <div class="col-sm-6">
            <input type="text" name="state" id="inputState" value="<?php echo $_smarty_tpl->tpl_vars['state']->value;?>
" class="form-control" />
        </div>
    </div>
    <div class="form-group cc-billing-address">
        <label for="inputPostcode" class="col-sm-4 control-label"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['clientareapostcode'];?>
</label>
        <div class="col-sm-6">
            <input type="text" name="postcode" id="inputPostcode" value="<?php echo $_smarty_tpl->tpl_vars['postcode']->value;?>
" class="form-control" />
        </div>
    </div>
    <div class="form-group cc-billing-address">
        <label for="inputCountry" class="col-sm-4 control-label"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['clientareacountry'];?>
</label>
        <div class="col-sm-6">
            <?php echo $_smarty_tpl->tpl_vars['countriesdropdown']->value;?>

        </div>
    </div>
    <div class="form-group cc-billing-address">
        <label for="inputPhone" class="col-sm-4 control-label"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaphonenumber'];?>
</label>
        <div class="col-sm-6">
            <input type="text" name="phonenumber" id="inputPhone" value="<?php echo $_smarty_tpl->tpl_vars['phonenumber']->value;?>
" class="form-control" />
        </div>
    </div>
</div>
<?php }
}
