<div class="changelog_container">
    <?php
    $handyman_agency_changelog_entries = get_changelog_from_readme();
    if (!empty($handyman_agency_changelog_entries)) :
        foreach ($handyman_agency_changelog_entries as $handyman_agency_entry) :
            $handyman_agency_version = esc_html($handyman_agency_entry[1]);
            $handyman_agency_date = esc_html($handyman_agency_entry[2]);
            $handyman_agency_details = explode("\n", trim($handyman_agency_entry[3]));
            ?>
            <div class="changelog_element">
                <span class="theme_version">
                    <strong><?php echo 'v' . $handyman_agency_version; ?></strong>
                    <?php echo 'Release date: ' . $handyman_agency_date; ?>
                    <span class="dashicons dashicons-arrow-down-alt2"></span>
                </span>

                <div class="changelog_details" style="display: none;">
                    <ul>
                        <?php foreach ($handyman_agency_details as $handyman_agency_detail) : ?>
                            <li><?php echo esc_html(trim($handyman_agency_detail, "- \t")); ?></li>
                        <?php endforeach; ?>
                    </ul>
                </div>
            </div>
        <?php
        endforeach;
    else :
        ?>
        <p><?php esc_html_e('No changelog available.', 'handyman-agency'); ?></p>
    <?php endif; ?>
</div>