<header class="clear">
    <a href="/console" class="logo pull-start">
        <img src="/images/appwrite.svg" alt="Appwrite Light Logo" class="force-light" />
        <img src="/images/appwrite-footer-dark.svg" alt="Appwrite Dark Logo" class="force-dark" />
    </a>

    <div class="change-project pull-start desktops-only">
        <div class="list project-only margin-end-small">
            <label class="margin-bottom-no">
                <select class="margin-bottom-no"
                    data-xanalytics-event="change"
                    data-xanalytics-category="console/header"
                    data-xanalytics-label="Project Switch"
                    data-switch
                    data-ls-bind="{{router.params.project}}"
                    data-unsync="1"
                    data-ls-loop="projects" data-ls-as="option">
                    <option data-ls-attrs="value={{option.$id}}" data-ls-bind="{{option.name}}"></option>
                </select>
            </label>
        </div>

        <button style="overflow: visible;" class="project-only setup-new tooltip round down" aria-label="Quick Start" data-tooltip="Create a new project"><i class="icon-plus"></i></button>
    </div>

    <div class="account-box pull-end"
        data-service="account.get"
        data-name="account"
        data-scope="console"
        data-event="load"
        data-success="trigger"
        data-success-param-trigger-events="account.get"
        data-failure="trigger"
        data-failure-param-trigger-events="account.deleteSession">

        <div class="console-back">
            <a href="/console">Back to Console &nbsp;<i class="icon-right-open"></i></a>
        </div>

        <a href="/console/account" class="account pull-end clear">
            <img src="" data-ls-attrs="src={{account|gravatar}}" alt="User Avatar" class="avatar margin-start pull-end" />
            <span class="name pull-end desktops-only" data-ls-bind="{{account.name}}"></span>
        </a>
    </div>
    
    <div class="pull-end margin-end switch-theme desktops-only">
        <button data-general-theme
            data-analytics-event="click"
            data-analytics-category="console/header"
            data-analytics-label="Switch Theme">
            <i class="icon-sun-inv force-light"></i>
            <i class="icon-moon-inv force-dark"></i>
        </button>
    </div>

    <nav class="project-only" data-ls-ui-open="" data-button-class="round icon-btn phones-only tablets-only" data-button-icon="icon-dot-3">
        <a class="logo" href="/console"
            data-analytics-event="click"
            data-analytics-category="console/navigation"
            data-analytics-label="Logo Link">
            <img src="/images/appwrite-nav.svg" alt="Appwrite Logo" class="nav" />

            <img src="/images/appwrite.svg" alt="Appwrite Light Logo" class="top force-light" />
            <img src="/images/appwrite-footer-dark.svg" alt="Appwrite Dark Logo" class="top force-dark" />
        </a>

        <div data-ui-highlight class="container">

            <ul class="links">
                <li>
                    <a data-ls-attrs="href=/console/home?project={{router.params.project}}"
                        data-analytics-event="click"
                        data-analytics-category="console/navigation"
                        data-analytics-label="Home Link">
                        <i class="icon-home"></i>
                        Home
                    </a>
                </li>
            </ul>

            <b class="subtitle">DEVELOP</b>

            <ul class="links">
                <li>
                    <a data-ls-attrs="href=/console/database?project={{router.params.project}}"
                        data-analytics-event="click"
                        data-analytics-category="console/navigation"
                        data-analytics-label="Database Link">
                        <i class="icon-database"></i>
                        Database
                    </a>
                </li>
                <li>
                    <a data-ls-attrs="href=/console/storage?project={{router.params.project}}"
                        data-analytics-event="click"
                        data-analytics-category="console/navigation"
                        data-analytics-label="Storage Link">
                        <i class="icon-folder"></i>
                        Storage
                    </a>
                </li>
                <li>
                    <a data-ls-attrs="href=/console/users?project={{router.params.project}}"
                        data-analytics-event="click"
                        data-analytics-category="console/navigation"
                        data-analytics-label="Users Link">
                        <i class="icon-users"></i>
                        Users
                    </a>
                </li>
            </ul>

            <b class="subtitle">MANAGE</b>

            <ul class="links">
                <li>
                    <a data-ls-attrs="href=/console/tasks?project={{router.params.project}}"
                        data-analytics-event="click"
                        data-analytics-category="console/navigation"
                        data-analytics-label="Tasks Link">
                        <i class="icon-clock"></i>
                        Tasks
                    </a>
                </li>
                <li>
                    <a data-ls-attrs="href=/console/webhooks?project={{router.params.project}}"
                        data-analytics-event="click"
                        data-analytics-category="console/navigation"
                        data-analytics-label="Webhooks Links">
                        <i class="icon-link"></i>
                        Webhooks
                    </a>
                </li>
                <li>
                    <a data-ls-attrs="href=/console/keys?project={{router.params.project}}"
                        data-analytics-event="click"
                        data-analytics-category="console/navigation"
                        data-analytics-label="API Keys Link">
                        <i class="icon-key-inv"></i>
                        API Keys
                    </a>
                </li>
            </ul>
        </div>

        <ul class="links bottom">
            <li>
                <a data-ls-attrs="href=/console/settings?project={{router.params.project}}"
                    data-analytics-event="click"
                    data-analytics-category="console/navigation"
                    data-analytics-label="Settings Link">
                    <i class="icon-cog"></i> Settings</a>
            </li>
        </ul>
    </nav>
</header>

<div class=""
    data-service="projects.list"
    data-event="load,projects.update"
    data-name="projects"
    data-scope="console"></div>

<div class=""
    data-service="locale.get"
    data-name="locale"
    data-event="load"
    data-scope="console"></div>

<div class=""
    data-service="locale.getCountries"
    data-name="locale-countries"
    data-event="load"
    data-scope="console"></div>

<div class=""
    data-service="locale.getCountriesPhones"
    data-name="locale-countries-phones"
    data-event="load"
    data-scope="console"></div>

<div class="load-screen" data-ls-ui-loader>
    <div class="animation"><div></div><div></div><div></div><div></div></div>
    <img src="/images/appwrite.svg" alt="Appwrite Light Logo" class="force-light" />
    <img src="/images/appwrite-footer-dark.svg" alt="Appwrite Dark Logo" class="force-dark" />
</div>

<div data-ui-modal class="modal box close" data-button-alias=".setup-new" data-button-icon="icon-plus" data-button-class="project-only" data-open-event="create-project">
    <h1>Create Project</h1>

    <form
        data-setup
        data-analytics-event="submit"
        data-analytics-category="console"
        data-analytics-label="Create Project">
        <p>Appwrite projects are containers for your resources and apps across different platforms.</p>

        <label>Name</label>
        <input type="text" class="full-width" name="name" required autocomplete="off" />

        <hr />

        <button type="submit">Create</button> &nbsp; <button data-ui-modal-close="" type="button" class="reverse">Cancel</button>
    </form>
</div>