<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>{{ env('APP_NAME') }}</title>
        
        <meta name="description" content="{{ env('APP_DESKRIPSI') }}">

        <!-- Fonts -->
        <link rel="preconnect" href="https://fonts.bunny.net">
        <link href="https://fonts.bunny.net/css?family=figtree:400,600&display=swap" rel="stylesheet" />
        <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
        <link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.3.0/flowbite.min.css" rel="stylesheet" />
        <script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.3.0/flowbite.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/lazysizes/5.2.2/lazysizes.min.js" async=""></script>

        <meta name="google-site-verification" content="{{ env('APP_GOOGLE') }}" />

        <!-- Styles -->
        <style>
            /* ! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com */*,::after,::before{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}::after,::before{--tw-content:''}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:Figtree, sans-serif;font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*, ::before, ::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.relative{position:relative}.mx-auto{margin-left:auto;margin-right:auto}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.ml-4{margin-left:1rem}.mt-16{margin-top:4rem}.mt-6{margin-top:1.5rem}.mt-4{margin-top:1rem}.-mt-px{margin-top:-1px}.mr-1{margin-right:0.25rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-16{height:4rem}.h-7{height:1.75rem}.h-6{height:1.5rem}.h-5{height:1.25rem}.min-h-screen{min-height:100vh}.w-auto{width:auto}.w-16{width:4rem}.w-7{width:1.75rem}.w-6{width:1.5rem}.w-5{width:1.25rem}.max-w-7xl{max-width:80rem}.shrink-0{flex-shrink:0}.scale-100{--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr))}.items-center{align-items:center}.justify-center{justify-content:center}.gap-6{gap:1.5rem}.gap-4{gap:1rem}.self-center{align-self:center}.rounded-lg{border-radius:0.5rem}.rounded-full{border-radius:9999px}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.bg-dots-darker{background-image:url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.22676 0C1.91374 0 2.45351 0.539773 2.45351 1.22676C2.45351 1.91374 1.91374 2.45351 1.22676 2.45351C0.539773 2.45351 0 1.91374 0 1.22676C0 0.539773 0.539773 0 1.22676 0Z' fill='rgba(0,0,0,0.07)'/%3E%3C/svg%3E")}.from-gray-700\/50{--tw-gradient-from:rgb(55 65 81 / 0.5);--tw-gradient-to:rgb(55 65 81 / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.via-transparent{--tw-gradient-to:rgb(0 0 0 / 0);--tw-gradient-stops:var(--tw-gradient-from), transparent, var(--tw-gradient-to)}.bg-center{background-position:center}.stroke-red-500{stroke:#ef4444}.stroke-gray-400{stroke:#9ca3af}.p-6{padding:1.5rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.text-center{text-align:center}.text-right{text-align:right}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.font-semibold{font-weight:600}.leading-relaxed{line-height:1.625}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity))}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.shadow-gray-500\/20{--tw-shadow-color:rgb(107 114 128 / 0.2);--tw-shadow:var(--tw-shadow-colored)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.selection\:bg-red-500 *::selection{--tw-bg-opacity:1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.selection\:text-white *::selection{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.selection\:bg-red-500::selection{--tw-bg-opacity:1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.selection\:text-white::selection{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\:rounded-sm:focus{border-radius:0.125rem}.focus\:outline:focus{outline-style:solid}.focus\:outline-2:focus{outline-width:2px}.focus\:outline-red-500:focus{outline-color:#ef4444}.group:hover .group-hover\:stroke-gray-600{stroke:#4b5563}.z-10{z-index: 10}@media (prefers-reduced-motion: no-preference){.motion-safe\:hover\:scale-\[1\.01\]:hover{--tw-scale-x:1.01;--tw-scale-y:1.01;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}@media (prefers-color-scheme: dark){.dark\:bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:bg-gray-800\/50{background-color:rgb(31 41 55 / 0.5)}.dark\:bg-red-800\/20{background-color:rgb(153 27 27 / 0.2)}.dark\:bg-dots-lighter{background-image:url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.22676 0C1.91374 0 2.45351 0.539773 2.45351 1.22676C2.45351 1.91374 1.91374 2.45351 1.22676 2.45351C0.539773 2.45351 0 1.91374 0 1.22676C0 0.539773 0.539773 0 1.22676 0Z' fill='rgba(255,255,255,0.07)'/%3E%3C/svg%3E")}.dark\:bg-gradient-to-bl{background-image:linear-gradient(to bottom left, var(--tw-gradient-stops))}.dark\:stroke-gray-600{stroke:#4b5563}.dark\:text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.dark\:ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.dark\:ring-inset{--tw-ring-inset:inset}.dark\:ring-white\/5{--tw-ring-color:rgb(255 255 255 / 0.05)}.dark\:hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:hover .dark\:group-hover\:stroke-gray-400{stroke:#9ca3af}}@media (min-width: 640px){.sm\:fixed{position:fixed}.sm\:top-0{top:0px}.sm\:right-0{right:0px}.sm\:ml-0{margin-left:0px}.sm\:flex{display:flex}.sm\:items-center{align-items:center}.sm\:justify-center{justify-content:center}.sm\:justify-between{justify-content:space-between}.sm\:text-left{text-align:left}.sm\:text-right{text-align:right}}@media (min-width: 768px){.md\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media (min-width: 1024px){.lg\:gap-8{gap:2rem}.lg\:p-8{padding:2rem}}
        </style>
        <style>
            .slider {
                overflow: hidden;
                width: 100%; /* Lebar slider memenuhi layar */
            }
            .slider .carousel-container {
                display: flex;
                transition: transform 0.5s ease-in-out; /* Transisi yang halus */
            }
            .slider .carousel-item {
                min-width: 100%; /* Lebar item-item memenuhi layar */
                transition: opacity 1s ease-in-out;
            }

            .progress-bar > span {
                height            : 100%;
                display           : block;
                overflow          : hidden;
                position          : relative;
                transition        : 500ms linear;
                -webkit-transition: 500ms linear;
            }

            .progress-bar > span:after {
                content          : "";
                top              : 0;
                left             : 0;
                right            : 0;
                bottom           : 0;
                z-index          : 1;
                position         : absolute;
                background-size  : 50px 50px;
                overflow         : hidden;
                animation        : stripes-move 1s linear infinite;
                -webkit-animation: stripes-move 1s linear infinite;
                background-image : -webkit-linear-gradient(135deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
                background-image : linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
            }

            @-webkit-keyframes stripes-move {
                0% {
                    background-position: 0 0;
                }
                100% {
                    background-position: 50px 50px;
                }
            }

            @keyframes stripes-move {
                0% {
                    background-position: 0 0;
                }
                100% {
                    background-position: 50px 50px;
                }
            }

            .progress-bar > span:after {
                -webkit-animation: stripes-move 2s linear infinite;
                animation        : stripes-move 2s linear infinite;
            }

            body {
                background-image: url('{{ env('APP_URL_BACKGROUND') }}');
                background-size: cover;
                background-repeat: no-repeat;
                background-attachment: fixed;
                background-position: center center;
                min-height: 100vh;
                margin: 0;
                padding: 0;
                box-sizing: border-box;
                position: relative;
                z-index: 0; /* Ensure the body is the base layer */
            }

            body::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.700); /* Black overlay with 25% opacity */
                z-index: -1; /* Ensure the overlay is behind the content */
            }

            .header-small {
                height: 75px;
                background:rgba(22, 22, 22, 0.997);
            }
            .logo-small {
                width: 9rem; /* Adjust as needed */
            }
            .search-visible {
                transform: translateY(0);
            }
            .search-hidden {
                display: none;
                transform: translateY(-20px);
            }
            .transition-transform {
                transition: transform 0.3s ease, opacity 0.3s ease;
            }
        </style>
    </head>
    <body class="antialiased">
        <div class="relative min-h-screen bg-dots-darker bg-center dark:bg-dots-lighter dark:bg-gray-900 selection:bg-red-500 selection:text-white">
            <div class="w-full">
                <header id="header" class="sticky top-0 z-50 transition-all duration-300">
                    <div id="header-content" class="flex justify-center py-4 transition-all duration-300">
                        <div id="logo" class="Logo mb-6 w-36 lg:w-96 transition-all duration-300">
                            <a href="{{ env('APP_URL_WEBSITE') }}">
                                <img src="{!! $website->url_logo !!}" alt="Logo" class="logo w-full flex items-center">
                            </a>
                        </div>
                        <div id="search" class="search-hidden flex-grow items-center justify-end transition-transform -mt-4 h-10 sm:h-4">
                            <input type="text" class="border border-gray-300 rounded-lg mr-1 w-[150px] lg:w-48" placeholder="Search...">
                        </div>                                          
                    </div>
                </header>


                <div class="flex justify-center mx-auto flex-col px-6 lg:p-8">
                    <!-- Slider di atas -->
                    <div class="slider w-full mb-2">
                        <div class="relative overflow-hidden slider-container">
                            <div id="carousel" class="flex transition-transform duration-500 ease-in-out carousel-container">
                                <div class="carousel-item">
                                    <img src="https://i.postimg.cc/sXQMfwKD/SLOT-GACOR-2024-1.png" alt="Slide 1" class="w-full mx-auto" loading="lazyload">
                                </div>
                                <div class="carousel-item">
                                    <img src="https://i.postimg.cc/HxqVrXP0/SLOT-GACOR-2024-2.png" alt="Slide 2" class="w-full mx-auto" loading="lazyload">
                                </div>
                                <div class="carousel-item">
                                    <img src="https://i.postimg.cc/XN5rT1ps/SLOT-GACOR-2024-3-copy.png" alt="Slide 3" class="w-full mx-auto" loading="lazyload">
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Grid di bawah -->
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4 w-full max-w-7xl mx-auto relative lg:p-8">
                        
                        <!-- Main content -->
                        <div class="flex justify-center items-center">
                            <img src="https://i.postimg.cc/1R8cpprx/asdsad.png" alt="GIF" class="w-3/5 h-auto">
                        </div>
                        
                        <div class="flex justify-center items-center">
                            <img src="https://i.postimg.cc/Fzd9KSDy/1.png" alt="GIF" class="w-3/5 h-auto">
                        </div>
                    </div>

                    <div class="grid grid-cols-1 gap-4 w-full max-w-7xl mx-auto mt-4">
                        <div class="p-4 col-span-1 overflow-x-auto whitespace-nowrap">
                            <!-- Daftar Slide -->
                            <ul class="inline-flex space-x-4">
                                @foreach($provider as $item)
                                    <li class="bg-gray-900 rounded-xl w-24 mx-auto border {{ env("BORDER_PROVIDER_LISTGAME") }}">
                                        <div class="relative">
                                            <!-- Logo provider -->
                                            <a href="{{ route('provider.games', ['provider' => $item->name]) }}" class="relative z-20">
                                                <img src="{{ $item->url_logo_provider }}" alt="{{ $item->name }}" class="w-36 xl:w-48 mx-auto">
                                            </a>
                                        </div>
                                    </li>
                                @endforeach
                                <!-- Tambahkan lebih banyak item sesuai kebutuhan -->
                            </ul>
                        </div>
                    </div>                    
                </div>

                <div id="text-game-onfire" class="w-full max-w-7xl mx-auto mt-4 font-bold text-white text-xl xl:text-2xl px-6">
                    <h1>4 GAME ONFIRE {{ env("BRANDS") }}</h1>
                </div>
                <div id="gameListOnFire" class="grid grid-cols-2 md:grid-cols-6 xl:grid-cols-6 gap-4 w-full max-w-7xl mx-auto mt-2 px-6">
                    <!-- Repeat the below div for each game -->
                    @foreach($games as $game)
                        @if($game->pivot_games[0]->on_fire == 1)
                            <div class="bg-gray-900 rounded-lg shadow-md overflow-hidden text-white border-2 {{ env("BORDER_PROVIDER_LISTGAME") }} relative">
                                <!-- Api-Gif.gif floating above the provider logo -->
                                <img src="{{ $game->image_url }}" alt="{{ $game->name }}" class="w-full lazy" loading="lazyload">
                                    <img class="absolute top-0 right-0 w-12" src="{{ asset('images/Api-Gif.gif') }}" alt="" style="margin-top:-5px; margin-right:-5px">
                                <div class="p-1 text-center">
                                    <h2 class="text-xs xl:text-2xl font-semibold">{{ $game->name }}</h2>
                                    <p class="mt-1 text-xs xl:text-lg text-gray-300">Jam Gacor 00:00 - 24:00</p>
                                    <button id="lihatPolaButton{{ $game->id }}" data-modal-target="modal-{{ $game->id }}" data-modal-toggle="modal-{{ $game->id }}" class="lihat-pola-button mt-2 bg-green-500 hover:bg-green-600 text-white font-bold py-1 px-1 text-xs xl:text-md rounded w-full">LIHAT POLA</button>
                                    <div class="progress-bar mt-2 rounded bg-gray-800">
                                        <span class="rounded 
                                            @if($game->pivot_games[0]->percentage >= 80) bg-green-500 
                                            @elseif($game->pivot_games[0]->percentage >= 60) bg-yellow-500 
                                            @else bg-red-500 
                                            @endif" 
                                            style="width: {{ $game->pivot_games[0]->percentage }}%">
                                            {{ rtrim(rtrim($game->pivot_games[0]->percentage, '0'), '.') }}%
                                        </span>
                                    </div>
                                </div>
                            </div>
                
                            <!-- Modal -->
                            <div id="modal-{{ $game->id }}" tabindex="-1" aria-hidden="true" class="fixed top-0 left-0 right-0 z-50 hidden w-full p-4 overflow-x-hidden overflow-y-auto md:inset-0 h-[calc(100%-1rem)] max-h-full">
                                <div class="relative w-full max-w-2xl max-h-full">
                                    <div class="relative bg-gray-800 rounded-lg shadow dark:bg-gray-700">
                                        <div class="flex items-start justify-between p-4 border-b rounded-t">
                                            <h3 class="text-xl font-semibold text-white">
                                                Tips Bermain {{ $game->name }} ({{ round($game->pivot_games[0]->percentage ?? 0) }}%)
                                            </h3>
                                            <button type="button" class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white" data-modal-hide="modal-{{ $game->id }}">
                                                <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg>
                                            </button>
                                        </div>
                                        <div class="p-6 text-white">
                                            @if($game->pivot_games[0]->percentage > 60)
                                            <header class="pb-4 border-b border-gray-300">
                                                <div class="flex justify-between items-center">
                                                    <span>Provider</span>
                                                    <span>{{ $game->provider->name }}</span>
                                                </div>
                                                <div class="flex justify-between items-center">
                                                    <span>Stake Bet</span>
                                                    <span>800 - 6K</span>
                                                </div>
                                            </header>
                                            <?php
                                                $ranM5 = mt_rand(3, 15);
                                                $ranM20 = mt_rand(20, 30);
                                                $ranM40 = mt_rand(35, 50);

                                                $pola = [
                                                    " ✅ | ❌ | ✅ ",
                                                    " ❌ | ✅ | ✅ ",
                                                    " ❌ | ❌ | ✅ ",
                                                    " ✅ | ❌ | ❌ ",
                                                    " ❌ | ✅ | ❌ ",
                                                    " ❌ | ❌ | ❌ "
                                                ];

                                                $polaAcak1 = $pola[array_rand($pola)];
                                                $polaAcak2 = $pola[array_rand($pola)];
                                                $polaAcak3 = $pola[array_rand($pola)];
                                                $polaAcak4 = $pola[array_rand($pola)];
                                                $polaAcak5 = $pola[array_rand($pola)];
                                                $polaAcak6 = $pola[array_rand($pola)];

                                                $modes = ['Auto', 'Manual'];
                                            ?>
                                                <p class="text-base leading-relaxed mt-2">
                                                    <span class="font-bold">Step 1 : Panaskan Mesin Slot</span> <br>
                                                    <span>(Rekomendasi Bet : 800-1400)</span><br>
                                                    <ul class="mt-2 ml-2">
                                                        <li class="flex justify-between items-center">
                                                            <span>Step 1 : Spin {{ $ranM5 }}x | {{ $polaAcak1 }} | {{ $modes[array_rand($modes)] }}</span>
                                                        </li>
                                                        <li class="flex justify-between items-center mt-2">
                                                            <span>Step 2 : Spin {{ $ranM20 }}x | {{ $polaAcak2 }} | {{ $modes[array_rand($modes)] }}</span>
                                                        </li>
                                                        <li class="flex justify-between items-center mt-2">
                                                            <span>Step 3 : Spin {{ $ranM40 }}x | {{ $polaAcak3 }} | {{ $modes[array_rand($modes)] }}</span>
                                                        </li>
                                                    </ul>                                           
                                                </p>
                                                <br>

                                                <p class="text-base leading-relaxed mt-4">
                                                    <span class="font-bold">Step 2 : Naikkan Bet</span><br>
                                                    <span>(Rekomendasi Bet : 1400-2000)</span><br>
                                                    <ul class="mt-2 ml-2">
                                                        <li class="flex justify-between items-center">
                                                            <span>Step 1 : Spin {{ $ranM5 }}x | {{ $polaAcak4 }} | {{ $modes[array_rand($modes)] }}</span>
                                                        </li>
                                                        <li class="flex justify-between items-center mt-2">
                                                            <span>Step 2 : Spin {{ $ranM20 }}x | {{ $polaAcak5 }} | {{ $modes[array_rand($modes)] }}</span>
                                                        </li>
                                                        <li class="flex justify-between items-center mt-2">
                                                            <span>Step 3 : Spin {{ $ranM20 }}x | {{ $polaAcak6 }} | {{ $modes[array_rand($modes)] }}</span>
                                                        </li>
                                                    </ul>                                           
                                                </p>
                                            @else
                                                <img src="{{ asset('images/no-pick.gif') }}" alt="Tidak Boleh Dipilih" class="w-36 xl:w-48 mx-auto">
                                            @endif
                                            <br>
                                            @if($game->pivot_games[0]->percentage > 60)
                                                <p class="text-base leading-relaxed mt-4 text-center border-t rounded-t pt-4">
                                                    <span class="font-bold">JIKA TIDAK ADA SCATTER, SETELAH COBA STEP 1 & 2 BISA BUY SCATTER 1X</span>                           
                                                </p>
                                            @else
                                                <p class="text-base leading-relaxed mt-4 text-center border-t rounded-t pt-4">
                                                    <span class="font-bold">SILAHKAN PILIH GAME LAIN!</span>                           
                                                </p>
                                            @endif
                                        </div>
                                        <div class="p-4 {{ ($game->pivot_games[0]->percentage > 60) ? 'bg-green-500' : 'bg-red-500' }} text-white text-center">
                                            NOTE : Jika Ada Kenaikan Jangan Lupa Di WD Bosku. Jika Pola Tersebut Tidak Ada Naik, Bisa Coba Permainan Yang Lain.
                                        </div>
                                        <div class="flex justify-end p-4 border-t border-gray-200 rounded-b dark:border-gray-600 clearfix">
                                            <div class="float-right space-x-2">
                                                <a href="{{ env('APP_URL_WEBSITE') }}" class="text-white bg-yellow-500 hover:bg-yellow-600 font-medium rounded-lg text-md px-5 py-2.5 text-center">Coba Pola</a>
                                                <a href="{{ env('APP_URL_WEBSITE') }}" class="text-white bg-green-500 hover:bg-green-600 font-medium rounded-lg text-md px-5 py-2.5 text-center">Mainkan</a>
                                            </div>
                                        </div>                                                                                                                                 
                                    </div>
                                </div>
                            </div>
                        @endif
                    @endforeach
                    <!-- End of game div -->
                </div>

                <div id="text-game" class="w-full max-w-7xl mx-auto mt-8 font-bold text-white text-xl xl:text-2xl px-6">
                    <h1>LIST GAME {{ env("BRANDS") }}</h1>
                </div>
                <!-- List Game Section -->
                <div id="gameList" class="grid grid-cols-2 md:grid-cols-6 xl:grid-cols-6 gap-4 w-full max-w-7xl mx-auto mt-2 px-6">
                    <!-- Repeat the below div for each game -->
                    @foreach($games as $game)
                        <div class="bg-gray-900 rounded-lg shadow-md overflow-hidden text-white border-2 {{ env("BORDER_PROVIDER_LISTGAME") }}">
                            <img src="{{ $game->image_url }}" alt="{{ $game->name }}" class="w-full" loading="lazyload">
                            <div class="p-1 text-center">
                                <h2 class="text-xs xl:text-2xl font-semibold">{{ $game->name }}</h2>
                                <p class="mt-1 text-xs xl:text-lg text-gray-300">Jam Gacor 00:00 - 24:00</p>
                                <button id="lihatPolaButton{{ $game->id }}" data-modal-target="modal-{{ $game->id }}" data-modal-toggle="modal-{{ $game->id }}" class="lihat-pola-button mt-2 bg-green-500 hover:bg-green-600 text-white font-bold py-1 px-1 text-xs xl:text-md rounded w-full">LIHAT POLA</button>
                                <div class="progress-bar mt-2 rounded bg-gray-800">
                                    <span class="rounded 
                                        @if($game->pivot_games[0]->percentage >= 80) bg-green-500 
                                        @elseif($game->pivot_games[0]->percentage >= 60) bg-yellow-500 
                                        @else bg-red-500 
                                        @endif" 
                                        style="width: {{ $game->pivot_games[0]->percentage }}%">
                                        {{ rtrim(rtrim($game->pivot_games[0]->percentage, '0'), '.') }}%
                                    </span>
                                </div>
                            </div>
                        </div>

                        <!-- Modal -->
                        <div id="modal-{{ $game->id }}" tabindex="-1" aria-hidden="true" class="fixed top-0 left-0 right-0 z-50 hidden w-full p-4 overflow-x-hidden overflow-y-auto md:inset-0 h-[calc(100%-1rem)] max-h-full">
                            <div class="relative w-full max-w-2xl max-h-full">
                                <div class="relative bg-gray-800 rounded-lg shadow dark:bg-gray-700">
                                    <div class="flex items-start justify-between p-4 border-b rounded-t">
                                        <h3 class="text-xl font-semibold text-white">
                                            Tips Bermain {{ $game->name }} ({{ round($game->pivot_games[0]->percentage ?? 0) }}%)
                                        </h3>
                                        <button type="button" class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white" data-modal-hide="modal-{{ $game->id }}">
                                            <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg>
                                        </button>
                                    </div>
                                    <div class="p-6 text-white">
                                        @if($game->pivot_games[0]->percentage > 60)
                                        <header class="pb-4 border-b border-gray-300">
                                            <div class="flex justify-between items-center">
                                                <span>Provider</span>
                                                <span>{{ $game->provider->name }}</span>
                                            </div>
                                            <div class="flex justify-between items-center">
                                                <span>Stake Bet</span>
                                                <span>800 - 1400</span>
                                            </div>
                                        </header>
                                        <?php
                                            $ranM5 = mt_rand(3, 15);
                                            $ranM20 = mt_rand(20, 30);
                                            $ranM40 = mt_rand(35, 50);

                                            $pola = [
                                                " ✅ | ❌ | ✅ ",
                                                " ❌ | ✅ | ✅ ",
                                                " ❌ | ❌ | ✅ ",
                                                " ✅ | ❌ | ❌ ",
                                                " ❌ | ✅ | ❌ ",
                                                " ❌ | ❌ | ❌ "
                                            ];

                                            $polaAcak1 = $pola[array_rand($pola)];
                                            $polaAcak2 = $pola[array_rand($pola)];
                                            $polaAcak3 = $pola[array_rand($pola)];
                                            $polaAcak4 = $pola[array_rand($pola)];
                                            $polaAcak5 = $pola[array_rand($pola)];
                                            $polaAcak6 = $pola[array_rand($pola)];

                                            $modes = ['Auto', 'Manual'];
                                        ?>
                                            <p class="text-base leading-relaxed mt-2">
                                                <span class="font-bold">Step 1 : Panaskan Mesin Slot</span> <br>
                                                <span>(Rekomendasi Bet : 1400-2000)</span>
                                                <ul class="mt-2 ml-2">
                                                    <li class="flex justify-between items-center">
                                                        <span>Step 1 : Spin {{ $ranM5 }}x | {{ $polaAcak1 }} | {{ $modes[array_rand($modes)] }}</span>
                                                    </li>
                                                    <li class="flex justify-between items-center mt-2">
                                                        <span>Step 2 : Spin {{ $ranM20 }}x | {{ $polaAcak2 }} | {{ $modes[array_rand($modes)] }}</span>
                                                    </li>
                                                    <li class="flex justify-between items-center mt-2">
                                                        <span>Step 3 : Spin {{ $ranM40 }}x | {{ $polaAcak3 }} | {{ $modes[array_rand($modes)] }}</span>
                                                    </li>
                                                </ul>                                           
                                            </p>
                                            <br>

                                            <p class="text-base leading-relaxed mt-4">
                                                <span class="font-bold">Step 2 : Naikkan Bet</span><br>
                                                <span>(Rekomendasi Bet : 800-1400)</span>
                                                <ul class="mt-2 ml-2">
                                                    <li class="flex justify-between items-center">
                                                        <span>Step 1 : Spin {{ $ranM5 }}x | {{ $polaAcak4 }} | {{ $modes[array_rand($modes)] }}</span>
                                                    </li>
                                                    <li class="flex justify-between items-center mt-2">
                                                        <span>Step 2 : Spin {{ $ranM20 }}x | {{ $polaAcak5 }} | {{ $modes[array_rand($modes)] }}</span>
                                                    </li>
                                                    <li class="flex justify-between items-center mt-2">
                                                        <span>Step 3 : Spin {{ $ranM20 }}x | {{ $polaAcak6 }} | {{ $modes[array_rand($modes)] }}</span>
                                                    </li>
                                                </ul>                                           
                                            </p>
                                        @else
                                            <img src="{{ asset('images/no-pick.gif') }}" alt="Tidak Boleh Dipilih" class="w-36 xl:w-48 mx-auto">
                                        @endif

                                        @if($game->pivot_games[0]->percentage > 60)
                                            <p class="text-base leading-relaxed mt-4 text-center border-t rounded-t pt-4">
                                                <span class="font-bold">JIKA ADA SCATTER, SETELAH COBA STEP 1 & 2 BISA BUY SCATTER 1X</span>                           
                                            </p>
                                        @else
                                            <p class="text-base leading-relaxed mt-4 text-center border-t rounded-t pt-4">
                                                <span class="font-bold">SILAHKAN PILIH GAME LAIN!</span>                           
                                            </p>
                                        @endif
                                    </div>
                                    <div class="p-4 {{ ($game->pivot_games[0]->percentage > 60) ? 'bg-green-500' : 'bg-red-500' }} text-white text-center">
                                        NOTE : Jika Ada Kenaikan Jangan Lupa Di WD Bosku. Jika Pola Tersebut Tidak Ada Naik, Bisa Coba Permainan Yang Lain.
                                    </div>
                                    <div class="flex justify-end p-4 border-t border-gray-200 rounded-b dark:border-gray-600 clearfix">
                                        <div class="float-right space-x-2">
                                            <a href="{{ env('APP_URL_WEBSITE') }}" class="text-white bg-yellow-500 hover:bg-yellow-600 font-medium rounded-lg text-md px-5 py-2.5 text-center">Coba Pola</a>
                                            <a href="{{ env('APP_URL_WEBSITE') }}" class="text-white bg-green-500 hover:bg-green-600 font-medium rounded-lg text-md px-5 py-2.5 text-center">Mainkan</a>
                                        </div>
                                    </div>                                                                                                                                 
                                </div>
                            </div>
                        </div>
                        @endforeach
                    <!-- End of game div -->
                </div>
            </div>
        </div>
        
        <script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
        <script>
            const carousel = document.getElementById('carousel');
            const slides = carousel.children;
            let currentIndex = 0;
            const maxIndex = slides.length - 1;
        
            setInterval(() => {
                currentIndex = currentIndex === maxIndex ? 0 : currentIndex + 1;
                const offset = -currentIndex * 100; // Slide width percentage
                carousel.style.transform = `translateX(${offset}%)`;
            }, 3000); // 3 detik per slide
        </script>

        <script>
            window.addEventListener('scroll', function() {
                var header = document.getElementById('header');
                var headerContent = document.getElementById('header-content');
                var logo = document.getElementById('logo');
                var search = document.getElementById('search');
                if (window.scrollY > 50) {
                    header.classList.add('header-small');
                    headerContent.classList.remove('justify-center');
                    headerContent.classList.add('justify-between', 'px-4');
                    logo.classList.add('logo-small');
                    search.classList.remove('hidden', 'search-hidden');
                    search.classList.add('search-visible');
                } else {
                    header.classList.remove('header-small');
                    headerContent.classList.add('justify-center');
                    headerContent.classList.remove('justify-between', 'px-4');
                    logo.classList.remove('logo-small');
                    search.classList.remove('search-visible');
                    search.classList.add('search-hidden');
                }
            });
        </script>
    </body>
</html>
