File manager - Edit - /home/u300416816/domains/recipeseasy.online/public_html/storage/framework/views/e572bbad349fd3b4e918543b01c11583.php
Back
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?php echo e(old('website_name', $settings['website_name'] ?? '')); ?></title> <link rel="icon" type="image/x-icon" href="<?php echo e(asset('images/favicons/'.$settings['website_favicon'])); ?>"> <meta name="description" content="<?php echo e(old('website_description', $settings['website_description'] ?? '')); ?>"> <meta name="keywords" content="<?php echo e(old('website_tags', $settings['website_tags'] ?? '')); ?>"> <!-- Meta Image for Social Sharing --> <meta property="og:title" content="<?php echo e(old('website_name', $settings['website_name'] ?? '')); ?>"> <meta property="og:description" content="<?php echo e(old('website_description', $settings['website_description'] ?? '')); ?>"> <meta property="og:image" content="<?php echo e(asset('images/logos/' . $settings['website_logo'] ?? '')); ?>"> <meta property="og:url" content="<?php echo e(url('/')); ?>"> <?php echo $settings['google_analytics']; ?> <!-- Twitter Meta Tags --> <meta name="twitter:card" content="<?php echo e(asset('images/logos/' . $settings['website_logo'] ?? '')); ?>"> <meta name="twitter:title" content="<?php echo e(old('website_name', $settings['website_name'] ?? '')); ?>"> <meta name="twitter:description" content="<?php echo e(old('website_description', $settings['website_description'] ?? '')); ?>"> <meta name="twitter:image" content="<?php echo e(asset('images/logos/' . $settings['website_logo'] ?? '')); ?>"> <!-- Canonical URL (for SEO) --> <link rel="canonical" href="<?php echo e(url('/')); ?>"> <link href="<?php echo e(asset('frontend/css/bootstrap.min.css')); ?>" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('frontend/css/slick.min.css')); ?>" /> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('frontend/css/slick-theme.min.css')); ?>" /> <link rel="stylesheet" href="<?php echo e(asset('frontend/css/style.css')); ?>"> <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap" rel="stylesheet"> <link href="<?php echo e(asset('frontend/css/toastr.min.css')); ?>" rel="stylesheet"> </head> <body> <!-- Header --> <?php echo $__env->make('frontend.partials._header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->yieldContent('content'); ?> <?php $dynamicPopups = App\Models\DynamicPopups::orderBy('id', 'asc')->where('status', 1)->get(); ?> <!-- Modals --> <?php $__currentLoopData = $dynamicPopups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $popups): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="modal" id="newsletterModal<?php echo e($popups->id); ?>" style="display:none;"> <div class="modal-content bg-dark"> <span class="close-btn" onclick="closeModal(<?php echo e($popups->id); ?>)">×</span> <!-- Modal body --> <div class="modal-body"> <img src="<?php echo e(asset('images/dynamic-popups/'.$popups->image)); ?>" alt="Placeholder Image" class="responsive-img"> <h2 class="card-title m-2"><?php echo e($popups->title); ?></h2> <p class="text-white text-center"><?php echo e($popups->summary); ?></p> <!-- Email Subscription Form --> <?php if($popups->show_subscribe_form == 1): ?> <form id="subscriberForm<?php echo e($popups->id); ?>" class="subscription-form"> <?php echo csrf_field(); ?> <div class="form-group"> <label class="card-title text-center" for="email">Enter your email</label> <input type="email" id="email" name="email" placeholder="Enter your email" required> </div> <button type="submit" class="btn btn-primary p-2"><?php echo e($popups->btn_text); ?></button> </form> <?php endif; ?> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- Footer --> <?php echo $__env->make('frontend.partials._footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <script type="text/javascript" src="<?php echo e(asset('frontend/js/bootstrap.bundle.min.js')); ?>"></script> <script type="text/javascript" src="<?php echo e(asset('frontend/js/jquery.min.js')); ?>"></script> <script type="text/javascript" src="<?php echo e(asset('frontend/js/slick.min.js')); ?>"></script> <script type="text/javascript" src="<?php echo e(asset('frontend/js/custom.js')); ?>"> </script> <script src="<?php echo e(asset('frontend/js/toastr.min.js')); ?>"></script> <script> window.onload = function() { <?php $__currentLoopData = $dynamicPopups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $popups): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> (function() { let modalId = 'newsletterModal<?php echo e($popups->id); ?>'; let closedTime = localStorage.getItem(modalId + '_closedTime'); let now = new Date().getTime(); // Check if the modal was closed in the last hour if (!closedTime || now - closedTime > 3600000) { // 1 hour in milliseconds document.getElementById(modalId).style.display = 'flex'; } else { // console.log("Not showing modal because it was closed within the last hour:", modalId); } })(); <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> }; function closeModal(modalId) { // console.log("Closing modal:", modalId); // Debugging log // Hide the modal when the close button is clicked document.getElementById('newsletterModal' + modalId).style.display = 'none'; // Store the current time to track when the modal was closed let now = new Date().getTime(); localStorage.setItem('newsletterModal' + modalId + '_closedTime', now); // console.log("Stored closed time for modal:", modalId, now); // Debugging log } </script> <script> $(document).ready(function() { <?php $__currentLoopData = $dynamicPopups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $popups): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> // Handle form submission via AJAX $('#subscriberForm<?php echo e($popups->id); ?>').on('submit', function(e) { e.preventDefault(); // Prevent the default form submission let formData = $(this).serialize(); // Serialize form data $.ajax({ url: '<?php echo e(route('subscriber.newsletter')); ?>', type: 'POST', data: formData, success: function(response) { // Handle success - show message or update UI toastr.success("Thank you for subscribing"); $('#subscriberForm<?php echo e($popups->id); ?>')[0].reset(); // Reset the form closeModal(<?php echo e($popups->id); ?>); // Optionally close modal }, error: function(xhr, status, error) { // Handle error - show error message toastr.error("There was an error. Please try again."); } }); }); <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> }); </script> <script> toastr.options = { "closeButton": true, "progressBar": true, "positionClass": "toast-top-right", "timeOut": "5000", "extendedTimeOut": "1000", "hideDuration": "1000", "showDuration": "300", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } <?php if(Session::has('success')): ?> toastr.success("<?php echo e(Session::get('success')); ?>"); <?php endif; ?> <?php if(Session::has('error')): ?> toastr.error("<?php echo e(Session::get('error')); ?>"); <?php endif; ?> </script> </body> </html> <?php /**PATH E:\Laravel Codester\gaming_zone\resources\views/frontend/layout.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings