Server : Apache System : Linux 145.162.205.92.host.secureserver.net 5.14.0-611.45.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 1 05:56:53 EDT 2026 x86_64 User : tradze ( 1001) PHP Version : 8.1.34 Disable Function : NONE Directory : /home/tradze/www/dev/storage/framework/views/ |
<link rel="stylesheet" href="<?php echo e(asset('/themes/frontend_new/assets/css/NewCss/animate.css')); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo e(asset('/themes/frontend_new/assets/css/NewCss/custom-style.css')); ?>" type="text/css" media="screen" />
<?php /*START HEADER DESKTOP & TABLETA*/ ?>
<div class="menu-background hide-tel">
<div class="container">
<div class="row d-flex-row">
<?php /*start logo*/ ?>
<div class="header-logo">
<a href="<?php echo e(url('/')); ?>">
<img class="img-responsive" src="<?php echo e(asset('/themes/frontend_new/assets/img/logo-tradze.svg')); ?>" />
</a>
</div>
<?php /*end logo*/ ?>
<?php /*start menu*/ ?>
<div class="header-right">
<div class="header-right">
<div class="header-right-nav-menus">
<div class="menu">
<ul>
<!-- <li><a href="<?php echo e(url('our-story')); ?>">Our Story</a></li> -->
<!-- <li><a href="<?php echo e(url('commercial')); ?>">Commercial</a></li> -->
<li><a href="<?php echo e(url('contact')); ?>">Contact</a></li>
<li><a href="<?php echo e(url('membership/partner-with-us')); ?>">Partner</a></li>
<!-- <li><a href="<?php echo e(url('treatments')); ?>">Treatments</a></li>-->
<!-- <li><a href="<?php echo e(url('zenstars-service-providers')); ?>">Stars</a></li> -->
<!-- <li><a href="<?php echo e(url('blog/index')); ?>">Blog</a></li> -->
<!-- <li><a href="<?php echo e(url('prices')); ?>">Prices</a></li>
--><!-- <li><a href="<?php echo e(url('offers')); ?>">Offers</a></li>
-->
<!-- <li><a href="<?php echo e(url('gifts')); ?>">Gifts</a></li> -->
</ul>
</div>
</div>
<div class="header-navbar-right">
<div class="header-navbar-right-inner">
<div class="header-navbar-right-button-group">
<div class="become-btn">
<?php if(!Auth::check()): ?>
<a href="<?php echo e(url('register')); ?>" class="log-in">REGISTER</a>
<?php endif; ?>
</div>
<?php if(Auth::check()): ?>
<?php if(Auth::user()->hasRole('salon')): ?>
<div class="become-btn">
<a href="<?php echo e(route('booking.salon.details', ['id'=> Auth::user()->name_slug])); ?>">GO TO HOME</a>
</div>
<?php else: ?>
<div class="become-btn">
<a href="<?php echo e(url('membership/home')); ?>">PARTNER WITH US</a>
</div>
<?php endif; ?>
<?php else: ?>
<div class="become-btn">
<a href="<?php echo e(url('membership/home')); ?>">PARTNER WITH US</a>
</div>
<?php endif; ?>
</div>
</div>
</div>
<div class="header-auth">
<div class="header-auth-dflex">
<!-- <div class="header-search">
<a href="javascript:void(0)" data-toggle="modal" data-target=".bs-example-modal-lg">
<img src="<?php echo e(asset('/themes/frontend_new/assets/img/ic-search.svg')); ?>" />
</a>
</div> -->
<!-- <div class="header-card-area">
<div class="dropdown">
<button class="dropdown-toggle" type="button" data-toggle="dropdown">
<img src="<?php echo e(asset('/themes/frontend_new/assets/img/ic-cart.svg')); ?>"/>
<span class="notification-bg"><?php echo e(\Cart::getTotalQuantity()); ?></span>
</button>
<ul class="dropdown-menu">
<div class="product-item-list">
<?php if (\Cart::getTotalQuantity() > 0) { ?>
<?php foreach(\Cart::getContent()->sortBy('id') as $cart): ?>
<div class="product-item">
<div class="product-item-img">
<a href="<?php echo e(url('booking/basket/checkout')); ?>">
<?php foreach($cart->attributes->therapistImage as $image): ?>
<img src="<?php echo e($image); ?>"/>
<?php endforeach; ?>
</a>
</div>
<div class="product-item-dis">
<div class="dtleft">
<h4><?php echo e($cart->attributes->massage_type); ?></h4>
<p><?php echo e($cart->attributes->date); ?></p>
</div>
<div class="dtright">
<span>£ <?php echo e(number_format($cart->getPriceSumWithConditions(),2)); ?></span>
</div>
</div>
</div>
<?php endforeach; ?>
<?php } else {
echo "No Item is added in cart";
} ?>
</div>
</ul>
</div>
</div> -->
<?php if(Auth::check()): ?>
<?php
$loggedUser=Auth::user();
?>
<div class="dropdown log-in_dropdown">
<a class="log-in dropdown-toggle" href="#" type="button" data-toggle="dropdown">
<?php if(Auth::check() && Auth::user()->profile->avatar): ?>
<img class="dp-img 13" src="<?php echo e(asset('/images/'. Auth::user()->profile->avatar)); ?>" />
<?php else: ?>
<i class="font-icon fa fa-user"></i>
<?php endif; ?>
</a>
<ul class="dropdown-menu">
<?php if($loggedUser->is('developer') || ($loggedUser->is('salon') && (session()->has('subscription_status') && session('subscription_status') == 1) ) ): ?>
<li><a href="<?php echo e(url('admin')); ?>">ADMIN</a></li>
<li role="separator" class="divider"></li>
<?php endif; ?>
<?php if(($loggedUser->is('salon') && (session()->has('subscription_status') && session('subscription_status') == 1) )): ?>
<li><a class="bookings-page-link" href="<?php echo e(url('admin/schedules/bookings')); ?>">My bookings
<span id="myBookingsBadge" class="badge">0</span>
</a></li>
<?php else: ?>
<li><a class="bookings-page-link" href="<?php echo e(url('account/mybookings')); ?>">My bookings
<span id="myBookingsBadge" class="badge">0</span>
</a></li>
<?php endif; ?>
<?php if(!$loggedUser->is('salon')): ?>
<li><a href="<?php echo e(route('account.profile.edit')); ?>">Account details</a></li>
<!-- <li><a href="<?php echo e(route('account.profile.myvouchers')); ?>">My vouchers</a></li> -->
<li><a href="<?php echo e(route('account.address.index')); ?>">My address book</a></li>
<li><a href="<?php echo e(route('account.billingaddress.index')); ?>">My billing address</a></li>
<li><a class="past-bookings-page-link" href="<?php echo e(url('account/pastbookings')); ?>">Past bookings
<span id="pastBookingsBadge" class="badge">0</span>
</a></li>
<?php endif; ?>
<?php if($loggedUser->is('salon') && (session()->has('subscription_status') && session('subscription_status') != 1) ): ?>
<li><a href="<?php echo e(url('membership/get-membership')); ?>">Buy Subscription</a></li>
<?php endif; ?>
<?php if($loggedUser->is('salon') && $loggedUser->stripe_customer_id != NULL): ?>
<li><a href="<?php echo e(url('membership/my-membership')); ?>">My Membership</a></li>
<?php endif; ?>
<li><a href="<?php echo e(url('logout')); ?>">Logout</a></li>
</ul>
</div>
<?php endif; ?>
<!-- <div class="header-avtar">
<a href="javascript:void(0)">
<img src="<?php echo e(asset('/themes/frontend_new/assets/img/ic-admin.svg')); ?>"/>
</a>
</div> -->
</div>
</div>
</div>
</div>
<?php /*end menu*/ ?>
</div>
</div>
</div>
<?php /*END HEADER DESKTOP & TABLETA*/ ?>
<?php /*START HEADER TELEFON*/ ?>
<div id="menu-fix-categs-tel" class="hide-desktop hide-tab">
<div class="clearfix">
<!-- <div class="demo-1 pull-left">
<div class="main clearfix">
<div class="column">
<div id="dl-menu" class="dl-menuwrapper">
<button class="dl-trigger">
<span class=""><i class="fa fa-bars" aria-hidden="true"></i></span>
</button>
<ul class="dl-menu" style="width:100%;z-index: 99999999!important;">
<li><a href="<?php echo e(url('our-story')); ?>">Our Story</a></li>
<li><a href="<?php echo e(url('commercial')); ?>">Commercial</a></li>
<li><a href="<?php echo e(url('contact')); ?>">Contact</a></li>
<li><a href="<?php echo e(url('treatments')); ?>">Treatments</a></li>
<li><a href="<?php echo e(url('zenstars-service-providers')); ?>">Stars</a></li>
<li><a href="<?php echo e(url('blog/index')); ?>">Blog</a></li>
<li><a href="<?php echo e(url('prices')); ?>">Prices</a></li>
<li><a href="<?php echo e(url('offers')); ?>">Offers</a></li>
<li><a href="<?php echo e(url('gifts')); ?>">Gifts</a></li>
</ul>
</div>
<?php /*/dl-menuwrapper*/ ?>
</div>
</div>
</div> -->
<div class="pull-left logo-telefon">
<a class="hide-desktop hide-tab" href="<?php echo e(url('/')); ?>">
<img class="img-responsive" src="<?php echo e(asset('/themes/frontend_new/assets/img/small-logo.svg')); ?>" />
</a>
</div>
<div id="inchide">
<?php /*start contact*/ ?>
<!-- <div class="pull-left call-icon-tel" onclick="window.open('tel:+44(0)203 556 0984', '_self', false);">
<img src="<?php echo e(asset('/themes/frontend_new/assets/img/call-icon.png')); ?>"/>
</div> -->
<?php /*end contact*/ ?>
<?php /*start account telefon*/ ?>
<div class="panel anuleaza-panel top-panel">
<!-- <?php if(Auth::check()): ?>
<?php if(Auth::user()->hasRole('salon')): ?>
<div class="pull-left memeber-icon-tel">
<a href="<?php echo e(route('booking.salon.details', ['id'=> Auth::user()->name_slug])); ?>">
<i class="font-icon fa fa-home"></i>
</a>
</div>
<?php else: ?>
<div class="pull-left memeber-icon-tel">
<a href="<?php echo e(url('membership/home')); ?>">
<i class="font-icon fa fa-handshake-o"></i>
</a>
</div>
<?php endif; ?>
<?php else: ?>
<div class="pull-left memeber-icon-tel">
<a href="<?php echo e(url('membership/home')); ?>">
<i class="font-icon fa fa-handshake-o"></i>
</a>
</div>
<?php endif; ?> -->
<div class="pull-left account-icon-tel">
<a data-toggle="collapse" data-parent="#inchide" href="#collapse-account" aria-expanded="true" aria-controls="collapse-account">
<!-- <i class="font-icon fa fa-user"></i> -->
<!-- <img class="dp-img" src="<?php echo e(asset('/themes/frontend_new/assets/img/profile-pic-new.svg')); ?>"/> -->
<?php if(Auth::check() && Auth::user()->profile->avatar): ?>
<img class="dp-img" src="<?php echo e(asset('/images/'. Auth::user()->profile->avatar)); ?>" />
<?php else: ?>
<i class="font-icon fa fa-user"></i>
<?php endif; ?>
</a>
</div>
<div id="collapse-account" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
<?php if(!Auth::check()): ?>
<div class="row links-account-tel">
<!-- <div class="col-xs-6">
<a href="<?php echo e(url('login')); ?>" class="log_in_tel"> LOG IN</a>
</div> -->
<div class="col-xs-12">
<a href="<?php echo e(url('register')); ?>" class="creare-cont-tel">REGISTER</a>
</div>
</div>
<?php else: ?>
<?php
$loggedUser=Auth::user();
?>
<div class="row links-account-tel">
<?php if($loggedUser->is('developer') || ($loggedUser->is('salon') && (session()->has('subscription_status') && session('subscription_status') == 1) ) ): ?>
<div class="col-xs-12">
<a href="<?php echo e(url('admin')); ?>" class="btn-after-log">ADMIN</a>
</div>
<?php endif; ?>
<?php if($loggedUser->is('salon') && session()->has('subscription_status') && session('subscription_status') == 1): ?>
<div class="col-xs-12">
<a class="bookings-page-link" href="<?php echo e(url('admin/schedules/bookings')); ?>" class="btn-after-log">
My bookings
<span id="myBookingsBadge" class="badge">0</span>
</a>
</div>
<?php else: ?>
<div class="col-xs-12">
<a class="bookings-page-link" href="<?php echo e(url('account/mybookings')); ?>" class="btn-after-log">
My bookings
<span id="myBookingsBadgeMob" class="badge">0</span>
</a>
</div>
<?php endif; ?>
<?php if(!$loggedUser->is('salon')): ?>
<div class="col-xs-12">
<a href="<?php echo e(route('account.profile.edit')); ?>" class="btn-after-log">Account details</a>
</div>
<!-- <div class="col-xs-12">
<a href="<?php echo e(route('account.profile.myvouchers')); ?>" class="btn-after-log">My vouchers</a>
</div> -->
<div class="col-xs-12">
<a href="<?php echo e(route('account.address.index')); ?>" class="btn-after-log">My address book</a>
</div>
<div class="col-xs-12">
<a href="<?php echo e(route('account.billingaddress.index')); ?>" class="btn-after-log">My billing address</a>
</div>
<div class="col-xs-12">
<a class="past-bookings-page-link" href="<?php echo e(url('account/pastbookings')); ?>" class="btn-after-log">
Past bookings
<span id="pastBookingsBadgeMob" class="badge">0</span>
</a>
</div>
<?php endif; ?>
<?php if($loggedUser->is('salon') && (session()->has('subscription_status') && session('subscription_status') != 1) ): ?>
<div class="col-xs-12"><a href="<?php echo e(url('membership/get-membership')); ?>" class="btn-after-log">Buy Subscription</a></div>
<?php endif; ?>
<?php if($loggedUser->is('salon') && $loggedUser->stripe_customer_id != NULL): ?>
<div class="col-xs-12"><a href="<?php echo e(url('membership/my-membership')); ?>" class="btn-after-log">My Membership</a></div>
<?php endif; ?>
<div class="col-xs-12">
<a href="<?php echo e(url('logout')); ?>" class="btn-after-log">
Logout
</a>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php /*end account telefon*/ ?>
<?php /*start basket*/ ?>
<div class="panel anuleaza-panel top-panel">
<!-- <div class="pull-left basket-tel">
<a data-toggle="collapse" data-parent="#inchide" href="#collapse-search" aria-expanded="true"
aria-controls="collapse-search">
<i class="font-icon fa fa-shopping-cart"></i>
</a>
</div> -->
<?php if(Auth::check()): ?>
<?php if(Auth::user()->hasRole('salon')): ?>
<div class="pull-left basket-tel">
<a href="<?php echo e(route('booking.salon.details', ['id'=> Auth::user()->name_slug])); ?>">
<i class="font-icon fa fa-home"></i>
</a>
</div>
<?php else: ?>
<div class="pull-left contact-us">
<a href="<?php echo e(url('/contact')); ?>">
<i class="font-icon fa fa-message"></i>
</a>
</div>
<div class="pull-left basket-tel">
<a href="<?php echo e(url('membership/home')); ?>">
<i class="font-icon fa fa-handshake-o"></i>
</a>
</div>
<?php endif; ?>
<?php else: ?>
<div class="pull-left contact-us">
<a href="<?php echo e(url('/contact')); ?>">
<i class="font-icon fa fa-message"></i>
</a>
</div>
<div class="pull-left basket-tel">
<a href="<?php echo e(url('membership/home')); ?>">
<i class="font-icon fa fa-handshake-o"></i>
</a>
</div>
<?php endif; ?>
<div id="collapse-search" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
<div class="basket-zone">
<div class="product-sep-line">
<div class="row">
<div class="col-xs-8">
<div class="product-type"><?php echo e(\Cart::getTotalQuantity()); ?> Items</div>
</div>
<div class="col-xs-2">
<div class="price-info">₤<?php echo e(\Cart::getTotal()); ?></div>
</div>
</div>
</div>
<?php /*<a href="<?php echo e(route('bookings.basket.index')); ?>" class="checkout-btn">CHECKOUT</a>*/ ?>
<a href="<?php echo e(route('bookings.basket.checkout')); ?>" class="checkout-btn">CHECKOUT</a>
</div>
</div>
</div>
</div>
<?php /*end basket*/ ?>
</div>
<?php /*end account telefon*/ ?>
</div>
</div>
<?php /*END HEADER TELEFON*/ ?>
<!-- Search bar Popup -->
<div class="modal modal-search fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="container">
<div class="search-area">
<input id="searchInput" type="text" placeholder="Search Establishment">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="18px" height="18px" viewBox="0 0 18 18" enable-background="new 0 0 18 18" xml:space="preserve">
<rect x="-0.5" y="8" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -3.7279 9)" width="19.001" height="2"></rect>
<rect x="-0.5" y="8" transform="matrix(0.7071 0.7071 -0.7071 0.7071 9.0003 -3.7281)" width="19" height="2"></rect>
</svg>
</button>
</div>
<div id="searchResults" class="search-area row" style="color: white;">
</div>
</div>
</div>
</div>
</div>
<script>
var baseUrl = "<?php echo e(url('/')); ?>";
</script>
<!-- Socket -->
<script src="<?php echo e(asset('/socket/socket.io.min.js')); ?>"></script>
<!-- Sweet Alert -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<?php
$currentUrl = url()->current();
?>
<script>
const currentUrl = "<?php echo e(request()->path()); ?>";
const excludedPaths = ['booking/basket/checkout', 'booking/basket/pay'];
// setTimeout(() => {
if (!excludedPaths.includes(currentUrl)) {
// Example: call your backend API with the current URL
fetch('/booking/basket/cancelCart', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRF-TOKEN': '<?php echo e(csrf_token()); ?>'
},
body: JSON.stringify({
page_url: currentUrl
})
})
.then(response => response.json())
.then(data => {
console.log("API Response:", data);
});
}
// }, 3000)
<?php if(Auth::check()): ?>
//Connect socket user
window.socket = io("https://api.tradze.com/");
// Register logged-in user with Socket.IO
window.socket.emit("register", {
userId: "<?php echo e(Auth::id()); ?>"
});
// Fetch booking counts for badge
function fetchBookingCounts() {
fetch('/count-bookings?userId=<?php echo e(Auth::user()->id); ?>', {
method: 'GET',
headers: {
'Accept': 'application/json',
'X-CSRF-TOKEN': '<?php echo e(csrf_token()); ?>'
}
})
.then(response => response.json())
.then(data => {
console.log("Booking Counts:", data);
const bookingsPageLinks = document.querySelectorAll('.bookings-page-link'); // NodeList
const pastBookingsPageLinks = document.querySelectorAll('.past-bookings-page-link'); // NodeList
// My Bookings Badge
const myBadge = document.querySelector('#myBookingsBadge');
const myBadgeMob = document.querySelector('#myBookingsBadgeMob');
if (data.upcomingBookings > 0) {
if (myBadge) {
myBadge.textContent = data.upcomingBookings;
myBadgeMob.textContent = data.upcomingBookings;
// myBadge.classList.remove('hidden');
}
bookingsPageLinks.forEach(link => link.classList.remove('disabled-link'));
} else {
bookingsPageLinks.forEach(link => link.classList.add('disabled-link'));
}
// Past Bookings Badge
const pastBadge = document.querySelector('#pastBookingsBadge');
const pastBadgeMob = document.querySelector('#pastBookingsBadgeMob');
if (data.pastBookings > 0) {
if (pastBadge) {
pastBadge.textContent = data.pastBookings;
pastBadgeMob.textContent = data.pastBookings;
// pastBadge.classList.remove('hidden');
}
pastBookingsPageLinks.forEach(link => link.classList.remove('disabled-link'));
} else {
pastBookingsPageLinks.forEach(link => link.classList.add('disabled-link'));
}
})
.catch(error => console.error("Error fetching booking counts:", error));
}
// Call immediately once
fetchBookingCounts();
// Call every 3 seconds
// setInterval(fetchBookingCounts, 3000);
<?php endif; ?>
</script>
<style>
.badge {
background-color: red;
color: white;
font-size: 12px;
font-weight: bold;
border-radius: 50%;
padding: 3px 7px;
margin-left: 0px;
display: inline-block;
vertical-align: middle;
}
.hidden {
display: none;
}
.disabled-link {
pointer-events: none;
text-decoration: none;
cursor: default;
color: #333 !important;
text-transform: uppercase !important;
}
.row.links-account-tel {
text-align: center;
}
.links-account-tel .bookings-page-link {
position: relative;
display: inline-block;
color: #333 !important;
text-decoration: none;
text-transform: uppercase !important;
}
.links-account-tel .past-bookings-page-link {
position: relative;
display: inline-block;
color: #333 !important;
text-decoration: none;
text-transform: uppercase !important;
}
fa-comment-alt:before,
.fa-message:before {
content: "\f27a";
}
</style>