<% if 'venue_management_invitings' == params[:action] %>

<%= @venue_management.title %>

<% end %> <% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% @invitings.each do |inviting| %> <% if 'venue_management_invitings' != params[:action] %> <% end %> <% end %>
<%= inviting.venue_management_main.title %> <%= link_to inviting.display_case_no, (@venue_management_page_url.blank? ? "#" : "/#{I18n.locale}"+@venue_management_page_url+"/#{inviting.display_case_no.strip}-#{inviting.id}?method=show_inviting"), :target => '_self' %>
<%= inviting.tags.map{|t| t.name}.join(" , ") rescue "" %> <%= inviting.publish_times %> <%= inviting.start_date.to_s + "/" + inviting.end_date.to_s %> <%= "#{inviting.early_rent} / #{inviting.operation_rent}" %> <%= inviting.display_royalty %> <%= t("vm_inviting.enums.#{inviting.house_tax_payer}") + "/" + t("vm_inviting.enums.#{inviting.land_tax_payer}") %> <%= inviting.contractor_manager %> <%= t("vm_inviting.enums.bid_result.#{inviting.bid_result}") %> <%= inviting.display_details %>
<% filter_url = request.fullpath.split("?")[1..-1].join("?") %> <% if @venue_management.present? %> <% filter_url.blank? ? (filter_url += "id=#{@venue_management.id}") : (filter_url += "&id=#{@venue_management.id}") %>
<%= content_tag :div, class: "pagination-centered" do %> <%= paginate(@invitings) %>
<%= link_to content_tag(:i, nil, class: "fa fa-download") + " " + t('venue_management.export'), export_admin_venue_management_invitings_path(:format=>'xlsx')+"#{(filter_url.blank? ? '' : ('?'+filter_url))}", class: "btn btn-primary", target: '_blank' %> <%= link_to content_tag(:i, nil, class: "icons-plus") + " " + t(:add), new_admin_venue_management_inviting_path(id: @venue_management.id), class: "btn btn-primary" %>
<% end %>
<% else %> <%= content_tag :div, class: "bottomnav clearfix" do (content_tag(:div, class: "pagination-centered") do paginate(@invitings) end) + ('
'.html_safe + link_to(content_tag(:i, nil, class: "fa fa-download") + " " + t('venue_management.export'), export_admin_venue_management_invitings_path(:format=>'xlsx')+"#{(filter_url.blank? ? '' : ('?'+filter_url))}", class: "btn btn-primary", target: '_blank') + '
'.html_safe) end %> <% end %>