% if Docuseal.demo? %><%= render 'shared/demo_alert' %><% end %>
<% if @templates.any? %>
  
    Document Templates
    
      <%= render 'templates/upload_button' %>
      <%= link_to new_template_path, class: 'btn btn-primary text-base btn-md gap-2', data: { turbo_frame: :modal } do %>
        <%= svg_icon('plus', class: 'w-6 h-6 stroke-2') %>
        Create
      <% end %>
    
   
  
    <%= render partial: 'templates/template', collection: @templates %>
  
  <% view_archived_html = capture do %>
    <% if current_account.templates.where.not(deleted_at: nil).exists? %>
      
    <% end %>
  <% end %>
  <% if @pagy.pages > 1 %>
    <%= render 'shared/pagination', pagy: @pagy, items_name: 'templates', left_additional_html: view_archived_html %>
  <% else %>
    
      <%= view_archived_html %>
    
  <% end %>
<% else %>
  
    
      
        
          
            
👋 Welcome to DocuSeal
          
          
            Streamline document workflows, from creating customizable templates to filling and signing document forms
            <%= link_to new_template_path, class: 'base-button', data: { turbo_frame: :modal } do %>
              <%= svg_icon('plus', class: 'w-6 h-6 stroke-2') %>
              
Create Template
            <% end %>
          
 
         
       
     
   
<% end %>