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/public_html/dev/storage/framework/views/ |
<?php $__env->startSection('title',$meta_title); ?>
<?php $__env->startSection('meta_title',$meta_title); ?>
<?php $__env->startSection('meta_description',$meta_description); ?>
<?php $__env->startSection('meta_keywords',$meta_keywords); ?>
<?php $__env->startSection('content'); ?>
<?php /*start basket*/ ?>
<?php $__empty_1 = true; foreach($basket as $item): $__empty_1 = false; ?>
<?php
$has_table=$item->attributes->has_table;
$has_table_by_default=$item->attributes->has_table_by_default;
$reserved_until=\Carbon\Carbon::createFromFormat('Y-m-d H:i:s',$item->attributes->reserved_until);
$reserved_ttl = $reserved_until->diffInSeconds(null,false);
$reserved_ttl = \Carbon\Carbon::now()->diffInSeconds($reserved_until,false);
if ($reserved_ttl<0)
$reserved_ttl=0;
?>
<div book-zone" id="zoneId<?php echo e($item->id); ?>" avuntil="<?php echo e($item->attributes->reserved_until); ?>" style="margin-top:10px;">
<div class="counter-background">
<div class="row center">
<!-- start title-->
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 display-inline">
<div class="clearfix center">
<?php /*<div class="pull-left display-inline-tab">*/ ?>
<?php /*<img class="img-responsive clock-icon" src="<?php echo e(asset('/themes/frontend_new/assets/img/clock.png')); ?>"/>*/ ?>
<?php /*</div>*/ ?>
<div class="pull-left display-inline-tab">
<div class="title-book">
<?php /*<b>Time Left</b> for booking*/ ?>
<?php /*<b>Time to complete</b> this booking*/ ?>
<b>Time remaining</b> to confirm this booking
</div>
</div>
</div>
</div>
<!-- end title-->
<!-- start counter-->
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 display-inline">
<div id="book-time-01" class="pull-right">
<div class="clock-01" clocktime="<?php echo e($reserved_ttl); ?>"></div>
<div class="message"></div>
</div>
</div>
<!-- end counter-->
<!-- start btns-->
<?php /*<div class="col-xs-12 col-sm-6 col-md-3 col-lg-4 display-inline">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-10 col-lg-6 col-md-offset-2 col-lg-offset-6">
<a href="<?php echo e(route('bookings.basket.checkout')); ?>" class="checkout-pay">CHECKOUT & PAY</a>
</div>
</div>
</div>*/ ?>
<!-- end btns-->
</div>
</div>
<div class="dark-book-gray">
<div class="row">
<!-- start img therapist-->
<div class="col-xs-12 col-sm-4 col-md-2">
<?php foreach($item->attributes->therapistImage as $image): ?>
<img class="img-responsive" src="<?php echo e($image); ?>" style="margin-bottom:4px!important;"/>
<?php endforeach; ?>
</div>
<!-- end img therapist-->
<!-- start book details-->
<div class="col-xs-12 col-sm-8 col-md-10">
<div class="shaded-background">
<div class="row">
<!-- start book details text-->
<div class="col-xs-12 col-sm-12 col-md-5">
<div class="row list-details">
<div class="col-xs-6 col-sm-3 col-md-3">
<div class="text-details">
<div class="title-desc">THERAPIST NAME</div>
<div class="text-desc">
<?php echo e(implode(', ',$item->attributes->therapist)); ?>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-3 col-md-3">
<div class="text-details">
<div class="title-desc">TIME BOOKED</div>
<div class="text-desc"><?php echo e($item->attributes->hour); ?></div>
</div>
</div>
<div class="col-xs-6 col-sm-3 col-md-3">
<div class="text-details">
<div class="title-desc">DATE BOOKED</div>
<div class="text-desc"><?php echo e($item->attributes->date); ?></div>
</div>
</div>
<div class="col-xs-6 col-sm-3 col-md-3">
<div class="text-details">
<div class="title-desc">DURATION OF MASSAGE</div>
<div class="text-desc"><?php echo e($item->attributes->duration); ?></div>
</div>
</div>
<div class="col-xs-6 col-sm-3 col-md-6">
<div class="text-details">
<div class="title-desc">TYPE OF MASSAGE</div>
<div class="text-desc"><?php echo e($item->attributes->massage_type); ?> ( <?php echo e($item->attributes->type); ?> )</div>
</div>
</div>
<?php /*<?php if($item->attributes->focal_points): ?>
<div class="col-xs-6 col-sm-3 col-md-3">
<div class="text-details">
<div class="title-desc">FOCAL POINT</div>
<div class="text-desc"><?php echo e($item->attributes->focal_points); ?></div>
</div>
</div>
<?php endif; ?>*/ ?>
<div class="col-xs-6 col-sm-6 col-md-6">
<div class="text-details">
<div class="title-desc">LOCATION</div>
<div class="text-desc"><?php echo e($item->attributes->location); ?></div>
</div>
</div>
</div>
</div>
<!-- end book details text-->
<div class="col-xs-12 col-sm-12 col-md-7">
<div class="row" id="<?php echo e($item->id); ?>">
<div class="col-xs-12 col-sm-12 col-md-7">
<div class="price-details">TOTAL COST: <span class="price-value">₤<?php echo e($item->getPriceSumWithConditions()); ?></span></div>
<?php if($item->attributes->has_table_by_default): ?>
<div class="table-added">THE MASSAGE TABLE IS INCLUDED</div>
<?php elseif($item->attributes->has_table): ?>
<div class="table-added">MASSAGE TABLE ADDED</div>
<?php endif; ?>
<div class="table-added">TRAVEL SUPPLEMENTS ₤<?php echo e($item->attributes->transport_cost); ?></div>
</div>
<div class="col-xs-12 col-sm-12 col-md-5 actionAddTable">
<div class="row">
<div class="col-xs-8 col-sm-8 col-md-8">
<?php if(!$has_table_by_default): ?>
<?php if(!$has_table): ?>
<a class="add-table-massage" itemid="<?php echo e($item->id); ?>">
ADD A<br/>
MASSAGE<br/>
TABLE<br/>
₤<?php echo e($item->quantity*env('TABLE_VALUE',9.99)); ?>
</a>
<?php else: ?>
<div class="add-table-massage-check-img" itemid="<?php echo e($item->id); ?>"><img class="img-responsive" src="<?php echo e(asset('/themes/frontend/assets/img/table-massage-hvr.png')); ?>"/></div>
<a class="add-table-massage-checked" itemid="<?php echo e($item->id); ?>">
ADD A<br/>
MASSAGE<br/>
TABLE<br/>
₤<?php echo e($item->quantity*env('TABLE_VALUE',9.99)); ?>
</a>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="col-xs-8 col-sm-8 col-md-8">
<button class="cancel-btn" cancelId="<?php echo e($item->id); ?>">CANCEL</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- start book details-->
</div>
</div>
<!-- end basket info-->
</div>
<?php endforeach; if ($__empty_1): ?>
<div class="counter-background">
<div class="row center">
<!-- start title-->
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 display-inline">
<div class="clearfix center">
<div class="pull-left display-inline-tab">
<img class="img-responsive clock-icon" src="<?php echo e(asset('/themes/frontend_new/assets/img/clock.png')); ?>"/>
</div>
<div class="pull-left display-inline-tab">
<div class="title-book">
Your basket is empty
</div>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php /*end basket*/ ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('custom_scripts'); ?>
<script type="text/javascript">
$(document).ready(function () {
//add table
$("body").on('click','.add-table-massage',function(){
var elID = $(this).attr('itemid');
var itemPrice = $("#itemPrice"+elID);
var priceValue = itemPrice.find('.price-value').html();
$.ajax({
method: "POST",
url: "<?php echo route('bookings.basket.add_table'); ?>",
cache: false,
data: {itemId: elID},
beforeSend: function() {
itemPrice.find('.actionAddTable').hide();
itemPrice.find('.price-value').html("<i class='fa fa-spin fa-spinner'></i>");
},
dataType: "json",
})
.error(function(data){
var response = JSON.parse(data.responseText);
//show error in modal
var modal = $("#modalInfo");
modal.find('.modal-title').html('Sorry');
modal.find('.modal-body').html('<h4>'+response.message+'</h4>');
modal.modal('show');
//display info again
itemPrice.find('.price-value').html(priceValue);
itemPrice.find('.actionAddTable').show();
})
.done(function(data) {
window.location.reload();
});
});
//remove table
$("body").on('click','.add-table-massage-checked, .add-table-massage-check-img',function(){
var elID = $(this).attr('itemid');
var itemPrice = $("#itemPrice"+elID);
$.ajax({
method: "POST",
url: "<?php echo route('bookings.basket.remove_table'); ?>",
cache: false,
data: {itemId: elID},
beforeSend: function() {
itemPrice.find('.actionAddTable').hide();
itemPrice.find('.price-value').html("<i class='fa fa-spin fa-spinner'></i>");
},
dataType: "json",
})
.done(function(data) {
window.location.reload();
});
});
//remove teim from table
$("body").on('click','.cancel-btn',function(){
var elID = $(this).attr('cancelId');
var zone = $("#zoneID"+elID);
$.ajax({
method: "POST",
url: "<?php echo route('bookings.basket.cancel_item'); ?>",
cache: false,
data: {itemId: elID},
beforeSend: function() {
zone.html("<div class='row'><div class='col-md-16 text-center'><i class='fa fa-spin fa-spinner fa-4x'></i></div></div>");
},
dataType: "html",
})
.done(function(data) {
window.location.reload();
});
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make("schedules::frontend_new.layouts.basket", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>