{{ header }}
<style>
    .breadcrumbs {
        padding: 14px 0;
    }
</style>
<div id="account-account" class="container">
    <ul class="breadcrumb">
        {% for breadcrumb in breadcrumbs %}
            <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
        {% endfor %}
    </ul>
	{% if success %}
		<div class="row">
			<div class="col-xs-12">
				<div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }}</div>
			</div>
		</div>
	{% endif %}
    <div class="row">
		{{ column_left }}
        {% if column_left and column_right %}
            {% set class = 'col-sm-6' %}
        {% elseif column_left or column_right %}
            {% set class = 'col-sm-9' %}
        {% else %}
            {% set class = 'col-sm-12' %}
        {% endif %}
        <div id="content" class="{{ class }}">
            {{ content_top }}
            <div class="row">
                {% if credit_cards %}
                    <div class="col-xs-12 col-sm-6 col-md-4">
                        <h3>{{ text_credit_card }}</h3>
                        <ul class="list-unstyled">
                            {% for credit_card in credit_cards %}
                                <li><a href="{{ credit_card.href }}">{{ credit_card.name }}</a></li>
                            {% endfor %}
                        </ul>
                    </div>
                {% else %}
                    <div class="col-xs-12 col-md-2"></div>
                {% endif %}
                <div class="col-xs-12 col-sm-6 col-md-4">
                    <h3>{{ text_my_account }}</h3>
                    <ul class="list-unstyled">
                        <li><a href="{{ edit }}">{{ text_edit }}</a></li>
                        <li><a href="{{ password }}">{{ text_password }}</a></li>
                        <li><a href="{{ address }}">{{ text_address }}</a></li>
                        <li><a href="{{ wishlist }}">{{ text_wishlist }}</a></li>
                    </ul>
                </div>

                <div class="col-xs-12 col-sm-6 col-md-4">
                    <h3>{{ text_my_orders }}</h3>
                    <ul class="list-unstyled">
                        <li><a href="{{ order }}">{{ text_order }}</a></li>
                        {% if reward %}
                            <li><a href="{{ reward }}">{{ text_reward }}</a></li>
                        {% endif %}
                        <li><a href="{{ return }}">{{ text_return }}</a></li>
                        <li><a href="{{ transaction }}">{{ text_transaction }}</a></li>
                    </ul>
                </div>
                <!--
                <div class="col-xs-12 col-sm-6 col-md-4">
                    <h3>{{ text_my_newsletter }}</h3>
                    <ul class="list-unstyled">
                        <li><a href="{{ newsletter }}">{{ text_newsletter }}</a></li>
                    </ul>
                </div>-->
            </div>
            {{ content_bottom }}
        </div>
        {{ column_right }}
    </div>
</div>
{{ footer }}