} ?> ><?php echo $country->name; ?> </option> <?php } ?> </select> </div> </div> <div class="row"> <div class="form-group col-xs-12 col-sm-12 col-md-4"> <input type="text" class="form-control postal-code billing-postal_code" data-required="<?php echo \Shop\Models\Countries::fromCode($cart->billingCountry($cart->shippingCountry()))->requires_postal_code ? 'true' : 'false'; ?> " data-shipping="<?php echo $cart->{'checkout.shipping_address.postal_code'}; ?> " name="checkout[billing_address][postal_code]" value="<?php echo $cart->billingPostalCode($cart->{'checkout.shipping_address.postal_code'}); ?> " placeholder="Postal Code" autocomplete="postal-code" <?php if ($cart->billingSameAsShipping()) { echo 'disabled'; } ?> > </div> <div class="form-group col-xs-12 col-sm-12 col-md-8">
/** * Gets the country model for this region * * @return unknown */ public function country() { $country = \Shop\Models\Countries::fromCode($this->country_isocode_2); return $country; }