{% import '@SyliusUi/Macro/headers.html.twig' as headers %}

{% extends '@SyliusShop/Account/layout.html.twig' %}

{% block breadcrumb %}
    <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
            <li class="breadcrumb-item">
                <a href="{{ path('sylius_shop_homepage') }}" class="section">{{ 'sylius.ui.home'|trans }}</a>
            </li>
            <li class="breadcrumb-item active">{{ 'sylius.ui.my_account'|trans }}</li>
        </ol>
    </nav>
{% endblock %}

{% block subcontent %}
    {{ headers.shop('sylius.ui.my_account'|trans, null, 'sylius.ui.manage_your_personal_information_and_preferences'|trans) }}

    {{ sylius_template_event('sylius.shop.account.dashboard.after_content_header', {'customer': customer}) }}

    <div class="account-dashboard" id="customer-information" {{ sylius_test_html_attribute('customer-information') }}>
        <p class="h6 mb-0">{{ customer.fullName }}</p>
        <p>{{ customer.email }}</p>
    </div>

    {{ sylius_template_event('sylius.shop.account.dashboard.after_information', {'customer': customer}) }}

    <nav class="account-navigation row">
        <div class="col-md-auto">
            <a href="{{ path('sylius_shop_account_profile_update') }}" class="btn btn-outline-primary">{{ 'sylius.ui.edit'|trans }} ›</a>
        </div>
        <div class="col-md-auto">
            <a href="{{ path('sylius_shop_account_change_password') }}" class="btn btn-outline-primary">{{ 'sylius.ui.change_password'|trans }} ›</a>
        </div>
    </nav>
{% endblock %}
