<?php 

function bongdako_layout_assets_admin()
{
    $assets_shortcode_tab2 = trailingslashit(dirname(dirname(dirname(dirname(dirname(plugin_dir_url(__FILE__))))))) . 'assets/';
?>

    <script>
        var __APP_DOMAIN__ = "<?= APP_DOMAIN ?>";
        window.config = {
            "appName": "BongdaluUI",
            "appUrl": "<?= $assets_shortcode_tab2 ?>site",
            "locale": "vn",
            "locales": ["en", "vn", "th"],
            "url": "<?= BONGDAKO_URL ?>"
        };
        var dbUrl = "<?= DB_DOMAIN ?>";
    </script>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet">

    <link href="<?= $assets_shortcode_tab2 ?>css/style.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/init.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/hide_ads.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">

    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/football-vn-css.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/match-report.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/diff.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">

    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/league.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/pages.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">

    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/sync.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/header.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">

    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/responsive.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/responsive_header.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">

    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/responsive_nav.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">

    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/style.global.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/main-page.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/main.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">

    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/soccerEvent.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/home-ui.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/home-ui-mobile.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/popupCorner.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/layer.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/homeview.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">

    <style>
        #scrollIframe{
            padding: 10px;
        }

        #scrollIframe.wrap-iframe {
            color: #070f03;
            /*overflow: auto;        */
        }

        #scrollIframe.wrap-iframe::-webkit-scrollbar {
            height: 0px;
            /* Hide the horizontal scrollbar */
        }

        #scrollIframe #homepage.mcontent {
            width: 100% !important;
        }

        #scrollIframe #homepage #main {
            width: 100% !important;
        }

        #scrollIframe p {
            font-family: "Inter", sans-serif;
            margin: 0;
        }

        #scrollIframe .swt {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/CaretDown.svg");
        }

        body.dark #scrollIframe .swt{
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/CaretDownWhite.svg");
        }

        body.dark #scrollIframe .swt:hover{
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/CaretDownWhite.svg");
        }

        #scrollIframe td#oddsHead .select-company {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/CaretDown.svg");
        }

        #scrollIframe .second-version .info_title_left .selectbox select {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/CaretDown.svg");
        }

        #scrollIframe .data-sync .techlist select {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/CaretDown.svg");
        }

        #scrollIframe #main .idx-homepage .icon-matchdata-mobile,
        #scrollIframe #main .idx-favorite .icon-matchdata-mobile {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/CaretDown.svg");
        }

        #scrollIframe #main .idx-homepage .icon-matchdata-mobile.on,
        #scrollIframe #main .idx-favorite .icon-matchdata-mobile.on {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/CaretDown.svg");
        }

        #scrollIframe #info.matchDetail #SelectLi.custom-select-02::after {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/CaretDown.svg");
        }

        @font-face {
            font-family: "iconfont";
            src: url("<?= $assets_shortcode_tab2 ?>site/assets/fonts/iconfont.woff2") format("woff2"),
                url("<?= $assets_shortcode_tab2 ?>site/assets/fonts/iconfont.woff") format("woff"),
                url("<?= $assets_shortcode_tab2 ?>site/assets/fonts/iconfont.ttf") format("truetype");
        }

        #scrollIframe .allno {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/icon-trash.svg") !important;
        }

        .dark #scrollIframe .allno {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/icon-trash-dark.svg") !important;
        }

        #scrollIframe #table_live .odds1.resultColor::after,
        #scrollIframe #table_live .odds2.resultColor::after,
        #scrollIframe .odds-bg.odds-normal>span.down::after,
        #scrollIframe #table_live .new-home-tr .odds1.odds-down::after,
        #scrollIframe #table_live .new_oddsChangePopup .popup-odds-change .odds-down:after,
        #scrollIframe .odds2>span.down::after,
        #scrollIframe #homepage .game-rate #game-rate .container-sp .table-core-odds-value .odds-number.odds-down::after,
        #scrollIframe .oddschanges .oddschanges-bg1 .down::before,
        #scrollIframe .oddschanges .oddschanges-bg1 .down_green::before {
            content: "";
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/icon-arrow-down-light-v2.svg");
            background-size: contain;
            background-repeat: no-repeat;
        }

        #scrollIframe #table_live .odds3.resultColor::after,
        #scrollIframe .odds-bg.odds-normal>span.up::after,
        #scrollIframe .odds2>span.up::after,
        #scrollIframe #table_live .new-home-tr .odds1.odds-up::after,
        #scrollIframe #homepage .game-rate #game-rate .container-sp .table-core-odds-value .odds-number.odds-up::after,
        #scrollIframe #table_live .new_oddsChangePopup .popup-odds-change .odds-up::after,
        #scrollIframe .oddschanges .oddschanges-bg1 .up::before,
        #scrollIframe .oddschanges .oddschanges-bg1 .up_red::before {
            content: "";
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/icon-arrow-up-light-v2.svg");
            background-size: contain;
            background-repeat: no-repeat;
        }

        #scrollIframe .custom-select-02::after {
            content: "";
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/ar-down.svg");
            background-size: contain;
            background-repeat: no-repeat;
        }

        #scrollIframe #table_live .Detail-icon::before {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/icon-lineup.svg");
        }

        body.dark #scrollIframe #table_live .Detail-icon::before {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/icon-lineup-dark.svg"); 
        }

        #scrollIframe #table_live .analyze-icon::before {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/icon-analytics.svg");
        }

        #scrollIframe #showoptional2 .bts:nth-of-type(6) .select-all input::before {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/uncheck-square.svg");
        }

        #scrollIframe #showoptional2 .bts:nth-of-type(6) .select-all input:checked::before {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/check-square.svg");
        }

        #scrollIframe #showFilterBox{
            top: 34px;
        }

        #scrollIframe #showFilterBox .bts .select-all input::before {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/uncheck-square.svg");
        }

        #scrollIframe #goalTable input[type="checkbox"]::before {
            content: "";
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/uncheck-square.svg");
            background-size: contain;
            background-repeat: no-repeat;
        }

        #scrollIframe #showFilterBox .bts .select-all input:checked::before {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/check-square.svg");
        }

        .dark #showoptional2 .bts:nth-of-type(6) .select-all input::before {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/uncheck-square.svg");
        }

        .dark #showoptional2 .bts:nth-of-type(6) .select-all input:checked::before {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/check-square.svg");
        }

        .dark #showFilterBox .bts .select-all input::before {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/uncheck-square.svg");
        }

        .dark #showFilterBox .bts .select-all input:checked::before {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/check-square.svg");
        }

        #scrollIframe .filterLi2.xz .dropdown-toggle::after {
            content: "";
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/icon_arrow_down.svg");
            background-size: contain;
            background-repeat: no-repeat;
            border: none;
            margin-left: 0;
            vertical-align: middle;
        }

        #scrollIframe #oddsChange .oddsChange_head .oddsChange_head_title,
        #scrollIframe [id^="oddsChange_"] .oddsChange_head .oddsChange_head_title {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/Union-bg.svg");
        }

        body.dark #scrollIframe #oddsChange .oddsChange_head .oddsChange_head_title,
        body.dark #scrollIframe [id^="oddsChange_"] .oddsChange_head .oddsChange_head_title {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/Union-bg-dark.svg"); 
        }

        #scrollIframe #showoptional2 #myleague2 input::before {
            content: "";
            background: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/uncheck-square.svg");
            background-size: contain;
            background-repeat: no-repeat;
        }

        #scrollIframe #showoptional2 #myleague2 input[type="checkbox"]:checked::before {
            content: "";
            background: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/check-square.svg");
            background-size: contain;
            background-repeat: no-repeat;
        }

        #scrollIframe #OddsFilter table tr td input[type="checkbox"]:checked::before {
            content: "";
            background: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/check-square.svg");
            background-size: contain;
            background-repeat: no-repeat;
        }

        #scrollIframe .icon-matchdata:before {
            content: '';
            background-image: url('<?= IMGS3_PLUGINS ?>/assets/football-vn/images/icon_flash.svg');
            background-size: contain;
            background-repeat: no-repeat;
        }

        #scrollIframe .Leaguestitle .rankicon,
        body .team_leaguetitle .rankicon {
            background-image: url('<?= IMGS3_PLUGINS ?>/assets/football-vn/images/rank.svg');
        }

        #scrollIframe .closebtn.v2 {
            background-image: url('<?= IMGS3_PLUGINS ?>/assets/football-vn/images/close-outline.svg');
        }

        #scrollIframe #goalTable input[type="checkbox"]:checked::before {
            content: '';
            background: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/check-square.svg");
            background-size: contain;
            background-repeat: no-repeat;
        }

        #scrollIframe .icon-font-collect-off:before {
            content: '' !important;
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/rating-14px.svg");
            background-size: contain;
            background-repeat: no-repeat;
        }

        #scrollIframe .upper-live-icon-football {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/icons-home-ui/football.svg");
        }

        .dark #scrollIframe .upper-live-icon-football {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/icons-home-ui/football-dark.svg"); 
        }

        #scrollIframe .Leaguestitle .rankicon,
        body .team_leaguetitle .rankicon {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/rank.svg");
        }

        #scrollIframe .Leaguestitle .league-title-rank-icon,
        body .team_leaguetitle .league-title-rank-icon {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/rank.svg");
        }



        #scrollIframe .odds-table-bg .in-gif {
            background: url("<?= IMGS3_PLUGINS ?>/assets/images/in.gif");
            background-size: contain;
            background-repeat: no-repeat;
        }

        #scrollIframe #tableCoreSP [id^="time_"][id^="time_"] span:after,
        #scrollIframe #table_live [id^="time_"][id^="time_"] span:after {
            content: '';
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/in.gif");
            background-size: contain;
            background-repeat: no-repeat;
        }

        #scrollIframe .live-w-content .live-w-content-time .status-time-match span:after {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/in.gif");
        }

        #scrollIframe .filter-search-name input{
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/search-1.svg");
        }

        #scrollIframe .odds.up:after,
        #scrollIframe .odds.down:after {
            content: "";
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/icon-arrow-up-light-v2.svg");
            background-size: 7px 7px;
            background-repeat: no-repeat;
        }

        #scrollIframe .filter-box .custom-select-02:after {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/ar_down.svg");
            right: 10px;
            top: 50%;
            width: 14px;
            height: 14px;
        }

        #scrollIframe .odds.down:after {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/icon-arrow-down-light-v2.svg");
        }

        #scrollIframe .sixmix-container #sixinoneFilterLeague .bts-bottom .select-all input:before {
            content: "";
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/uncheck-square.svg");
            background-size: contain;
            background-repeat: no-repeat;
        }

        #scrollIframe .sixmix-container #sixinoneFilterLeague .bts-bottom .select-all input:checked:before {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/check-square.svg");
        }

        #scrollIframe .sixmix-container #sixinoneFilterLeague #myleague2 ul li input[type="checkbox"]:checked:before {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/check-square.svg");
        }

        #scrollIframe .sixmix-container #sixinoneFilterLeague #myleague2 ul li input[type="checkbox"]:before {
            content: "";
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/uncheck-square.svg");
            background-size: contain;
        }

        #scrollIframe .icon-font-collect-on:before {
            content: '' !important;
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/rating-14.svg");
            background-size: contain;
            background-repeat: no-repeat;
        }

        #scrollIframe .icon-matchdata.on:before {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/icon_flash_on.svg");
        }

        #scrollIframe.wrap-iframe {
            background: #e6e6e6;
            /*overflow-y: auto;*/
            /*max-height: 1000px;*/
            margin-left: auto;
            margin-right: auto;
            position: relative;
            font-size: 12px;
            margin: 10px 0;
        }

        #scrollIframe.wrap-iframe{
            margin: 0 auto;
        }

        #scrollIframe.wrap-iframe::-webkit-scrollbar-track {
            background-color: #DDDDDD;
        }

        #scrollIframe.wrap-iframe::-webkit-scrollbar {
            width: 8px;
        }

        #scrollIframe.wrap-iframe::-webkit-scrollbar-thumb {
            background-color: #A2A2A2;
            border: 2px solid #DDDDDD;
            border-radius: 30px;
            overflow: hidden;
        }

        #scrollIframe.wrap-iframe #mintable {
            margin-top: 0;
        }

        #scrollIframe.wrap-iframe tr {
            position: relative;
        }

        #scrollIframe.wrap-iframe #tools {
            padding-top: 0;
            position: sticky;
            top: -1px;
            left: 0;
            z-index: 3;
            background-color: #e6e6e6;
            line-height: 48px;
            height: 48px;
            padding-bottom: 12px;
        }

        #scrollIframe.wrap-iframe .filterLi2.xz .dropdown-toggle {
            line-height: 28px;
        }

        #scrollIframe.wrap-iframe #tr_upper-live-title {
            position: sticky;
            top: -1px;
            left: 0;
            z-index: 2;
        }

        #scrollIframe.wrap-iframe #Layer1 {
            z-index: 1003 !important;
        }

        .page-has-tool #tr_upper-live-title {
            top: 47px;
        }

        #scrollIframe.wrap-iframe-6in1 {
            max-width: 100% !important;
        }

        #scrollIframe.wrap-iframe .mcontent>#main #min,
        #scrollIframe.wrap-iframe #appHome {
            width: 100% !important;
        }

        #scrollIframe.wrap-iframe .sixmix-container {
            padding-top: 0;
            position: relative;
            padding-bottom: 0;
        }


        #scrollIframe.wrap-iframe [id^="ht_"],
        #scrollIframe.wrap-iframe [id^="gt_"] {
            min-width: 200px;
        }

        #scrollIframe .sixmix-container>.j-sb {
            padding-bottom: 10px;
            padding-top: 15px;
            position: sticky;
            left: 0;
            top: -1px;
            background-color: #e6e6e6;
            z-index: 2;
        }

        #scrollIframe .sixmix-container #sixinoneFilterLeague .bts-bottom .select-all input,
        #scrollIframe #showoptional2 .bts:nth-of-type(6) .select-all input,
        #scrollIframe #showFilterBox .bts .select-all input {
            border: none;
            background: none;
            outline: none;
            box-shadow: none;
        }

        #scrollIframe .sixmix-container #sixinoneFilterLeague .bts-top span input,
        #scrollIframe #showoptional2 .bts:nth-of-type(3) span input {
            border: none;
        }

        #scrollIframe #showoptional2 #myleague2 input[type="checkbox"] {
            background: none;
            border: none;
            box-shadow: none;
            text-align: left;
            min-width: auto;
        }

        #scrollIframe #table_live {
            margin: 0;
            width: 100%;
            overflow-x: unset;
            word-break: unset;
            color: #222;
            border-collapse: unset;
            border: none;
            line-height: normal;
        }

        #scrollIframe #table_live tr.upper-live-title td {
            padding: 0;
            font-size: unset;
            vertical-align: middle;
        }

        #scrollIframe #soccer .Leaguestitle{
            background: #e5e5e5;
        }

        #scrollIframe #soccer .Leaguestitle td {
            padding: 0;
            font-size: unset;
            vertical-align: middle;
            border: none;
        }

        #scrollIframe tr#tr_upper-live-titlez td {
            padding: 0;
            font-size: unset;
            vertical-align: middle;
        }

        #scrollIframe #table_live .odds1 {
            font-family: "Inter", sans-serif !important;
        }

        #scrollIframe #min .tools ul li {
            margin-bottom: 0;
            margin-top: 0;
            padding-left: 0;
            margin-left: 0;
        }

        #scrollIframe #showoptional2 #myleague2 li {
            margin-bottom: 0;
            margin-left: 0;
            margin-top: 0;
        }

        #scrollIframe #table_live tr.scoretitle td {
            border-left: none;
        }

        #scrollIframe #table_live tr.tds td {
            border-left: none;
            border-right: none;
        }

        #scrollIframe #table_live tr td{
            color: #070f03;
        }

        #scrollIframe .odds-title a {
            line-height: 1;
        }

        #scrollIframe #main .idx-homepage .custom-select-02.core-custom-select {
            line-height: 14px;
        }

        #scrollIframe #min .tools ul li#li_ShowAll.on,
        #scrollIframe #min .tools ul li#li_FilterHot.on,
        #scrollIframe #min .tools ul li#li_FilterLea.on,
        #scrollIframe #min .tools ul li#li_FilterCdi.on,
        #scrollIframe #min .tools ul li#li_FilterCdi.active {
            background: #005030;
        }

        #scrollIframe #min .tools ul li.on span {
            line-height: 28px;
        }

        #scrollIframe #fixture_iframe #min .match-box .scr {
            margin: 8px 0 4px;
        }

        #scrollIframe #min .tools li.filterLi2.xz .dropdown-toggle,
        .dark #scrollIframe #min .tools li.filterLi2.xz .dropdown-toggle {
            margin-right: 0;
            margin-bottom: 0;
            min-height: auto;
        }

        #scrollIframe #showFilterBox .rbl .el-radio {
            margin-bottom: 0;
        }

        #scrollIframe #goalTable ul li {
            margin-left: 0;
            margin-top: 0;
            margin-bottom: 0;
        }

        #scrollIframe #showoptional2 li,
        #scrollIframe #showoptional2 li label,
        #scrollIframe #goalTable li {
            margin-bottom: 0;
            color: #070f03;
            font-size: 12px;
            font-weight: 500;
        }

        #scrollIframe #table_live .odds3.resultColor::after,
        #scrollIframe .odds-bg.odds-normal>span.up::after,
        #scrollIframe .odds2>span.up::after,
        #scrollIframe #table_live .new-home-tr .odds1.odds-up::after,
        #scrollIframe #table_live .new_oddsChangePopup .popup-odds-change .odds-up::after,
        #scrollIframe #homepage .game-rate #game-rate .container-sp .table-core-odds-value .odds-number.odds-up::after,
        #scrollIframe .oddschanges .oddschanges-bg1 .up::before,
        #scrollIframe .oddschanges .oddschanges-bg1 .up_red::before {
            z-index: 0;
        }

        #scrollIframe #table_live .odds1.resultColor::after,
        #scrollIframe #table_live .odds2.resultColor::after,
        #scrollIframe .odds-bg.odds-normal>span.down::after,
        #scrollIframe #table_live .new-home-tr .odds1.odds-down::after,
        #scrollIframe #table_live .new_oddsChangePopup .popup-odds-change .odds-down::after,
        #scrollIframe #homepage .game-rate #game-rate .container-sp .table-core-odds-value .odds-number.odds-down::after,
        #scrollIframe .odds2>span.down::after,
        #scrollIframe .oddschanges .oddschanges-bg1 .down::before,
        #scrollIframe .oddschanges .oddschanges-bg1 .down_green::before {
            z-index: 0;
        }

        #scrollIframe #min .tools li span {
            padding-left: 10px;
            padding-right: 10px;
        }

        #scrollIframe .sixmix-container #sixinoneFilterLeague #myleague2 ul li label,
        #scrollIframe .sixmix-container #sixinoneFilterLeague #myleague2 ul li span {
            margin-bottom: 0;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        #scrollIframe #showoptional2 .showoptional2-w .rbl label {
            margin-bottom: 0;
        }

        #scrollIframe #showoptional2 .bts:nth-of-type(3) span label {
            margin-bottom: 0;
        }

        #scrollIframe .sixmix-container #sixinoneFilterLeague .bts-top span label {
            margin-bottom: 0;
        }

        #scrollIframe #table_live tr.upper-live-title td {
            border: none;
        }

        #scrollIframe #table_live tr.upper-live-title .td-bdr {
            border-right: 1px solid #e6e6e6;
        }

        #scrollIframe .left_part .follow img {
            display: inline-block;
        }

        #scrollIframe .Leaguestitle .cImg {
            width: 30px;
            object-fit: cover;
        }

        #scrollIframe #showoptional2 .bts:nth-of-type(3) label {
            margin-bottom: 0;
        }

        #scrollIframe #showoptional2 .showoptional2-w .search-box input {
            width: 100%;
            margin-bottom: 0;
        }

        #scrollIframe .swt:hover {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/CaretDownBlack.svg");
        }

        #scrollIframe .team-name span{
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;  
            overflow: hidden;
        }

        #scrollIframe .filter-search-name input{
            height: auto;
            transition: none;
        }

        #scrollIframe .filter-search-name input::placeholder{
            font-style: italic;
        }

        #scrollIframe .sixmix-container #sixinoneFilterLeague div:hover{
            background: #f2f2f2;
        }

        #scrollIframe .odd_asian{
            position: relative;
        }

        #scrollIframe .odd_asian_euro{
            padding: 15px 0;
        }

        #scrollIframe .filter-box .filter-heading .small {
            color: #717171;
            font-family: Inter;
            font-size: 11px;
            font-style: italic;
            font-weight: 400;
        }

        #scrollIframe .filter-box .filter-row-wrap {
            display: flex;
            justify-content: space-between;
            gap: 12px;
        }

        #scrollIframe .filter-box .all-hot-text {
            flex: 1 1 306px;
            max-width: 306px;
        }

        #scrollIframe .filter-box .all-hot-filter {
            flex: 1 1 70%;
            max-width: 70%;
            display: flex;
        }

        #scrollIframe .filter-box .filter-row-select {
            display: flex;
            gap: 10px;
            padding-right: 1px;
        }

        #scrollIframe .filter-box .filter-select-company {
            min-width: 92px !important;
        }

        #scrollIframe .filter-box .filter-select-rate {
            min-width: 123px !important;
        }

        #scrollIframe .filter-box .tlline{
            align-items: flex-start;
        }

        #scrollIframe .league-item-head{
            padding-left: 12px;
        }


        #scrollIframe .wrap-loadmore{
            margin-top: 17px;
            text-align: center;
        }

        #scrollIframe .wrap-loadmore .load-more-btn{
            font-family: Inter;
            font-size: 12px;
            font-style: normal;
            font-weight: 500;
            line-height: 14px;
            color: #fff;
            padding: 8px 41px 8px 21px;
            border-radius: 30px;
            border: 0;
            background: #337359;
            background-image: url("<?= $assets_shortcode_tab2 ?>images/double-alt-arrow-down.svg");
            background-repeat: no-repeat;
            background-position: right 20px top 6px;
        }

        #scrollIframe .sixmix-container .filter-box #sixinoneFilterLeague{
            min-width: 410px;
        }

        #scrollIframe .sixmix-container #sixinoneFilterLeague .bts-bottom #button{
            width: 140px;
        }

        #scrollIframe .td-bdr{
            border-left: none;
        }

        #scrollIframe .sixmix-container #sixinoneFilterLeague #myleague2 ul li input[type=checkbox]{
            padding: 0;
        }

        #scrollIframe #showoptional2 #myleague2 input[type="checkbox"]{
            padding: 0;
        }

        #scrollIframe #showFilterBox #OddsFilter #goalTable ul{
            padding-left: 0;
        }

        #scrollIframe #goalTable ul li input[type="checkbox"]{
            padding: 0;
        }

        #scrollIframe #showoptional2{
            top: 34px;
        }

        #scrollIframe .sixmix-container #sixinoneFilterLeague .search-box input{
            margin-bottom: 0;
        }

        #scrollIframe #table_live tr.scoretitle td .allno{
            right: unset;
        }

        #scrollIframe .wrap{
            margin: 0;
        }

        @media screen and (min-width: 769px) {

            #scrollIframe #min .tools ul li#li_ShowAll:hover,
            #scrollIframe #min .tools ul li#li_FilterHot:hover,
            #scrollIframe #min .tools ul li#li_FilterLea:hover,
            #scrollIframe #min .tools ul li#li_FilterCdi:hover {
                background: #005030;
            }
        }

        @media screen and (max-width: 1024px) {
            #scrollIframe #min #tools ul li:not(.odds-filter-text) span {
                line-height: 26px;
            }

            #scrollIframe #showoptional2 .showoptional2-w .search-box input {
                width: 100% !important;
            }

            #scrollIframe.wrap-iframe tr {
                position: unset;
            }

            #scrollIframe #table_live .Detail-icon::before {
                background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/icon-lineup-icon.svg") !important;
            }

            #scrollIframe.wrap-iframe [id^="ht_"],
            #scrollIframe.wrap-iframe [id^="gt_"] {
                min-width: unset;
            }

            #scrollIframe .left_part .follow img {
                display: block;
            }

            #scrollIframe .filter-box .filter-row-wrap {
                flex-wrap: wrap;
            }
            #scrollIframe #main .idx-homepage #table_live.table-home tr[id^=tr1_] td .odds1, #scrollIframe #main .idx-homepage #table_live.table-home tr[id^=tr1_] td .odds2, #scrollIframe #main .idx-homepage #table_live.table-home tr[id^=tr1_] td .odds3, #scrollIframe #main .idx-homepage #table_live.table-home tr[id^=tr1_] td .odds-empty, #scrollIframe #main .idx-resultpage #table_live.table-result tr[id^=tr1_] td .odds1, #scrollIframe #main .idx-resultpage #table_live.table-result tr[id^=tr1_] td .odds2, #scrollIframe #main .idx-resultpage #table_live.table-result tr[id^=tr1_] td .odds3, #scrollIframe #main .idx-resultpage #table_live.table-result tr[id^=tr1_] td .odds-empty, #scrollIframe #main .idx-favorite #table_live.table-favorite tr[id^=tr1_] td .odds1, #scrollIframe #main .idx-favorite #table_live.table-favorite tr[id^=tr1_] td .odds2, #scrollIframe #main .idx-favorite #table_live.table-favorite tr[id^=tr1_] td .odds3, #scrollIframe #main .idx-favorite #table_live.table-favorite tr[id^=tr1_] td .odds-empty, #scrollIframe #homepage .game-rate #game-rate .container-sp .table-core-odds-value .odds-number{
                padding: 0 10px;
                text-align: left;
            }

            #scrollIframe #main #table_live .new-home-tr .odds1::before, #scrollIframe #homepage .game-rate #game-rate .container-sp .table-core-odds-value .odds-number::before{
                position: unset;
                margin-right: 8px;
            }

            #scrollIframe #main #table_live tr[id^=tr1_] td .odds1, #scrollIframe #main #table_live tr[id^=tr1_] td .odds2, #scrollIframe #main #table_live tr[id^=tr1_] td .odds3, #scrollIframe #homepage .game-rate #game-rate .container-sp .table-core-odds-value .odds-number, #scrollIframe #main #table_live tr[id^=tr1_] td .odds-empty{
                padding: 0 10px;
                text-align: left;
            }
        }

        @media screen and (max-width: 768px) {
            #scrollIframe.wrap-iframe {
                min-height: 400px;
            }

            #scrollIframe.wrap-iframe tr {
                position: unset;
            }

            #scrollIframe .add-info:hover:after {
                display: none;
            }

            #scrollIframe .sixmix-container .filter-box #sixinoneFilterLeague{
                min-width: 100%;
            }

            #scrollIframe .sixmix-container #sixinoneFilterLeague .search-box{
                padding: 12px 20px;
            }

            #scrollIframe .sixmix-container #sixinoneFilterLeague .bts-bottom{
                padding: 8px 20px 16px;
                gap: 10px;
            }

            #scrollIframe .sixmix-container #sixinoneFilterLeague #myleague2{
                padding: 12px 20px;
            }

            #scrollIframe .sixmix-container #sixinoneFilterLeague .bts-top{
                padding: 0 20px 8px;
            }
            #scrollIframe .sixmix-container #sixinoneFilterLeague .search-box input::placeholder{
                font-size: 12px;
            }

            #scrollIframe .sixmix-container #sixinoneFilterLeague .search-box img{
                left: 30px;
            }

            #scrollIframe .sixmix-container #sixinoneFilterLeague .search-box input{
                padding-left: 32px;
            }

            #scrollIframe .sixmix-container #sixinoneFilterLeague .search-box button{
                right: 23px;
            }

            #scrollIframe #showoptional2{
                top: 30px;
            }

            #scrollIframe #showFilterBox{
                top: 30px;
            }
        }
    </style>

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">

