.tabs
  %ul
    - tabs.each do |tab|
      %li
        = link_to(tab[:url], :class => tab[:active] ? "active" : nil) do
          %i.fa{class: tab[:icon]}
          = t(tab[:text])

= show_flash
%table{ :width => "100%", :height => "100%", :cellpadding => 0, :cellspacing => 0, :class => :tabbed }
  %tr
    %td{ :class => :sidebar, :id => :sidebar, :valign => :top }
      = render "layouts/sidebar"
    %td{ :class => :main, :id => :main, :valign => :top }
      = yield

.tabs
  %ul
    - tabs.each do |tab|
      - unless tab.has_value?(:tab_leads)
        %li
          = link_to(tab[:url], :class => tab[:active] ? "active" : nil) do
            %i.fa{class: tab[:icon]}
            = t(tab[:text])

= show_flash
%table{ :width => "100%", :height => "100%", :cellpadding => 0, :cellspacing => 0, :class => :tabbed }
  %tr
    %td{ :class => :sidebar, :id => :sidebar, :valign => :top }
      = render "layouts/sidebar"
    %td{ :class => :main, :id => :main, :valign => :top }
      = yield

Add conditional to tab partial to prevent Lead tab from showing
Add conditional to tab partial to prevent Lead tab from showing
