<div class="tab-pane" id="billing-address"> <?php foreach ($billingFields as $field) { ?> <?php Forms::field($field['type'], $field); ?> <?php } ?> </div> <?php if (!$billingOnly) { ?> <div class="tab-pane" id="shipping-address"> <?php foreach ($shippingFields as $field) { ?> <?php Forms::field($field['type'], $field); ?> <?php } ?> </div> <?php } ?> </div> </div>