Edit File: b00c8e446cddbf3f34004b4f43f97fe0.php
<?php use App\Models\Page; use App\Models\Banner; use App\Models\Social; $page = Page::latest()->first(); $top_banners = Banner::where("is_top", true)->limit(4)->get(); $socials = Social::orderBy("order")->get(); ?> <!DOCTYPE html> <html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>"> <title><?php echo $__env->yieldContent("title"); ?></title> <!-- Fonts --> <link rel="preconnect" href="https://fonts.bunny.net"> <link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" /> <!-- preload image --> <link rel="preload" href="/storage/page/favicon.webp" as="image"> <link rel="preload" href="/storage/page/main-logo.webp" as="image"> <!-- Seo Configuration --> <link rel="canonical" href="<?php echo e(url()->current()); ?>"> <link rel="shortcut icon" href="/storage/page/favicon.webp" type="image/x-icon"> <?php echo $__env->yieldContent("headerseo"); ?> <!-- Scripts --> <?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css', 'resources/js/app.js']); ?> </head> <body class="font-sans text-gray-900 antialiased"> <div class="min-h-screen flex flex-col items-center pt-0 sm:pt-0 bg-gray-800 dark:bg-gray-900"> <?php $__split = function ($name, $params = []) { return [$name, $params]; }; [$__name, $__params] = $__split('offcanvas-navbar', ['page' => $page]); $__html = app('livewire')->mount($__name, $__params, 'lw-2141558445-0', $__slots ?? [], get_defined_vars()); echo $__html; unset($__html); unset($__name); unset($__params); unset($__split); if (isset($__slots)) unset($__slots); ?> <main class="w-full md:w-3/4 p-4 bg-gray-800 shadow-md overflow-hidden sm:rounded-lg text-white"> <div class="w-full flex-wrap flex justify-between lg:mb-8"> <?php $__currentLoopData = $top_banners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $top_banner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a href="<?php echo e($top_banner->link); ?>" target="_blank" class="lg:w-1/2 w-full"> <img src="<?php echo e($top_banner->image); ?>" class="w-full aspect-[800/100]"> </a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <div class="w-full flex flex-col gap-8"> <?php echo e($slot); ?> </div> </main> </div> <footer class="d-flex justify-content-center"> </footer> <div> <!-- Scroll to Top Button --> <button id="scrollToTopBtn" class="fixed bottom-5 right-5 z-50 bg-red-600 text-white px-4 py-2 rounded-full transition-opacity duration-300 opacity-0 pointer-events-none hover:bg-red-700 focus:outline-none" onclick="scrollToTop()"> <span class="flex items-center justify-center"> <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-6 h-6"> <path d="M16 11l-4-4-4 4"></path> </svg> </span> </button> </div> <footer class="bg-gray-800 text-white border-t-2 border-red-600"> <div class="flex gap-4 w-full lg:w-3/4 mx-auto p-8 justify-center flex-wrap"> <?php $__currentLoopData = $socials; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $social): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a class="flex text-lg font-bold items-center gap-4 hover:bg-gray-700 p-2 duration-150" href="<?php echo e($social->link); ?>" target="_blank"> <img src="<?php echo e($social->logo); ?>" alt="<?php echo e($social->name); ?> <?php echo e($page->name); ?>" class="w-12 rounded-2xl"> <div><?php echo e($social->display_text); ?></div> </a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </footer> <script> let scrollToTopBtn = document.getElementById("scrollToTopBtn"); window.onscroll = function() { if (document.body.scrollTop > 200 || document.documentElement.scrollTop > 200) { scrollToTopBtn.classList.remove('opacity-0'); scrollToTopBtn.classList.add('opacity-100'); setTimeout(() => { scrollToTopBtn.classList.remove('pointer-events-none'); }, 300); // Delay pointer events until fade-in is complete } else { scrollToTopBtn.classList.remove('opacity-100'); scrollToTopBtn.classList.add('opacity-0'); scrollToTopBtn.classList.add('pointer-events-none'); // Disable interaction immediately on fade-out } }; function scrollToTop() { window.scrollTo({ top: 0, behavior: 'smooth' }); } </script> </body> </html> <?php /**PATH /home/okaminime0881/anime/resources/views/layouts/guest.blade.php ENDPATH**/ ?>
Back