관리-도구
편집 파일: 8c9411bc5eed023d66e919b090fe7afe.php
<?php $announcement = getWebConfig(name: 'announcement'); $slnsCategories = \Illuminate\Support\Facades\Cache::remember('slns_header_categories_cached_v2', 3600, function() { return \App\Utils\CategoryManager::getCategoriesWithCountingAndPriorityWiseSorting(dataLimit: 15); }); $slnsWish = session()->has('wish_list') ? count(session('wish_list')) : 0; ?> <?php if(isset($announcement) && $announcement['status']==1): ?> <div class="slns-announce" id="announcement" style="background-color: <?php echo e($announcement['color']); ?>;color:<?php echo e($announcement['text_color']); ?>"> <span><?php echo e($announcement['announcement']); ?></span> <span class="slns-announce__x web-announcement-slideUp">×</span> </div> <?php endif; ?> <header class="slns-header luxury-header" id="slns-header"> <div class="slns-main"> <div class="slns-wrap slns-main__grid"> <a class="slns-logo navbar-brand" href="<?php echo e(route('home')); ?>"> <img src="<?php echo e(getStorageImages(path: $web_config['web_logo'], type: 'logo')); ?>" alt="<?php echo e($web_config['company_name']); ?>"> </a> <style> .slns-header-search-wrap { display: flex !important; align-items: center !important; background: rgba(255, 255, 255, 0.1) !important; border: 1px solid rgba(212, 175, 55, 0.45) !important; border-radius: 20px !important; padding: 2px 6px 2px 14px !important; height: 34px !important; box-sizing: border-box !important; transition: all 0.3s ease !important; backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important; } .slns-header-search-wrap:focus-within { border-color: #d4af37 !important; background: rgba(255, 255, 255, 0.16) !important; box-shadow: 0 0 10px rgba(212, 175, 55, 0.25) !important; } .luxury-header .slns-header-search-btn, .slns-header-search-btn { background: transparent !important; border: none !important; border-radius: 50% !important; color: #d4af37 !important; padding: 0 !important; margin: 0 !important; width: 26px !important; height: 26px !important; min-width: 26px !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; flex-shrink: 0 !important; box-shadow: none !important; transition: transform 0.2s ease !important; } .slns-header-search-btn:hover { transform: scale(1.1) !important; color: #ffffff !important; } </style> <div class="slns-header-search d-none d-lg-block" style="flex:0 0 240px; max-width: 240px; margin: 0 16px; position: relative;"> <form action="<?php echo e(route('products')); ?>" method="GET" style="position:relative; width:100%; margin:0;"> <input type="hidden" name="data_from" value="search"> <input type="hidden" name="page" value="1"> <div class="slns-header-search-wrap"> <input type="text" name="name" class="slns-search-input search-bar-input" placeholder="Search collection or code..." autocomplete="off" style="background:transparent !important; border:none !important; outline:none !important; color:#ffffff !important; font-size:12px !important; width:100% !important; padding:0 !important; margin:0 !important; box-shadow:none !important; font-family:inherit !important;"> <button type="submit" aria-label="Search" class="slns-header-search-btn"> <i class="czi-search" style="font-size:13px; color:#d4af37;"></i> </button> </div> <div class="card search-card search-result-box" style="display:none; position:absolute; top:115%; left:0; right:0; z-index:999; border-radius:12px; box-shadow:0 15px 35px rgba(0,0,0,0.25); background:#ffffff; border:1px solid #e2e8f0; overflow:hidden;"></div> </form> </div> <div class="slns-tools navbar-toolbar"> <button class="slns-tool slns-tool--msearch open-search-form-mobile d-lg-none" aria-label="Search"> <i class="czi-search" style="font-size:18px; color:#d4af37;"></i> </button> <a class="slns-tool navbar-tool" href="<?php echo e(route('wishlists')); ?>" aria-label="Wishlist"> <i class="czi-heart"></i> <span class="slns-tool__badge navbar-tool-label"><span class="countWishlist"><?php echo e($slnsWish); ?></span></span> </a> <?php if(auth('customer')->check()): ?> <div class="dropdown slns-tool-drop"> <a class="slns-tool" href="#" data-toggle="dropdown" aria-label="Account"> <i class="czi-user"></i> </a> <div class="dropdown-menu dropdown-menu-right"> <span class="dropdown-header"><?php echo e(translate('hello')); ?>, <?php echo e(Str::limit(auth('customer')->user()->f_name, 12)); ?></span> <a class="dropdown-item" href="<?php echo e(route('account-oder')); ?>"><?php echo e(translate('my_Order')); ?></a> <a class="dropdown-item" href="<?php echo e(route('user-account')); ?>"><?php echo e(translate('my_Profile')); ?></a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="<?php echo e(route('customer.auth.logout')); ?>"><?php echo e(translate('logout')); ?></a> </div> </div> <?php else: ?> <div class="dropdown slns-tool-drop"> <a class="slns-tool" href="#" data-toggle="dropdown" aria-label="Account"> <i class="czi-user"></i> </a> <div class="dropdown-menu dropdown-menu-right __auth-dropdown"> <a class="dropdown-item" href="<?php echo e(route('customer.auth.login')); ?>"> <i class="fa fa-sign-in mr-2"></i><?php echo e(translate('sign_in')); ?> </a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="<?php echo e(route('customer.auth.sign-up')); ?>"> <i class="fa fa-user-circle mr-2"></i><?php echo e(translate('sign_up')); ?> </a> </div> </div> <?php endif; ?> <div class="slns-tool slns-cart" id="cart_items"> <?php echo $__env->make('layouts.front-end.partials._cart', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> </div> <a class="slns-tool slns-phone-btn" href="#" id="slns-phone-trigger" aria-label="Contact"> <i class="czi-phone"></i> </a> <button class="slns-tool slns-burger" id="slns-burger" aria-label="Menu" style="margin-left:0; display:flex;"> <span></span><span></span><span></span> </button> </div> </div> </div> <div class="slns-drawer" id="slns-drawer"> <a class="slns-drawer__link" href="<?php echo e(route('home')); ?>"><?php echo e(translate('home')); ?></a> <a class="slns-drawer__link" href="<?php echo e(route('categories')); ?>"><?php echo e(translate('categories')); ?></a> <a class="slns-drawer__link" href="<?php echo e(route('brands')); ?>"><?php echo e(translate('brand')); ?></a> <a class="slns-drawer__link" href="<?php echo e(route('discounted-products')); ?>"><?php echo e(translate('discounted_products')); ?></a> <a class="slns-drawer__link" href="<?php echo e(route('wishlists')); ?>"><?php echo e(translate('wishlist')); ?> (<?php echo e($slnsWish); ?>)</a> <a class="slns-drawer__link" href="<?php echo e(auth('customer')->check() ? route('user-account') : route('customer.auth.login')); ?>"> <?php echo e(auth('customer')->check() ? translate('my_Profile') : translate('sign_in')); ?> </a> </div> <div class="search-form-mobile" id="search-form-mobile" style="position:fixed; top:0; left:0; right:0; z-index:99999; background:rgba(17, 24, 39, 0.96); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); padding:16px 14px; box-shadow:0 12px 35px rgba(0,0,0,0.5); display:none; border-bottom:1px solid rgba(212,175,55,0.45);"> <form action="<?php echo e(route('products')); ?>" method="GET" style="position:relative; width:100%; max-width:600px; margin:0 auto;"> <input type="hidden" name="data_from" value="search"> <input type="hidden" name="page" value="1"> <div style="display:flex; align-items:center; background:rgba(255,255,255,0.12); border:1px solid #d4af37; border-radius:24px; padding:3px 6px 3px 14px; height:44px;"> <input type="text" name="name" class="search-bar-input-mobile" placeholder="Search collection or code..." autocomplete="off" style="background:transparent !important; border:none !important; outline:none !important; color:#ffffff !important; font-size:14px !important; width:100% !important; box-shadow:none !important;"> <button type="submit" aria-label="Search" style="background:transparent; border:none; color:#d4af37; padding:0 8px; cursor:pointer;"> <i class="czi-search" style="font-size:16px;"></i> </button> <button type="button" class="close-search-form-mobile" style="background:transparent; border:none; color:#ffffff; font-size:24px; line-height:1; padding:0 8px; cursor:pointer;" aria-label="Close search">×</button> </div> <div class="card search-card search-result-box" style="display:none; position:absolute; top:115%; left:0; right:0; z-index:999; border-radius:12px; box-shadow:0 15px 35px rgba(0,0,0,0.35); background:#ffffff; border:1px solid #e2e8f0; overflow:hidden;"></div> </form> </div> </header> <script> document.addEventListener("DOMContentLoaded", function () { var openBtns = document.querySelectorAll(".open-search-form-mobile"); var closeBtns = document.querySelectorAll(".close-search-form-mobile"); var searchOverlay = document.getElementById("search-form-mobile"); openBtns.forEach(function (btn) { btn.addEventListener("click", function (e) { e.preventDefault(); if (searchOverlay) { searchOverlay.style.display = "block"; searchOverlay.classList.add("active"); var input = searchOverlay.querySelector(".search-bar-input-mobile"); if (input) input.focus(); } }); }); closeBtns.forEach(function (btn) { btn.addEventListener("click", function (e) { e.preventDefault(); if (searchOverlay) { searchOverlay.style.display = "none"; searchOverlay.classList.remove("active"); } }); }); }); </script> <div class="slns-modal" id="slns-contact-modal"> <div class="slns-modal__backdrop"></div> <div class="slns-modal__content"> <button class="slns-modal__close" id="slns-contact-close" aria-label="Close">×</button> <h3 class="slns-modal__title">Product Inquiry</h3> <p class="slns-modal__desc">Fill in the details below to email us directly about your preferred saree model and type.</p> <form class="slns-modal__form" id="slns-contact-form" data-email="<?php echo e(getWebConfig(name: 'company_email')); ?>"> <div class="slns-modal__field"> <label for="slns-inq-name">Your Name</label> <input type="text" id="slns-inq-name" required placeholder="Enter your full name"> </div> <div class="slns-modal__field"> <label for="slns-inq-phone">Phone Number</label> <input type="tel" id="slns-inq-phone" required placeholder="Enter your phone number"> </div> <div class="slns-modal__field"> <label for="slns-inq-model">Saree Model</label> <input type="text" id="slns-inq-model" required placeholder="e.g. Arani Silk, Banarasi, Kanchipuram"> </div> <div class="slns-modal__field"> <label for="slns-inq-type">Saree Type / Details</label> <textarea id="slns-inq-type" rows="3" required placeholder="Describe the saree type, color, or specific requirements"></textarea> </div> <button type="submit" class="slns-modal__submit">Send Email Inquiry</button> </form> <div class="slns-modal__divider"><span>OR CONTACT DIRECTLY</span></div> <div class="slns-modal__direct"> <a href="tel:<?php echo e($web_config['phone']); ?>" class="slns-modal__direct-item"> <i class="czi-phone"></i> <?php echo e($web_config['phone']); ?> </a> <a href="mailto:<?php echo e(getWebConfig(name: 'company_email')); ?>" class="slns-modal__direct-item"> <i class="czi-mail"></i> <?php echo e(getWebConfig(name: 'company_email')); ?> </a> </div> </div> </div> <?php /**PATH /home2/slnssare/public_html/resources/themes/default/layouts/front-end/partials/_header.blade.php ENDPATH**/ ?>