<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      layout="2columns-left"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <!-- Pull the account section structure (2columns-left + the My-Account
         sidebar navigation) so the new dashboard keeps the sidebar, then
         render our own rounded-card content into the main column. -->
    <update handle="customer_account"/>
    <head>
        <css src="Zhik_Portal::css/dealers.css"/>
        <css src="Zhik_Portal::css/portal-skeleton.css"/>
        <css src="Zhik_Portal::css/dashboard-v2.css"/>
    </head>
    <body>
        <referenceContainer name="content">
            <!-- The block IS an Info instance so the template can use
                 getDealer()/hasMyobaId()/portalData directly ($this). -->
            <block class="Zhik\Portal\Block\Account\Info"
                   name="portal_dashboard_v2"
                   template="Zhik_Portal::account/dashboard/index.phtml"
                   cacheable="false">
                <arguments>
                    <argument name="intro" xsi:type="object">Zhik\Portal\ViewModel\DashboardIntro</argument>
                </arguments>
            </block>
        </referenceContainer>
    </body>
</page>
