• <% is_active = request.path == root_path %>
    • <% if current_user.portfolio && policy(current_user.portfolio).show? %>
    • <% is_active = request.path.include?('portfolios') %>
    • <% end %>
    • <% is_active = request.path.include?('orders') %>
    • <% if policy(Classroom).index? %>
    • <% is_active = request.path.include?('classrooms') && request.path.exclude?('admin') %>
    • <% end %>
    • data-controller="stock-navbar-toggle"> <% is_active = request.path.include?('stocks') %> <%= link_to stocks_path, class: "flex gap-3 items-center flex-1 hover:opacity-80", data: { action: "click->stock-navbar-toggle#navigateLink" } do %>
      <%= image_tag "chart-no-axes-combined.svg", class: "w-6 h-6", style: "filter: brightness(0) saturate(100%) #{is_active ? 'invert(20%) sepia(8%) saturate(348%) hue-rotate(114deg) brightness(98%) contrast(85%)' : 'invert(100%)'}" %>
      Trading Floor <% end %>
      <% stocks.each do |stock| %>
      <% stock_active = request.path == stock_path(stock) %>
      <% end %>
<% if policy(Classroom).new? %> <% is_active = request.path.include?('admin') %> <% end %>