<div class="row d-flex gap-2">
    <div class="col-12 col-sm-4 col-md-3 mb-3 card hr-arrow p-3 d-flex flex-column gap-2">
        <a href="{$currentDir}?action=pages" id="userManagement" class="" style="--dynamic-color: var(--theme-color1);">
            <div class="d-flex justify-content-between">
                <div>
                    <h6 class="title mb-1">{$lang.nav.pageslist}</h6>
                    <p class="small text-muted mb-0">Управление страницами сайта</p>
                </div>
                <div class="go-corner"><div class="go-arrow">→</div></div>
            </div>
            {if $access['modules.create'] || $user.name == 'Demo profile'}
                <a href="/admin?action=add-pages" class="float-end w-100" id="addAds">
                    <button class="btn btn-success w-50">Add</button>
                </a>
            {/if}
        </a>
    </div>

    {if $adsAvailable && $adsUsed}
        <div class="col-12 col-sm-4 col-md-3 mb-3 card hr-arrow p-3 d-flex flex-column gap-2">
            <a href="{$currentDir}?action=modules/ads/list" id="userManagement" class="" style="--dynamic-color: var(--theme-color1);">
                <div class="d-flex justify-content-between">
                    <div>
                        <h6 class="title mb-1">{$lang.nav.adslist}</h6>
                        <p class="small text-muted mb-0">Все объявления пользователей</p>
                    </div>
                    <div class="go-corner"><div class="go-arrow">→</div></div>
                </div>
                {if $access['modules.create'] || $user.name == 'Demo profile'}
                    <a href="/admin?action=modules/ads/add" class="float-end w-100" id="addAds">
                        <button class="btn btn-success w-50">Add</button>
                    </a>
                {/if}
            </a>
        </div>
    {/if}

    {if $lotsAvailable && $lotsUsed}
        <div class="col-12 col-sm-4 col-md-3 mb-3 card hr-arrow p-3 d-flex flex-column gap-2">
            <a href="{$currentDir}?action=modules/lots/list" id="userManagement" class="" style="--dynamic-color: var(--theme-color1);">
                <div class="d-flex justify-content-between">
                    <div>
                        <h6 class="title mb-1">{$lang.nav.lotslist}</h6>
                        <p class="small text-muted mb-0">Лоты аукционов и продаж</p>
                    </div>
                    <div class="go-corner"><div class="go-arrow">→</div></div>
                </div>
                {if $access['modules.create'] || $user.name == 'Demo profile'}
                    <a href="/admin?action=modules/lots/add" class="float-end w-100" id="addAds">
                        <button class="btn btn-success w-50">Add</button>
                    </a>
                {/if}
            </a>
        </div>
    {/if}

    {if $filesAvailable && $filesUsed}
        <div class="col-12 col-sm-4 col-md-3 mb-3 card hr-arrow p-3 d-flex flex-column gap-2">
            <a href="{$currentDir}?action=modules/files/list" id="userManagement" class="" style="--dynamic-color: var(--theme-color1);">
                <div class="d-flex justify-content-between">
                    <div>
                        <h6 class="title mb-1">{$lang.nav.fileslist}</h6>
                        <p class="small text-muted mb-0">Файлообменник</p>
                    </div>
                    <div class="go-corner"><div class="go-arrow">→</div></div>
                </div>
                {if $access['modules.create'] || $user.name == 'Demo profile'}
                    <a href="/admin?action=modules/files/add" class="float-end w-100" id="addAds">
                        <button class="btn btn-success w-50">Add</button>
                    </a>
                {/if}
            </a>
        </div>
    {/if}

    {if $moviesAvailable && $moviesUsed}
        <div class="col-12 col-sm-4 col-md-3 mb-3 card hr-arrow p-3 d-flex flex-column gap-2">
            <a href="{$currentDir}?action=modules/movies/list" id="userManagement" class="" style="--dynamic-color: var(--theme-color1);">
                <div class="d-flex justify-content-between">
                    <div>
                        <h6 class="title mb-1">{$lang.nav.movieslist}</h6>
                        <p class="small text-muted mb-0">Файлообменник</p>
                    </div>
                    <div class="go-corner"><div class="go-arrow">→</div></div>
                </div>
                {if $access['modules.create'] || $user.name == 'Demo profile'}
                    <a href="/admin?action=modules/movies/add" class="float-end w-100" id="addAds">
                        <button class="btn btn-success w-50">Add</button>
                    </a>
                {/if}
            </a>
        </div>
    {/if}

    {if $newsAvailable && $newsUsed}
        <div class="col-12 col-sm-4 col-md-3 mb-3 card hr-arrow p-3 d-flex flex-column gap-2">
            <a href="{$currentDir}?action=modules/news/list" id="userManagement" class="" style="--dynamic-color: var(--theme-color1);">
                <div class="d-flex justify-content-between">
                    <div>
                        <h6 class="title mb-1">{$lang.nav.newslist}</h6>
                        <p class="small text-muted mb-0">Новости и статьи</p>
                    </div>
                    <div class="go-corner"><div class="go-arrow">→</div></div>
                </div>
                {if $access['modules.create'] || $user.name == 'Demo profile'}
                    <a href="/admin?action=modules/news/add" class="float-end w-100" id="addAds">
                        <button class="btn btn-success w-50">Add</button>
                    </a>
                {/if}
            </a>
        </div>
    {/if}

    {if $productsAvailable && $productsUsed}
        <div class="col-12 col-sm-4 col-md-3 mb-3 card hr-arrow p-3 d-flex flex-column gap-2">
            <a href="{$currentDir}?action=modules/products/list" id="userManagement" class="" style="--dynamic-color: var(--theme-color1);">
                <div class="d-flex justify-content-between">
                    <div>
                        <h6 class="title mb-1">{$lang.nav.productslist}</h6>
                        <p class="small text-muted mb-0">Интернет-магазин</p>
                    </div>
                    <div class="go-corner"><div class="go-arrow">→</div></div>
                </div>
                {if $access['modules.create'] || $user.name == 'Demo profile'}
                    <a href="/admin?action=modules/products/add" class="float-end w-100" id="addAds">
                        <button class="btn btn-success w-50">Add</button>
                    </a>
                {/if}
            </a>
        </div>
    {/if}

    {if $eventsAvailable && $eventsUsed}
        <div class="col-12 col-sm-4 col-md-3 mb-3 card hr-arrow p-3 d-flex flex-column gap-2">
            <a href="{$currentDir}?action=modules/events/list" id="userManagement" style="--dynamic-color: var(--theme-color1);">
                <div class="d-flex justify-content-between">
                    <div>
                        <h6 class="title mb-1">{$lang.nav.eventslist}</h6>
                        <p class="small text-muted mb-0">Мероприятия и события</p>
                    </div>
                    <div class="go-corner"><div class="go-arrow">→</div></div>
                </div>
                {if $access['modules.create'] || $user.name == 'Demo profile'}
                    <a href="/admin?action=modules/events/add" class="float-end w-100" id="addAds">
                        <button class="btn btn-success w-50">Add</button>
                    </a>
                {/if}
            </a>
        </div>
    {/if}

    {if $shopAvailable && $shopUsed}
        <div class="col-12 col-sm-4 col-md-3 mb-3 card hr-arrow p-3 d-flex flex-column gap-2">
            <a href="{$currentDir}?action=modules/shops/list" id="userManagement" class="" style="--dynamic-color: var(--theme-color1);">
                <div class="d-flex justify-content-between">
                    <div>
                        <h6 class="title mb-1">{$lang.nav.shoplist}</h6>
                        <p class="small text-muted mb-0">Магазины и компании
                    </div>
                    <div class="go-corner"><div class="go-arrow">→</div></div>
                </div>
                {if $access['modules.create'] || $user.name == 'Demo profile'}
                    <a href="/admin?action=modules/shops/add" class="float-end w-100" id="addAds">
                        <button class="btn btn-success w-50">Add</button>
                    </a>
                {/if}
            </a>
        </div>
    {/if}

    {if $couponsAvailable && $couponsUsed}
        <div class="col-12 col-sm-4 col-md-3 mb-3 card hr-arrow p-3 d-flex flex-column gap-2">
            <a href="{$currentDir}?action=modules/coupons/list" id="userManagement" class="" style="--dynamic-color: var(--theme-color1);">
                <div class="d-flex justify-content-between">
                    <div>
                        <h6 class="title mb-1">{$lang.nav.couponslist}</h6>
                        <p class="small text-muted mb-0">Купоны
                    </div>
                    <div class="go-corner"><div class="go-arrow">→</div></div>
                </div>
                {if $access['modules.create'] || $user.name == 'Demo profile'}
                    <a href="/admin?action=modules/coupons/add" class="float-end w-100" id="addAds">
                        <button class="btn btn-success w-50">Add</button>
                    </a>
                {/if}
            </a>
        </div>
    {/if}
    {if $auctionsAvailable && $auctionsUsed}
        <div class="col-12 col-sm-4 col-md-3 mb-3 card hr-arrow p-3 d-flex flex-column gap-2">
            <a href="{$currentDir}?action=modules/auctions/list" id="userManagement" class="" style="--dynamic-color: var(--theme-color1);">
                <div class="d-flex justify-content-between">
                    <div>
                        <h6 class="title mb-1">{$lang.nav.auctionslist}</h6>
                        <p class="small text-muted mb-0">Аукционы
                    </div>
                    <div class="go-corner"><div class="go-arrow">→</div></div>
                </div>
                {if $access['modules.create'] || $user.name == 'Demo profile'}
                    <a href="/admin?action=modules/auctions/add" class="float-end w-100" id="addAds">
                        <button class="btn btn-success w-50">Add</button>
                    </a>
                {/if}
            </a>
        </div>
    {/if}
</div>