Viewing file: d9245788ce8f375fa7bf8b63a30764012c25d1af.php (48.71 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$carts = \App\Cart\Cart::cartCollection()->sortKeys();
?>
<section style="background: <?php echo e($header['main']['bg_color']); ?>" class="sticky top-0 z-40 md:bg-white bg-gray-12 max-h-24">
<div class="<?php echo e(isset($header['main']) && in_array(1, $header['main']) ? 'py-4' : ''); ?>">
<div class="mx-4 lg:mx-4 xl:mx-32 2xl:mx-64 3xl:mx-92 flex justify-between">
<?php if(isset($header['main']['show_logo']) && $header['main']['show_logo'] == 1 && $headerLogo->objectFile): ?>
<div class="hidden md:block ">
<div class="h-9 3xl:w-63 pt-1p">
<a href="<?php echo e(route('site.index')); ?>">
<img class="h-11 neg-transition-scale <?php echo e(isset($header['main']) && count(array_filter($header['main'])) == 1 ? '' : 'mt-2'); ?>" src="<?php echo e($headerLogo->fileUrl()); ?>" alt="<?php echo e(__('Image')); ?>">
</a>
</div>
</div>
<?php endif; ?>
<?php if(isset($header['main']['show_searchbar']) && $header['main']['show_searchbar'] == 1): ?>
<div class="md:w-46% w-full <?php echo e(isset($header['main']['show_logo']) && $header['main']['show_logo'] == 1 ? ' header-searchbar-margin ml-32' : '3xl:ml-300p lg:ml-60 md:ml-48'); ?>">
<form method="GET" action="<?php echo e(route('site.productSearch','')); ?>">
<div class="relative rounded input-width border search-border search-placeholder bg-white mt-2">
<input type="search" name="keyword" placeholder="<?php echo e(__('Type your product name..')); ?>" value="<?php echo e($searchKeyword ?? null); ?>" id="itemSearch" class="bg-transparent h-10 w-full text-sm focus:outline-none <?php echo e(languageDirection() == 'ltr' ? 'pl-12 pr-10' : 'pr-12 pl-10'); ?>"/>
<button type="submit" class="absolute <?php echo e(languageDirection() == 'ltr' ? 'left-0 ml-3 pr-2 border-r' : 'right-0 mr-3 pl-2 border-l'); ?> -top-1 mt-3 border-gray-300 h-6 search-btn">
<svg class="h-4 w-4 fill-current text-gray-500 <?php echo e(languageDirection() == 'ltr' ? '' : 'neg-transition-scale'); ?>" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 2C13.3137 2 16 4.68629 16 8C16 11.3137 13.3137 14 10 14C6.68629 14 4 11.3137 4 8C4 4.68629 6.68629 2 10 2ZM18 8C18 3.58172 14.4183 0 10 0C5.58172 0 2 3.58172 2 8C2 12.4183 5.58172 16 10 16C14.4183 16 18 12.4183 18 8Z" fill="#2C2C2C"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.70711 13.2929C4.31658 12.9024 3.68342 12.9024 3.29289 13.2929L0.292893 16.2929C-0.0976315 16.6834 -0.0976315 17.3166 0.292893 17.7071C0.683417 18.0976 1.31658 18.0976 1.70711 17.7071L4.70711 14.7071C5.09763 14.3166 5.09763 13.6834 4.70711 13.2929Z" fill="#2C2C2C"/>
</svg>
</button>
<button type="submit" class="absolute <?php echo e(languageDirection() == 'ltr' ? 'right-0 ml-3 pr-2' : 'left-0 mr-3 pl-2'); ?> -top-1 mt-3 h-6 search-btn">
<svg class="h-4 w-4 fill-current text-gray-500" width="18" height="16" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 9C2.44772 9 2 8.55228 2 8L2 1C2 0.447716 2.44771 -3.91405e-08 3 -8.74228e-08C3.55228 -1.35705e-07 4 0.447716 4 1L4 8C4 8.55228 3.55228 9 3 9Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M9 5C8.44772 5 8 4.55228 8 4L8 1C8 0.447715 8.44771 -9.13278e-08 9 -2.03986e-07C9.55228 -3.16645e-07 10 0.447715 10 1L10 4C10 4.55228 9.55228 5 9 5Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 16C2.44772 16 2 15.5523 2 15L2 12C2 11.4477 2.44771 11 3 11C3.55228 11 4 11.4477 4 12L4 15C4 15.5523 3.55228 16 3 16Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 16C14.4477 16 14 15.5523 14 15L14 13C14 12.4477 14.4477 12 15 12C15.5523 12 16 12.4477 16 13L16 15C16 15.5523 15.5523 16 15 16Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M9 16C8.44772 16 8 15.5523 8 15L8 8C8 7.44772 8.44771 7 9 7C9.55228 7 10 7.44772 10 8L10 15C10 15.5523 9.55228 16 9 16Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 4C6 3.44772 6.44772 3 7 3L11 3C11.5523 3 12 3.44772 12 4C12 4.55228 11.5523 5 11 5L7 5C6.44772 5 6 4.55228 6 4Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 12C0 11.4477 0.447715 11 1 11L5 11C5.55228 11 6 11.4477 6 12C6 12.5523 5.55228 13 5 13L1 13C0.447715 13 0 12.5523 0 12Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 13C12 12.4477 12.4477 12 13 12L17 12C17.5523 12 18 12.4477 18 13C18 13.5523 17.5523 14 17 14L13 14C12.4477 14 12 13.5523 12 13Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 10C14.4477 10 14 9.55228 14 9L14 1C14 0.447715 14.4477 -3.42479e-08 15 -7.64949e-08C15.5523 -1.18742e-07 16 0.447715 16 1L16 9C16 9.55228 15.5523 10 15 10Z" fill="#898989"/>
</svg>
</button>
</div>
</form>
</div>
<?php endif; ?>
<div class="<?php echo e(languageDirection() == 'ltr' ? 'ml-auto' : ''); ?>">
<div class="flex items-end rev <?php echo e(isset($header['main']['show_searchbar']) && $header['main']['show_searchbar'] == 1 ? 'justify-end' : 'ml-2'); ?>">
<ul class="flex -mt-1.5">
<?php if(isset($header['main']['show_account']) && $header['main']['show_account'] == 1): ?>
<li class="hidden md:block ml-5">
<?php
if (!auth()->user()) {
$ckname = explode("_", Auth::getRecallerName())[2];
$value = Cookie::get($ckname);
if (!is_null($value)) {
$rememberedUser = explode(".", explode($ckname, decrypt($value))[1]);
if ($rememberedUser[1] == 'user' && Auth::guard('user')->loginUsingId($rememberedUser[0]))
{
$ckkey = encrypt($ckname . Auth::user()->id . ".user");
Cookie::queue($ckname, $ckkey, 2592000);
}
}
}
?>
<?php if(auth()->guard()->check()): ?>
<!--user dropdown start-->
<div class="relative inline-block mt-2">
<div class="relative text-sm">
<div class="flex flex-col justify-center items-center">
<button id="userButton" class="flex items-center focus:outline-none ">
<div class="flex flex-col justify-center bg-gray-100 items-center h-7 w-7 rounded-full pink-blue dark:text-gray-2 hover:text-purple-500 cursor-pointer">
<img class="h-7 w-7 rounded-full pink-blue dark:text-gray-2 hover:text-purple-500 cursor-pointer" src="<?php echo e(Auth::user()->fileUrl()); ?>" alt="Avatar of User">
</div>
</button>
<p style="color: <?php echo e($header['main']['text_color']); ?>" class="text-xs text-xss font-medium roboto-medium text-center mt-1 leading-3">
<?php if(auth()->guard()->check()): ?>
<?php echo e(trimWords(Auth::user()->name, 13)); ?>
<?php endif; ?>
</p>
</div>
<div id="userMenu" class="absolute right-0 w-40 p-2 mt-2 space-y-2 text-gray-600 bg-white border border-gray-100 rounded-md shadow-md dark:border-gray-700 dark:text-gray-300 dark:bg-gray-700 overflow-auto invisible">
<ul class="list-reset text-gray-600">
<li class="flex">
<a href="<?php echo e(route('site.dashboard')); ?>" class="inline-flex items-center w-full px-2 py-1 text-sm transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200">
<svg class="w-4 h-4 <?php echo e(languageDirection() == 'ltr' ? 'mr-3' : 'ml-3'); ?> neg-transition-scale" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.63028 16.3732C8.19298 15.4738 10.0797 15 11.9992 15C13.9186 15 15.8054 15.4738 17.368 16.3732C18.9302 17.2722 20.1179 18.5702 20.6683 20.1106C20.8541 20.6307 20.5831 21.203 20.063 21.3888C19.5429 21.5746 18.9707 21.3036 18.7849 20.7835C18.4236 19.7723 17.6027 18.8157 16.3705 18.1066C15.1389 17.3978 13.6018 17 11.9992 17C10.3965 17 8.85948 17.3978 7.62787 18.1066C6.39568 18.8157 5.57473 19.7723 5.21346 20.7835C5.02765 21.3036 4.45541 21.5746 3.93532 21.3888C3.41523 21.203 3.14424 20.6307 3.33005 20.1106C3.88038 18.5702 5.06816 17.2721 6.63028 16.3732Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 5C10.3431 5 9 6.34315 9 8C9 9.65685 10.3431 11 12 11C13.6569 11 15 9.65685 15 8C15 6.34315 13.6569 5 12 5ZM7 8C7 5.23858 9.23858 3 12 3C14.7614 3 17 5.23858 17 8C17 10.7614 14.7614 13 12 13C9.23858 13 7 10.7614 7 8Z" fill="#898989"/>
</svg>
<span><?php echo e(__('My Account')); ?></span>
</a>
</li>
<?php if(auth()->user()->role()->slug == 'super-admin'): ?>
<li class="flex">
<a href="<?php echo e(route('dashboard')); ?>" target="_blank" class="inline-flex items-center w-full px-2 py-1 text-sm transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200">
<svg class="w-4 h-4 <?php echo e(languageDirection() == 'ltr' ? 'mr-3' : 'ml-3'); ?> neg-transition-scale" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M22 2H13V4H18.5858L10.2929 12.2929C9.90237 12.6834 9.90237 13.3166 10.2929 13.7071C10.6834 14.0976 11.3166 14.0976 11.7071 13.7071L20 5.41421V11H22V2Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.90036 5.04616C7.39907 5.00096 8.04698 5 9 5C9.55228 5 10 4.55229 10 4C10 3.44772 9.55228 3 9 3L8.95396 3C8.05849 2.99998 7.31952 2.99997 6.71983 3.05432C6.09615 3.11085 5.52564 3.23242 5 3.5359C4.39192 3.88697 3.88697 4.39192 3.5359 5C3.23242 5.52564 3.11085 6.09615 3.05432 6.71983C2.99997 7.31953 2.99998 8.05851 3 8.95399V14.0705C2.99996 15.4247 2.99993 16.5413 3.11875 17.4251C3.24349 18.3529 3.51546 19.1723 4.17157 19.8284C4.82768 20.4845 5.64711 20.7565 6.57494 20.8813C7.4587 21.0001 8.57532 21 9.92945 21H15.046C15.9415 21 16.6805 21 17.2802 20.9457C17.9039 20.8892 18.4744 20.7676 19 20.4641C19.6081 20.113 20.113 19.6081 20.4641 19C20.7676 18.4744 20.8891 17.9039 20.9457 17.2802C21 16.6805 21 15.9415 21 15.046L21 15C21 14.4477 20.5523 14 20 14C19.4477 14 19 14.4477 19 15C19 15.953 18.999 16.6009 18.9538 17.0996C18.9099 17.5846 18.8305 17.8295 18.732 18C18.5565 18.304 18.304 18.5565 18 18.7321C17.8295 18.8305 17.5846 18.9099 17.0996 18.9538C16.6009 18.999 15.953 19 15 19H10C8.55752 19 7.57625 18.9979 6.84143 18.8991C6.13538 18.8042 5.80836 18.6368 5.58579 18.4142C5.36321 18.1916 5.19584 17.8646 5.10092 17.1586C5.00212 16.4237 5 15.4425 5 14V9C5 8.04698 5.00096 7.39908 5.04616 6.90036C5.09011 6.41539 5.1695 6.17051 5.26795 6C5.44348 5.69596 5.69596 5.44349 6 5.26795C6.17051 5.16951 6.41539 5.09011 6.90036 5.04616Z" fill="#898989"/>
</svg>
<span class="break-all"><?php echo e(__('Admin Panel')); ?></span>
</a>
</li>
<?php endif; ?>
<?php if(auth()->user()->role()->slug == 'super-admin' || (auth()->user()->role()->slug == 'vendor-admin' && optional(auth()->user()->vendors()->first())->status == 'Active')): ?>
<li class="flex">
<a href="<?php echo e(route('vendor-dashboard')); ?>" target="_blank" class="inline-flex items-center w-full px-2 py-1 text-sm transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200">
<svg class="w-4 h-4 <?php echo e(languageDirection() == 'ltr' ? 'mr-3' : 'ml-3'); ?> neg-transition-scale" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M22 2H13V4H18.5858L10.2929 12.2929C9.90237 12.6834 9.90237 13.3166 10.2929 13.7071C10.6834 14.0976 11.3166 14.0976 11.7071 13.7071L20 5.41421V11H22V2Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.90036 5.04616C7.39907 5.00096 8.04698 5 9 5C9.55228 5 10 4.55229 10 4C10 3.44772 9.55228 3 9 3L8.95396 3C8.05849 2.99998 7.31952 2.99997 6.71983 3.05432C6.09615 3.11085 5.52564 3.23242 5 3.5359C4.39192 3.88697 3.88697 4.39192 3.5359 5C3.23242 5.52564 3.11085 6.09615 3.05432 6.71983C2.99997 7.31953 2.99998 8.05851 3 8.95399V14.0705C2.99996 15.4247 2.99993 16.5413 3.11875 17.4251C3.24349 18.3529 3.51546 19.1723 4.17157 19.8284C4.82768 20.4845 5.64711 20.7565 6.57494 20.8813C7.4587 21.0001 8.57532 21 9.92945 21H15.046C15.9415 21 16.6805 21 17.2802 20.9457C17.9039 20.8892 18.4744 20.7676 19 20.4641C19.6081 20.113 20.113 19.6081 20.4641 19C20.7676 18.4744 20.8891 17.9039 20.9457 17.2802C21 16.6805 21 15.9415 21 15.046L21 15C21 14.4477 20.5523 14 20 14C19.4477 14 19 14.4477 19 15C19 15.953 18.999 16.6009 18.9538 17.0996C18.9099 17.5846 18.8305 17.8295 18.732 18C18.5565 18.304 18.304 18.5565 18 18.7321C17.8295 18.8305 17.5846 18.9099 17.0996 18.9538C16.6009 18.999 15.953 19 15 19H10C8.55752 19 7.57625 18.9979 6.84143 18.8991C6.13538 18.8042 5.80836 18.6368 5.58579 18.4142C5.36321 18.1916 5.19584 17.8646 5.10092 17.1586C5.00212 16.4237 5 15.4425 5 14V9C5 8.04698 5.00096 7.39908 5.04616 6.90036C5.09011 6.41539 5.1695 6.17051 5.26795 6C5.44348 5.69596 5.69596 5.44349 6 5.26795C6.17051 5.16951 6.41539 5.09011 6.90036 5.04616Z" fill="#898989"/>
</svg>
<span><?php echo e(__('Vendor Panel')); ?></span>
</a>
</li>
<?php endif; ?>
<li class="flex">
<a href="<?php echo e(route('site.logout')); ?>" class="inline-flex items-center w-full px-2 py-1 text-sm transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200">
<svg class="w-4 h-4 <?php echo e(languageDirection() == 'ltr' ? 'mr-3' : 'ml-3'); ?> neg-transition-scale" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.9498 5.63603C17.3403 5.24551 17.9734 5.24551 18.364 5.63603C19.6226 6.89471 20.4798 8.49835 20.8271 10.2442C21.1743 11.99 20.9961 13.7996 20.3149 15.4441C19.6337 17.0887 18.4802 18.4943 17.0001 19.4832C15.5201 20.4722 13.78 21 12 21C10.22 21 8.47991 20.4722 6.99987 19.4832C5.51983 18.4943 4.36628 17.0887 3.68509 15.4441C3.0039 13.7996 2.82567 11.99 3.17294 10.2442C3.5202 8.49835 4.37737 6.89471 5.63604 5.63603C6.02657 5.24551 6.65973 5.24551 7.05026 5.63603C7.44078 6.02656 7.44078 6.65972 7.05026 7.05025C6.07129 8.02921 5.4046 9.2765 5.13451 10.6344C4.86441 11.9922 5.00303 13.3997 5.53285 14.6788C6.06266 15.9579 6.95987 17.0511 8.11101 17.8203C9.26216 18.5895 10.6155 19 12 19C13.3845 19 14.7379 18.5895 15.889 17.8203C17.0401 17.0511 17.9373 15.9579 18.4672 14.6788C18.997 13.3997 19.1356 11.9922 18.8655 10.6344C18.5954 9.27649 17.9287 8.02921 16.9498 7.05025C16.5592 6.65972 16.5592 6.02656 16.9498 5.63603Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 3C12.5523 3 13 3.44772 13 4L13 8C13 8.55228 12.5523 9 12 9C11.4477 9 11 8.55228 11 8L11 4C11 3.44772 11.4477 3 12 3Z" fill="#898989"/>
</svg>
<span><?php echo e(__('Logout')); ?></span>
</a>
</li>
</ul>
</div>
</div>
</div>
<!-- user dropdown end -->
<?php else: ?>
<!-- unauthenticated -->
<div class="flex flex-col justify-center items-center cursor-pointer open-login-modal mt-2">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M19.7274 20.4471C19.2716 19.1713 18.2672 18.0439 16.8701 17.2399C15.4729 16.4358 13.7611 16 12 16C10.2389 16 8.52706 16.4358 7.12991 17.2399C5.73276 18.0439 4.72839 19.1713 4.27259 20.4471" stroke="<?php echo e($header['main']['text_color']); ?>" stroke-width="2" stroke-linecap="round"/>
<circle cx="12" cy="8" r="4" stroke="<?php echo e($header['main']['text_color']); ?>" stroke-width="2" stroke-linecap="round"/>
</svg>
<p style="color: <?php echo e($header['main']['text_color']); ?>" class="text-xs text-xss font-medium roboto-medium text-center mt-2 mr-0.5 leading-3"><?php echo e(__('Account')); ?></p>
</div>
<?php endif; ?>
</li>
<?php endif; ?>
<?php if(isset($header['main']['show_wishlist']) && $header['main']['show_wishlist'] == 1): ?>
<li class="hidden md:block ml-5">
<div class="flex flex-col justify-center items-center">
<a href="<?php echo e(route('site.wishlist')); ?>" class="md:px-2 lg:px-0 py-2 block w-fill">
<div slot="icon" class="relative">
<?php
$class = \App\Models\User::totalWishlist() != 0 ? 'h-4 w-4' : '';
?>
<div class="flex justify-center">
<div class="absolute">
<div class="absolute text-xss rounded-full roboto-medium <?php echo e($class); ?> flex items-center justify-center ml-0.5 -mt-1.5 bg-reds-3 text-white" id="totalWishlistItem">
<?php echo e(\App\Models\User::totalWishlist() != 0 ? \App\Models\User::totalWishlist() : ''); ?>
</div>
</div>
<svg class="mt-0.5" width="22" height="19" viewBox="0 0 22 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3.45067 10.9082L10.4033 17.4395C10.6428 17.6644 10.7625 17.7769 10.9037 17.8046C10.9673 17.8171 11.0327 17.8171 11.0963 17.8046C11.2375 17.7769 11.3572 17.6644 11.5967 17.4395L18.5493 10.9082C20.5055 9.07059 20.743 6.0466 19.0978 3.92607L18.7885 3.52734C16.8203 0.99058 12.8696 1.41601 11.4867 4.31365C11.2913 4.72296 10.7087 4.72296 10.5133 4.31365C9.13037 1.41601 5.17972 0.990584 3.21154 3.52735L2.90219 3.92607C1.25695 6.0466 1.4945 9.07059 3.45067 10.9082Z" stroke="<?php echo e($header['main']['text_color']); ?>" stroke-width="2"/>
</svg>
</div>
<p style="color: <?php echo e($header['main']['text_color']); ?>" class="text-xs text-xss font-medium roboto-medium leading-3 text-center mt-11p"><?php echo e(__('Wishlist')); ?></p>
</div>
</a>
</div>
</li>
<?php endif; ?>
<?php if(isset($header['main']['show_cart']) && $header['main']['show_cart'] == 1): ?>
<li class="absolute right-5 bottom-97p md:relative md:right-0 md:bottom-0 ml-5">
<div x-data="setup()" id="testing" class="md:my-2 mt-4">
<div>
<form action="#">
</form>
<div class="items-center sm:flex">
<button @click="isSettingsPanelOpen = true" class="rounded-md">
<div class="flex flex-col justify-center lg:mr-0 items-center">
<div slot="icon" class="relative">
<div class="flex justify-center">
<div>
<div class="absolute text-xss roboto-medium flex items-center justify-center rounded-full h-4 w-4 <?php echo e(languageDirection() == 'ltr' ? 'ml-3' : 'mr-3'); ?> -mt-1.5 bg-reds-3 text-white <?php echo e($carts->count() == 0 ? 'display-none' : null); ?>" id="totalCartItem">
<?php echo e($carts->count()); ?>
</div>
</div>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8 12L8 8C8 5.79086 9.79086 4 12 4V4C14.2091 4 16 5.79086 16 8L16 12" stroke="<?php echo e($header['main']['text_color']); ?>" stroke-width="2" stroke-linecap="round"/>
<path d="M3.69435 12.6678C3.83942 10.9269 3.91196 10.0565 4.48605 9.52824C5.06013 9 5.9336 9 7.68053 9H16.3195C18.0664 9 18.9399 9 19.514 9.52824C20.088 10.0565 20.1606 10.9269 20.3057 12.6678L20.8195 18.8339C20.904 19.8474 20.9462 20.3542 20.6491 20.6771C20.352 21 19.8435 21 18.8264 21H5.1736C4.15655 21 3.64802 21 3.35092 20.6771C3.05382 20.3542 3.09605 19.8474 3.18051 18.8339L3.69435 12.6678Z" stroke="<?php echo e($header['main']['text_color']); ?>" stroke-width="2"/>
</svg>
</div>
<p style="color: <?php echo e($header['main']['text_color']); ?>" class="hidden md:block text-xs leading-3 text-xss font-medium roboto-medium text-center mt-2"><?php echo e(__('Your Cart')); ?></p>
</div>
</div>
</button>
</div>
</div>
<!-- Backdrop -->
<div x-show="isSettingsPanelOpen"
class="fixed inset-0 bg-black bg-opacity-50 hideme hidden"
@click="isSettingsPanelOpen = false" aria-hidden="false">
</div>
<section x-transition:enter="transform transition-transform duration-300"
x-transition:enter-start="translate-x-full" x-transition:enter-end="translate-x-0"
x-transition:leave="transform transition-transform duration-300"
x-transition:leave-start="translate-x-0" x-transition:leave-end="translate-x-full"
x-show="isSettingsPanelOpen"
class="fixed inset-y-0 right-0 w-318p xxs:w-400p sm:w-400p bg-white hideme hidden z-50">
<div class="relative h-screen">
<div class="px-30p">
<div class="w-full flex justify-between items-center relative border-b border-gray-2">
<div class="flex items-center">
<span class="text-gray-12 <?php echo e(languageDirection() == 'ltr' ? 'mr-2' : 'ml-2'); ?>">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.95145 10.8918C5.39254 10.8918 4.93945 10.4388 4.93945 9.87985L4.93945 5.83186C4.93945 3.03731 7.20488 0.771874 9.99944 0.771875C12.794 0.771874 15.0594 3.03731 15.0594 5.83186L15.0594 9.87985C15.0594 10.4388 14.6063 10.8918 14.0474 10.8918C13.4885 10.8918 13.0354 10.4388 13.0354 9.87985L13.0354 5.83186C13.0354 4.15513 11.6762 2.79587 9.99944 2.79587C8.32271 2.79587 6.96345 4.15513 6.96345 5.83186L6.96345 9.87985C6.96345 10.4388 6.51036 10.8918 5.95145 10.8918Z" fill="currentColor"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.56553 5.83203C5.58652 5.83203 5.60758 5.83204 5.62871 5.83204L14.4345 5.83203C15.2643 5.83199 15.9829 5.83194 16.5631 5.90728C17.1867 5.98826 17.7854 6.17025 18.2893 6.6339C18.7932 7.09754 19.0243 7.67906 19.1568 8.29382C19.28 8.86574 19.3397 9.58182 19.4085 10.4088L19.9338 16.7119C19.9354 16.7312 19.937 16.7505 19.9386 16.7698C19.9773 17.2323 20.0145 17.6776 19.9944 18.0458C19.9719 18.4585 19.8723 18.9392 19.4976 19.3465C19.1228 19.7538 18.6521 19.8929 18.2426 19.9496C17.8773 20.0002 17.4305 20.0001 16.9665 20C16.9471 20 16.9277 20 16.9083 20H3.0917C3.07229 20 3.05291 20 3.03355 20C2.56948 20.0001 2.12265 20.0002 1.75736 19.9496C1.34793 19.8929 0.877202 19.7538 0.502445 19.3465C0.127687 18.9392 0.0281424 18.4585 0.00563022 18.0458C-0.0144547 17.6776 0.0227368 17.2323 0.0613632 16.7698C0.0629743 16.7505 0.0645879 16.7312 0.0661998 16.7119L0.586205 10.4718C0.58796 10.4508 0.589708 10.4298 0.59145 10.4088C0.66032 9.58183 0.719952 8.86574 0.843213 8.29382C0.975704 7.67906 1.20678 7.09754 1.71067 6.6339C2.21456 6.17025 2.81326 5.98826 3.4369 5.90728C4.01708 5.83194 4.73565 5.83199 5.56553 5.83203ZM3.69753 7.91443C3.29198 7.96709 3.15822 8.05239 3.08114 8.12332C3.00406 8.19424 2.90794 8.32045 2.82178 8.72023C2.72951 9.14838 2.67888 9.73178 2.60321 10.6399L2.0832 16.88C2.03799 17.4225 2.01511 17.7246 2.02662 17.9356C2.02677 17.9383 2.02692 17.941 2.02708 17.9436C2.02968 17.944 2.03234 17.9443 2.03505 17.9447C2.24432 17.9737 2.54726 17.976 3.0917 17.976H16.9083C17.4527 17.976 17.7557 17.9737 17.9649 17.9447C17.9677 17.9443 17.9703 17.944 17.9729 17.9436C17.9731 17.941 17.9732 17.9383 17.9734 17.9356C17.9849 17.7246 17.962 17.4225 17.9168 16.88L17.3968 10.6399C17.3211 9.73178 17.2705 9.14838 17.1782 8.72023C17.0921 8.32045 16.9959 8.19424 16.9189 8.12332C16.8418 8.05239 16.708 7.96709 16.3025 7.91443C15.8681 7.85803 15.2826 7.85603 14.3713 7.85603H5.62871C4.71745 7.85603 4.13186 7.85803 3.69753 7.91443Z" fill="currentColor"/>
</svg>
</span>
<h3 class="dm-bold font-bold text-22"><?php echo e(__('Shopping Cart')); ?></h3>
</div>
<div class="flex items-center relative z-50">
<button @click="isSettingsPanelOpen = false" class="flex text-2xl items-center justify-center ml-2 py-6 lg:py-7 focus:outline-none transition-opacity hover:opacity-60" aria-label="close">
<span class="dm-sans font-medium text-gray-10 text-base"><?php echo e(__('Close')); ?></span>
<span class="text-gray-10 <?php echo e(languageDirection() == 'ltr' ? 'pl-2' : 'pr-2'); ?>">
<svg class="neg-transition-scale" xmlns="http://www.w3.org/2000/svg" width="15" height="10" viewBox="0 0 15 10" fill="none">
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1016 0L8.62991 1.50221L11.016 3.93778H1.04064C0.46591 3.93778 0 4.41335 0 5C0 5.58665 0.46591 6.06222 1.04064 6.06222H11.016L8.62991 8.49779L10.1016 10L15 5L10.1016 0Z" fill="currentColor"/>
</svg>
</span>
</button>
</div>
</div>
<!-- Empty Card -->
<div id="emptyCart" class="flex flex-col items-center justify-center absolute inset-0">
<div class="flex justify-center items-center rounded-full">
<span class="text-gray-10 text-4xl block">
<svg xmlns="http://www.w3.org/2000/svg" width="31" height="36" viewBox="0 0 31 36" fill="none">
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.38222 6.84833C3.93638 7.30009 3.87492 7.60249 3.87492 7.74983C3.87492 7.89717 3.93638 8.19958 4.38222 8.65133C4.83629 9.11141 5.58938 9.61461 6.67294 10.079C8.83316 11.0048 11.9525 11.6247 15.4997 11.6247C19.0468 11.6247 22.1662 11.0048 24.3264 10.079C25.4099 9.61461 26.163 9.11141 26.6171 8.65133C27.0629 8.19958 27.1244 7.89717 27.1244 7.74983C27.1244 7.60249 27.0629 7.30009 26.6171 6.84833C26.163 6.38825 25.4099 5.88505 24.3264 5.42067C22.1662 4.49486 19.0468 3.87492 15.4997 3.87492C11.9525 3.87492 8.83316 4.49486 6.67294 5.42067C5.58938 5.88505 4.83629 6.38825 4.38222 6.84833ZM5.14653 1.85906C7.89486 0.681202 11.5566 0 15.4997 0C19.4427 0 23.1045 0.681202 25.8528 1.85906C27.2235 2.44651 28.4566 3.19577 29.3751 4.12645C30.3018 5.06547 30.9993 6.29213 30.9993 7.74983C30.9993 9.20753 30.3018 10.4342 29.3751 11.3732C28.4566 12.3039 27.2235 13.0532 25.8528 13.6406C23.1045 14.8185 19.4427 15.4997 15.4997 15.4997C11.5566 15.4997 7.89486 14.8185 5.14653 13.6406C3.77582 13.0532 2.54277 12.3039 1.62426 11.3732C0.697534 10.4342 0 9.20753 0 7.74983C0 6.29213 0.697534 5.06547 1.62426 4.12645C2.54277 3.19577 3.77582 2.44651 5.14653 1.85906Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.59121 5.84409C2.64398 5.65267 3.65259 6.35094 3.844 7.40371L7.60672 28.0987C12.0728 32.1731 18.9272 32.1731 23.3933 28.0987L27.156 7.40371C27.3474 6.35094 28.356 5.65267 29.4088 5.84409C30.4616 6.0355 31.1598 7.04411 30.9684 8.09688L27.1008 29.3686C27.0256 29.7826 26.8258 30.1638 26.5283 30.4613C20.4375 36.5521 10.5625 36.5521 4.47173 30.4613C4.17418 30.1638 3.97444 29.7826 3.89916 29.3686L0.0315873 8.09688C-0.159825 7.04411 0.538442 6.0355 1.59121 5.84409Z" fill="#898989"/>
</svg>
</span>
</div>
<h3 class="dm-sans font-medium text-gray-10 text-xl pt-2"><?php echo e(__('Your cart is empty')); ?></h3>
<p class="px-12 text-center roboto-regular font-normal text-13 text-gray-10 pt-2"><?php echo e(__('No items added in your cart. Please add product to your cart list.')); ?></p>
</div>
<!-- Empty Card End -->
</div>
<div>
</div>
<div class="w-full px-30p padding-bottom-150p h-60s scrollbar-w-2 overflow-auto mt-10p" id="cart-header">
<?php $__empty_1 = true; $__currentLoopData = $carts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $cart): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<div class="flex cursor-pointer border-gray-100 cart-item-header mt-6"
id="cart-item-header-<?php echo e($key); ?>">
<div class="h-72p w-24 border border-gray-2 rounded">
<img src="<?php echo e($cart['photo'] ?? ''); ?>" class="h-full w-full p-0.5 object-cover" alt="img product">
</div>
<div class="flex flex-col justify-center text-sm w-64 <?php echo e(languageDirection() == 'ltr' ? 'ml-5' : 'mr-5'); ?>">
<a href="<?php echo e(route('site.productDetails', ['slug' => $cart['type'] == 'Variable Product' ? $cart['parent_slug'] : $cart['slug']])); ?>"><div class="dm-sans font-medium text-gray-12 text-18 pb-2"><?php echo e(trimWords($cart['name'],16)); ?></div></a>
<div class="cart-item-quantity roboto-medium font-medium text-gray-10 text-base leading-5"><?php echo e($cart['quantity']); ?> X <?php echo e(formatCurrencyAmount($cart['price'])); ?>
</div>
</div>
<div class="flex flex-col w-18 font-medium justify-center ml-10">
<a href="javascript:void(0)"
class="w-4 h-4 rounded-full cursor-pointer text-red-700 delete-cart-item"
data-index="<?php echo e($key); ?>">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13" fill="none">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.455612 0.455612C1.06309 -0.151871 2.04802 -0.151871 2.6555 0.455612L11.9888 9.78895C12.5963 10.3964 12.5963 11.3814 11.9888 11.9888C11.3814 12.5963 10.3964 12.5963 9.78895 11.9888L0.455612 2.6555C-0.151871 2.04802 -0.151871 1.06309 0.455612 0.455612Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.9897 0.455612C11.3822 -0.151871 10.3973 -0.151871 9.78981 0.455612L0.45648 9.78895C-0.151003 10.3964 -0.151003 11.3814 0.45648 11.9888C1.06396 12.5963 2.04889 12.5963 2.65637 11.9888L11.9897 2.6555C12.5972 2.04802 12.5972 1.06309 11.9897 0.455612Z" fill="#898989"/>
</svg>
</a>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<?php endif; ?>
<?php
$totalPrice = $carts->sum(function ($carts) {
return $carts['price'] * $carts['quantity'];
});
?>
<div class="absolute justify-center bg-white flex flex-col inset-x-0 px-30p mt-30p bottom-5">
<div class="border-t border-gray-2">
<div class="pt-4 pb-30p flex justify-between dm-sans font-medium text-gray-12 text-22">
<p><?php echo e(__('Subtotal')); ?>:</p>
<p id="cart-item-total-price"><?php echo e(formatNumber($totalPrice)); ?></p>
</div>
<?php if($totalPrice > 0): ?>
<div id="view-cart-display" class="bg-white text-gray-12 border border-gray-2 p-2 w-full rounded mb-10p">
<a href="<?php echo e(route('site.cart')); ?>" class="flex justify-center px-4 py-2 rounded font-bold cursor-pointer dm-bold text-18">
<?php echo e(__('View Cart')); ?>
</a>
</div>
<?php endif; ?>
<div id="checkout-display" class="<?php echo e($totalPrice > 0 ? 'bg-gray-12 text-white' : 'text-gray-10 bg-gray-11'); ?> mb-30p p-2 w-full rounded">
<a href="<?php echo e($totalPrice > 0 ? route('site.checkOut',['select' => 'all']) : 'javascript:void(0)'); ?>" class="flex justify-center px-4 py-2 font-bold cursor-pointer dm-bold text-18"><?php echo e(__('Go to Checkout')); ?></a>
</div>
<?php if($totalPrice > 0): ?>
<div class="text-gray-10 mt-5" aria-label="Clear All" id="cart_clear_all">
<div id="clear-all-display" class="flex justify-center items-center cursor-pointer">
<p class="dm-sans font-medium text-gray-10 <?php echo e(languageDirection() == 'ltr' ? 'mr-2' : 'ml-2'); ?>">
<?php echo e(__('Clear All')); ?>
</p>
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16" fill="none">
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.83333 11.6667C5.3731 11.6667 5 11.2937 5 10.8334L5 8.33341C5 7.87318 5.3731 7.50008 5.83333 7.50008C6.29357 7.50008 6.66667 7.87318 6.66667 8.33341L6.66667 10.8334C6.66667 11.2937 6.29357 11.6667 5.83333 11.6667Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.16732 11.6667C8.70708 11.6667 8.33398 11.2937 8.33398 10.8334L8.33398 8.33341C8.33398 7.87318 8.70708 7.50008 9.16732 7.50008C9.62755 7.50008 10.0007 7.87318 10.0007 8.33341L10.0007 10.8334C10.0007 11.2937 9.62756 11.6667 9.16732 11.6667Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.8552 5.01385C0.657717 5.00037 0.399686 4.99992 0 4.99992V3.33325C0.00891358 3.33325 0.0177978 3.33325 0.0266526 3.33325C0.0445462 3.33325 0.0623196 3.33325 0.0799725 3.33325H14.92C14.9377 3.33325 14.9555 3.33325 14.9733 3.33325L15 3.33325V4.99992C14.6003 4.99992 14.3423 5.00037 14.1448 5.01385C13.9548 5.02681 13.8824 5.04899 13.8478 5.06335C13.6436 5.14793 13.4813 5.31016 13.3968 5.51435C13.3824 5.54903 13.3602 5.62139 13.3473 5.81139C13.3338 6.00887 13.3333 6.2669 13.3333 6.66659L13.3333 11.7214C13.3334 12.4602 13.3334 13.0967 13.2649 13.6064C13.1914 14.1527 13.0258 14.6763 12.6011 15.101C12.1764 15.5257 11.6528 15.6914 11.1065 15.7648C10.5968 15.8333 9.96027 15.8333 9.22153 15.8333H5.77847C5.03973 15.8333 4.40322 15.8333 3.89351 15.7648C3.34724 15.6914 2.82362 15.5257 2.3989 15.101C1.97418 14.6763 1.80856 14.1527 1.73512 13.6064C1.66659 13.0967 1.66662 12.4602 1.66666 11.7214L1.66667 6.66659C1.66667 6.2669 1.66622 6.00887 1.65274 5.81139C1.63978 5.62139 1.6176 5.54903 1.60323 5.51435C1.51865 5.31016 1.35643 5.14793 1.15224 5.06335C1.11756 5.04899 1.0452 5.02681 0.8552 5.01385ZM11.8107 4.99992H3.18933C3.26749 5.23126 3.29962 5.46462 3.31554 5.69793C3.33335 5.95898 3.33334 6.27439 3.33333 6.63993L3.33333 11.6666C3.33333 12.4758 3.3351 12.9989 3.38692 13.3843C3.43552 13.7458 3.51397 13.8591 3.57741 13.9225C3.64085 13.9859 3.75414 14.0644 4.11559 14.113C4.50101 14.1648 5.0241 14.1666 5.83333 14.1666H9.16667C9.9759 14.1666 10.499 14.1648 10.8844 14.113C11.2459 14.0644 11.3592 13.9859 11.4226 13.9225C11.486 13.8591 11.5645 13.7458 11.6131 13.3843C11.6649 12.9989 11.6667 12.4758 11.6667 11.6666V6.63993C11.6667 6.27439 11.6666 5.95898 11.6845 5.69793C11.7004 5.46462 11.7325 5.23126 11.8107 4.99992Z" fill="#898989"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.67175 0.101025C8.31844 0.0332505 7.90785 0 7.50015 0C7.09245 4.96705e-08 6.68185 0.0332505 6.32855 0.101025C6.15192 0.134907 5.979 0.179406 5.82234 0.238021C5.68005 0.291261 5.48597 0.37965 5.32178 0.532849C4.98526 0.84682 4.96699 1.37414 5.28096 1.71065C5.57723 2.0282 6.06348 2.06237 6.40011 1.8014C6.40204 1.80065 6.40412 1.79985 6.40639 1.799C6.45085 1.78237 6.52809 1.7598 6.64254 1.73785C6.87139 1.69395 7.17407 1.66667 7.50015 1.66667C7.82623 1.66667 8.12891 1.69395 8.35775 1.73785C8.4722 1.7598 8.54944 1.78237 8.59391 1.799C8.59617 1.79985 8.59826 1.80065 8.60018 1.8014C8.93681 2.06237 9.42306 2.0282 9.71933 1.71065C10.0333 1.37414 10.015 0.846819 9.67852 0.532848C9.51432 0.37965 9.32025 0.29126 9.17795 0.23802C9.02129 0.179405 8.84837 0.134907 8.67175 0.101025Z" fill="#898989"/>
</svg>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</section>
</div>
</li>
<?php endif; ?>
<?php if(isset($header['main']['show_track']) && $header['main']['show_track'] == 1): ?>
<li class="hidden md:block ml-5">
<a href="<?php echo e(route('site.trackOrder')); ?>" class="relative py-2 block w-fill ">
<div slot="icon" class="relative flex flex-col justify-center items-center">
<svg class="neg-transition-scale" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 3.66667C7.39763 3.66667 3.66667 7.39763 3.66667 12C3.66667 16.6024 7.39763 20.3333 12 20.3333C16.6024 20.3333 20.3333 16.6024 20.3333 12C20.3333 7.39763 16.6024 3.66667 12 3.66667ZM2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z" fill="<?php echo e($header['main']['text_color']); ?>"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.7559 7.2441C16.9791 7.46729 17.0571 7.79743 16.9573 8.09688L14.8739 14.3469C14.791 14.5957 14.5957 14.791 14.3469 14.8739L8.09688 16.9573C7.79743 17.0571 7.46729 16.9791 7.2441 16.7559C7.02091 16.5328 6.94297 16.2026 7.04279 15.9032L9.12612 9.65317C9.20907 9.40433 9.40433 9.20907 9.65317 9.12612L15.9032 7.04279C16.2026 6.94297 16.5328 7.02091 16.7559 7.2441ZM10.5755 10.5755L9.15097 14.8491L13.4245 13.4245L14.8491 9.15097L10.5755 10.5755Z" fill="<?php echo e($header['main']['text_color']); ?>"/>
</svg>
<p style="color: <?php echo e($header['main']['text_color']); ?>" class="text-xs text-xss font-medium roboto-medium text-center mt-2 leading-3"><?php echo e(__('Track Order')); ?></p>
</div>
</a>
</li>
<?php endif; ?>
</ul>
</div>
</div>
</div>
<!-- Start Header -->
</div>
</section>
<?php /**PATH /home/picotech/domains/ecom1.picotech.app/public_html/resources/views////site/layouts/includes/header.blade.php ENDPATH**/ ?>
|