<%= 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('
') %> |
<% end %>