<% @datas.each do |data| %> <% end %>
<%=t('export_members.id')%> <%=t('export_members.surname')%> <%=t('export_members.first_name')%> <%=t('export_members.email')%> <%=t('export_members.gender')%> <%=t('export_members.age')%> <%=t('export_members.phone')%> <%=t('export_members.group')%> <%=t('export_members.subscription')%> <%=t('export_members.subscription_end_date')%> <%=t('export_members.validated_trainings')%>
<%= data.id %> <%= data.profile.last_name %> <%= data.profile.first_name %> <%= data.email %> <%= data.profile.gender ? t('export_members.man') : t('export_members.woman') %> <%= data.profile.age %> <%= data.profile.phone %> <%= data.group.name %> <%= (data.subscription and data.subscription.expired_at > Time.now) ? data.subscription.plan.name : t('export_members.without_subscriptions') %> <%= (data.subscription and data.subscription.expired_at > Time.now) ? data.subscription.expired_at : '' %> <%= raw data.trainings.map(&:name).join(' ') %>