<?php
/* Smarty version 3.1.33-p1, created on 2020-12-08 14:50:05
  from '/home/tecnisat/public_html/central/templates/six/payment/billing-address.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33-p1',
  'unifunc' => 'content_5fcf929d5ca006_48471047',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'fa8e70dea6a0349e2dda997ce549012b04d26eea' => 
    array (
      0 => '/home/tecnisat/public_html/central/templates/six/payment/billing-address.tpl',
      1 => 1582944284,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5fcf929d5ca006_48471047 (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 || $_smarty_tpl->tpl_vars['billingContact']->value != $_smarty_tpl->tpl_vars['client']->value->billingContactId) {?> 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');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['contact']->value) {
?>
            <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 || $_smarty_tpl->tpl_vars['contact']->value->id == $_smarty_tpl->tpl_vars['client']->value->billingContactId) {?> 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 }
}
