<%= translated_attribute(agenda_item.title) %>
<%= display_duration_agenda_items(agenda_item.id, index, agenda_items_times) %>
<%= decidim_sanitize(translated_attribute(agenda_item.description)).html_safe %>
<% if agenda_item.agenda_item_children.presence %>
<% parent_start_time = agenda_items_times[index][:start_time] %>
<% agenda_item_children_times = calculate_start_and_end_time_of_agenda_items(agenda_item.agenda_item_children, meeting, parent_start_time) %>
<% agenda_item.agenda_item_children.each_with_index do |agenda_item_child, index_child| %>
<%= translated_attribute(agenda_item_child.title) %>
<%= display_duration_agenda_items(agenda_item_child.id, index_child, agenda_item_children_times) %>
<%= decidim_sanitize(translated_attribute(agenda_item_child.description)).html_safe %>
<% end %>
<% end %>
<% end %>