<div class="card-box">
  <div class="title-head">All Jodi Charts Lists</div>
  <div class="txt-md">
<?php
foreach ($games as $row) {
    $name = $row['title'] ?? '';
    $sname = ucwords(strtolower($name));
    $page = $row['alias'] ?? '';
    $seo_name = strtolower(str_replace(" ", "-", $page));

$jodiUrl = function_exists('cms_info_chart_url') ? cms_info_chart_url($seo_name, 'jodi') : '/info-chart/' . $seo_name . '-jodi/';
echo "<a href='" . htmlspecialchars($jodiUrl, ENT_QUOTES, 'UTF-8') . "' class='link-zone'>{$sname} Jodi Chart</a>";
}
?>
  </div>
</div>

<div class="card-box">
  <div class="title-head">All Panel Charts Lists</div>
  <div class="txt-md">
<?php
foreach ($games as $row) {
    $name = $row['title'] ?? '';
    $sname = ucwords(strtolower($name));
    $page = $row['alias'] ?? '';
    $seo_name = strtolower(str_replace(" ", "-", $page));

$panelUrl = function_exists('cms_info_chart_url') ? cms_info_chart_url($seo_name, 'panel') : '/info-chart/' . $seo_name . '-panel/';
echo "<a href='" . htmlspecialchars($panelUrl, ENT_QUOTES, 'UTF-8') . "' class='link-zone'>{$sname} Panel Chart</a>";
}
?>
  </div>
</div>
