<div>
    <div class="flex justify-between items-center border-b pb-[15px]">
    <div class="font-semibold text-[16px]">Інтерфейси</div>
    <div class="flex gap-4">

    </div>
    </div> 
    <div class="overflow-x-auto">
        {{#contentList sql1=1 limit=100 table="(SELECT alias, table_name, title,(select name from admin.roles where role_id=g.role_id) as role_name, g.actions,
        (select string_agg(attr::text || rule_values::text,',')  from admin.rules left join (select rule_id,rule_values from admin.account_grants where account_id in (select account_id from admin.account_users where user_uid='{{id}}'))g on g.rule_id=rules.rule_id where r.route_id=any(routes)) as context 
        FROM admin.routes r right join (select route_id, actions,role_id from admin.role_access n where role_id in (SELECT role_id FROM admin.user_roles where user_uid='{{id}}'))g on r.route_id=g.route_id )" }}
    
        {{{tableList rows columns="Назва, title, Шлях, alias,Таблиця, table_name, Група, role_name, Повноваження, context, Дії, {{actions}} "}}}
    </div>
    {{/contentList}}
</div>