<?php
}

function fake_iframe_fixture_admin(){
    $assets_shortcode_tab2 = trailingslashit(dirname(dirname(dirname(dirname(dirname(plugin_dir_url(__FILE__))))))) . 'assets/';
    ?>
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/fixture.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/date-picker.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/schedule.responsive.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    
    <style>
        #scrollIframe #min .game-rate-ratio {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/Union.svg");
        }

        #scrollIframe #game-rate-core-container .game-rate-ratio {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/Union.svg");
        }

        #scrollIframe #game-rate #tableCore .live-channel .btn-first-live-mobile .btn-live-chanel-icon {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/live-icon-game-rate-white.svg");
        }

        #scrollIframe #game-rate .odds-number.odds-up::after {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/icon-arrow-up-light-v2.svg");
        }

        #scrollIframe #game-rate .odds-number.odds-down::after {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/icon-arrow-down-light-v2.svg");
        }
    </style>
    <?php
}

function fake_iframe_rate_admin(){
    $assets_shortcode_tab2 = trailingslashit(dirname(dirname(dirname(dirname(dirname(plugin_dir_url(__FILE__))))))) . 'assets/';
    ?>
    <link href="<?= $assets_shortcode_tab2 ?>site/assets/css/match-list.css?v=<?= ASSETS_VERSION ?>" rel="stylesheet">
    
    <style>
        #scrollIframe #min .game-rate-ratio {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/Union.svg");
        }

        #scrollIframe #game-rate-core-container .game-rate-ratio {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/football-vn/images/Union.svg");
        }

        #scrollIframe #game-rate #tableCore .live-channel .btn-first-live-mobile .btn-live-chanel-icon {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/live-icon-game-rate-white.svg");
        }

        #scrollIframe #game-rate .odds-number.odds-up::after {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/icon-arrow-up-light-v2.svg");
        }

        #scrollIframe #game-rate .odds-number.odds-down::after {
            background-image: url("<?= IMGS3_PLUGINS ?>/assets/images/icon-arrow-down-light-v2.svg");
        }
    </style>
    <?php
}


function fetchdata6in1Tab2() {
    $timestamp = time();
    $url = DB_DOMAIN.'/ajax/soccer-ajax-6in1?date=2024-12-29&companyid=8&timezone=7&timestamp=' . $timestamp;
    
    $response = wp_remote_get($url, [
        'headers' => [
            'Referer' => home_url(),
        ],
        'timeout' => 60,
        'sslverify' => false,
        'curl' => [
            CURLOPT_SSL_VERIFYPEER => 0,
        ],
    ]);
    if (is_wp_error($response)) {
        return 'Error fetching data: ' . $response->get_error_message();
    }

    $body = wp_remote_retrieve_body($response);
    $data = json_decode($body, true);

    if (json_last_error() !== JSON_ERROR_NONE) {
        return 'Error decoding JSON: ' . json_last_error_msg();
    }

        $dataRender = $data['data'];?>
        <div class="table-view">
            <?php 
                $betMatchCount = 0;
                $maxBetCount = 3;
            ?>
            <?php foreach ($dataRender as $item): ;?>
            
            <?php 
                $dataMatch = $item['matches'];
            ?>
            
            <div class="league-item">
                <div class="league-item-head d-flex ai-c j-sb">
                    <div class="left_part d-flex ai-c gap-10">
                        <div class="league-logo no-image"><img src="<?php echo DB_DOMAIN ?>/assets/upload/football/league_match/images/icon-league-default.svg">
                        </div>
                        <div class="league-name"><?php echo $item['name'];?></div>
                    </div>
                    <div class="right_part d-flex ai-c" style="position: relative;">
                        <!---->
                        <div class="hover-in-a-container" data-tooltip="Ẩn tất cả trận đấu của giải đấu này"><span><div class="swt"></div></span>
                        </div>
                    </div>
                </div>

                <div class="match-list-head d-flex ai-c">
                    <div class="w-60 text-center"><span class="title-small"> Thời gian </span>
                    </div>
                    <div class="w-50 text-center"><span class="title-small"> Tỷ số </span>
                    </div>
                    <div class="info-teams text-center a-two-bet"><span class="title-small"> Đội bóng </span>
                    </div>
                    <div class="odds-title text-center head full-game fwrap-wrap two-line-bet">
                        <div class="odds-title-head"><span class="title-small"> Toàn trận </span>
                        </div>
                        <div class="d-flex odds-title-items">
                            <div class="odds-title-item two-line-start">Cược Chấp</div>
                            <div class="odds-title-item two-line-start">Tài Xỉu</div>
                            <div class="odds-title-item two-line-end">1x2</div>
                        </div>
                    </div>
                    <div class="odds-title text-center head half-game fwrap-wrap two-line-bet">
                        <div class="odds-title-head"><span class="title-small"> Hiệp 1 </span>
                        </div>
                        <div class="d-flex odds-title-items">
                            <div class="odds-title-item two-line-start">Cược Chấp</div>
                            <div class="odds-title-item two-line-start">Tài Xỉu</div>
                            <div class="odds-title-item two-line-end">1x2</div>
                        </div>
                    </div>
                </div>
                
                <div class="d-flex bet-match-list wrap">   
                    <?php $mobileData = '';?>              
                    <?php foreach ($dataMatch as $item): ;?>
                        <?php 

                            $matchitem = $item['matchData'];
                            $odd = $item['odds'];
                         
                            $MatchState = $matchitem['MatchState'];
  
                            $statusMatch = '';
                            $classMatch = '';
                            if((int)$MatchState < 4 && (int)$MatchState > 0){
                                $statusMatch = 'Live';
                                $classMatch = 'live-status';
                            }elseif( (int)$MatchState === 0 ){
                                $statusMatch = 'Sớm';
                            }
                            
                            
                            $timeRun = '';
                            $classMatchTime = '';
                            $date = new DateTime('now', new DateTimeZone('Asia/Ho_Chi_Minh'));
                            $timeNow = $date->getTimestamp();

                            
                            $matchTime = isset($matchitem['matchTime2']) && $matchitem['matchTime2'] ? $matchitem['matchTime2'] : $matchitem['matchTime'];
                            $timestamp = strtotime($matchTime);
                            
                            
                            if((int)$MatchState == 1 || (int)$MatchState == 3 ){
                                $seconds = (int)$timeNow - (int)$timestamp;
                                $timeRun = ceil($seconds / 60);
                                
                                if ((int)$MatchState == 3) {
                                    $timeRun = ceil($seconds / 60) + 45;
                                    if ($timeRun > 90) {
                                        $timeRun = '90+' . ($timeRun - 90);
                                    }
                                }
                                $timeRun = $timeRun . "<span class=\"blinking\">'</span>";
                                $classMatchTime = 'running';

                            }elseif((int)$MatchState == 2){
                                $timeRun = 'HT';
                                $classMatchTime = 'running';
                            }else{
                                $timeRun = renderTimeTab2($matchTime);
                            }
                            
                            $scoreHome = $matchitem['HomeScore'] !='' ? $matchitem['HomeScore'] : '-';
                            $scoreAway = $matchitem['GuestScore'] !='' ? $matchitem['GuestScore'] : '-';
                            if((int)$MatchState === 0){
                                $scoreHome = '-';
                                $scoreAway = '-';
                            }
                            $logoHome = DB_DOMAIN.$matchitem['HomeImage'];
                            $nameHome = $matchitem['homeTeam'];
                            
                            $logoAway = DB_DOMAIN.$matchitem['GuestImage'];
                            $nameAway = $matchitem['guestTeam'];
                            
                            
                            $hdpHome = $odd['HDP']['UpOdds_Real'] != '' ? $odd['HDP']['UpOdds_Real'] : '';
                            $hdp = $odd['HDP']['Goal_Real'] != '' ? $odd['HDP']['Goal_Real'] : '';
                            $hdpAway = $odd['HDP']['DownOdds_Real'] != '' ? $odd['HDP']['DownOdds_Real'] : '';
                            
                            $txOdd = $odd['ou']['Goal'] != '' ? $odd['ou']['Goal'] : '';
                            $txOddOver = $odd['ou']['UpOdds'] != '' ? $odd['ou']['UpOdds'] : '';
                            $txOddUnder = $odd['ou']['DownOdds'] != '' ? $odd['ou']['DownOdds'] : '';
                            
                            $euHome = $odd['1x2']['UpOdds_Real'] != '' ? $odd['1x2']['UpOdds_Real'] : '';
                            $euDraw = $odd['1x2']['Goal_Real'] != '' ? $odd['1x2']['Goal_Real'] : '';
                            $euAway = $odd['1x2']['DownOdds_Real'] != '' ? $odd['1x2']['DownOdds_Real'] : '';
                            
                            
                            
                            
                            
                            $hdpHomeHt = $odd['HDPHalf']['UpOdds_Real'] != '' ? $odd['HDPHalf']['UpOdds_Real'] : '';
                            $hdpHt = $odd['HDPHalf']['Goal_Real'] != '' ? $odd['HDPHalf']['Goal_Real'] : '';
                            $hdpAwayHt = $odd['HDPHalf']['DownOdds_Real'] != '' ? $odd['HDPHalf']['DownOdds_Real'] : '';
                            
                            $txOddHt = $odd['OUHalf']['Goal'] != '' ? $odd['OUHalf']['Goal'] : '';
                            $txOddOverHt = $odd['ou']['UpOdds'] != '' ? $odd['OUHalf']['UpOdds'] : '';
                            $txOddUnderHt = $odd['OUHalf']['DownOdds'] != '' ? $odd['OUHalf']['DownOdds'] : '';
                            
                            $euHomeHt = $odd['1x2Half']['UpOdds_Real'] != '' ? $odd['1x2Half']['UpOdds_Real'] : '';
                            $euDrawHt = $odd['1x2Half']['Goal_Real'] != '' ? $odd['1x2Half']['Goal_Real'] : '';
                            $euAwayHt = $odd['1x2Half']['DownOdds_Real'] != '' ? $odd['1x2Half']['DownOdds_Real'] : '';
                            
                            
                            
                            
                        ;?>
                        <div class="bet-match-item-repeated match_2708230">
                            <div class="bet-match-item d-flex live-match">
                                <div class="bet-match-item-info">
                                    <div class="d-flex bet-match-item-child bdbt-gr">
                                        <div class="w-60 d-flex ai-c jc-c wrap gap-4 align-content-center text-center">
                                            <div class="w-100 <?php echo $classMatch;?>">
                                                <?php echo $statusMatch;?>
                                            </div>
                                            <div class="w-100 match-during-time matchtime_2708228 <?php echo $classMatchTime;?>">
                                                <?php echo $timeRun;?>
                                            </div>
                                        </div>
                                        
                                        <div class="w-50 text-center score-lst d-flex ai-c jc-c wrap gap-12 align-content-center">
                                            <div class="home-score w-100 score hscrore_2641529"><?php echo $scoreHome;?></div>
                                            <div class="home-score w-100 score gscrore_2641529"><?php echo $scoreAway;?></div>
                                        </div>
                                        
                                        <div class="info-teams d-flex ai-c jc-c wrap gap-12 align-content-center a-two-bet">
                                            <div class="home-team team-name w-100">
                                                <img class="t-logo" src="<?php echo $logoHome;?>" alt="<?php echo $nameHome;?>">
                                                <span class="t-name"><?php echo $nameHome;?></span>
                                            </div>
                                            <div class="guest-team team-name w-100">
                                                <img class="t-logo" src="<?php echo $logoAway;?>" alt="<?php echo $nameAway;?>">
                                                <span class="t-name"><?php echo $nameAway;?></span>
                                            </div>
                                        </div>
                                        
                                        <div class="odds-title two-line-bet item-ods text-center d-flex">
                                            <div class="odds-title-item d-flex align-content-center jc-c two-line-start">
                                                <div class="odds normal d-flex justify-content-between">
                                                    <span class="grey"></span>
                                                    <span><strong><?php echo $hdpHome;?></strong></span>
                                                </div>
                                                <div class="odds normal d-flex justify-content-between">
                                                    <span class="grey"><?php echo $hdp;?></span>
                                                    <span><strong><?php echo $hdpAway;?></strong></span>
                                                </div>
                                                <div class="odds normal d-flex justify-content-between opacity-0">
                                                    <span></span>
                                                    <span><strong></strong></span>
                                                </div>
                                            </div>
                                            <div class="odds-title-item d-flex align-content-center jc-c two-line-start">
                                                <div class="odds normal d-flex justify-content-between">
                                                    <span class="grey"><?php echo $txOdd;?></span>
                                                    <span>O</span>
                                                    <span><strong><?php echo $txOddUnder;?></strong></span>
                                                </div>
                                                <div class="odds normal d-flex justify-content-between">
                                                    <span>&nbsp;</span>
                                                    <span>U</span>
                                                    <span><strong><?php echo $txOddOver;?></strong></span>
                                                </div>
                                                <div class="odds normal d-flex justify-content-between opacity-0">
                                                    <span>0.86</span>
                                                    <span><strong>-0.99</strong></span>
                                                </div>
                                            </div>
                                            <div class="odds-title-item d-flex align-content-center jc-c two-line-end">
                                                <div class="odds normal">
                                                    <span><strong><?php echo $euHome;?></strong></span>
                                                </div>
                                                <div class="odds normal">
                                                    <span><strong><?php echo $euDraw;?></strong></span>
                                                </div>
                                                <div class="odds normal">
                                                    <span><strong><?php echo $euAway;?></strong></span>
                                                </div>
                                            </div>
                                        </div>
                                        
                                        
                                        <div class="odds-title two-line-bet item-ods text-center d-flex">
                                            <div class="odds-title-item d-flex align-content-center jc-c two-line-start">
                                                <div class="odds normal d-flex justify-content-between">
                                                    <span class="grey"></span>
                                                    <span><strong><?php echo $hdpHomeHt;?></strong></span>
                                                </div>
                                                <div class="odds normal d-flex justify-content-between">
                                                    <span class="grey"><?php echo $hdpHt;?></span>
                                                    <span><strong><?php echo $hdpAwayHt;?></strong></span>
                                                </div>
                                                <div class="odds normal d-flex justify-content-between opacity-0">
                                                    <span></span>
                                                    <span><strong></strong></span>
                                                </div>
                                            </div>
                                            <div class="odds-title-item d-flex align-content-center jc-c two-line-start">
                                                <div class="odds normal d-flex justify-content-between">
                                                    <span class="grey"><?php echo $txOddHt;?></span>
                                                    <span><?php echo $txOddOverHt;?></span>
                                                    <span><strong><?php echo $txOddUnderHt;?></strong></span>
                                                </div>
                                                <div class="odds normal d-flex justify-content-between">
                                                    <span>&nbsp;</span>
                                                    <span>U</span>
                                                    <span><strong>1</strong></span>
                                                </div>
                                                <div class="odds normal d-flex justify-content-between opacity-0">
                                                    <span>0.86</span>
                                                    <span><strong>-0.99</strong></span>
                                                </div>
                                            </div>
                                            <div class="odds-title-item d-flex align-content-center jc-c two-line-end">
                                                <div class="odds normal">
                                                    <span><strong><?php echo $euHomeHt;?></strong></span>
                                                </div>
                                                <div class="odds normal">
                                                    <span><strong><?php echo $euDrawHt;?></strong></span>
                                                </div>
                                                <div class="odds normal">
                                                    <span><strong><?php echo $euAwayHt;?></strong></span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="d-flex ai-c j-sb h-30"><div class="action-list d-flex ai-c"><span title="Chi tiết"><img alt="" class="cursor icon-14 icon-change-color" src="<?= IMGS3_PLUGINS ?>/6in1_iframe/assets/svg/team-icon.svg"></span><span title="Phân tích"><img alt="" class="cursor icon-16 icon-change-color" src="<?= IMGS3_PLUGINS ?>/6in1_iframe/assets/svg/data-analist.svg"></span><span title="Trực tiếp"><img alt="" class="cursor icon-16" src="<?= IMGS3_PLUGINS ?>/6in1_iframe/assets/svg/live.svg"></span></div><div class="toggle-bet d-flex ai-c j-sb cursor"><div class=""><span>7</span> kèo </div><div class="toggle-icon d-flex ai-c"><img class="cursor icon-16" src="<?= IMGS3_PLUGINS ?>/6in1_iframe/assets/svg/down.svg"></div></div></div>
                                </div>
                            </div>
                        </div>
                    <?php
                        $betMatchCount++;
                        if ($betMatchCount == $maxBetCount) {
                            break; 
                        }
                    ?>
                    <?php endforeach;?>
                </div>
            </div>

            <?php
                if ($betMatchCount == $maxBetCount) {
                    break; 
                }
            ?>
            <?php endforeach;?>
        </div>
    <?php 
}

function renderTimeTab2($time){
    $datetime = $time;
    $formattedTime = date('H:i', strtotime($datetime));
    return $formattedTime;
}