shell bypass 403
<!doctype html>
<html lang="en" dir="{{ session('direction') == 2 ? 'rtl' : 'ltr' }}" class="light">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta property="og:title" content="{{ @helper::appdata()->og_title }}" />
<meta property="og:description" content="{{ @helper::appdata()->og_description }}" />
<meta property="og:image" content='{{ helper::image_path(@helper::appdata()->og_image) }}' />
<script>
const theme = localStorage.getItem('theme');
if (theme === 'dark') {
document.documentElement.classList.add('dark');
} else {
document.documentElement.classList.add('light');
}
</script>
<title> {{ @helper::appdata()->title }} @yield('page_title')</title>
<link rel="icon" href="{{ helper::image_path(@helper::appdata()->favicon) }}"><!-- Favicon -->
<link rel="stylesheet" href="{{ url(env('ASSETSPATHURL') . 'web-assets/css/bootstrap.min.css') }}">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="{{ url(env('ASSETSPATHURL') . 'web-assets/css/owl_carousel/owl.carousel.min.css') }}">
<!-- owl-carousel css -->
<link rel="stylesheet"
href="{{ url(env('ASSETSPATHURL') . 'web-assets/css/owl_carousel/owl.theme.default.min.css') }}">
<!-- owl-carousel css -->
<link rel="stylesheet" href="{{ url(env('ASSETSPATHURL') . 'web-assets/css/font_awesome/all.css') }}">
<!-- Font Awesome CSS -->
<!-- COMMON-CSS -->
<link rel="stylesheet" href="{{ url(env('ASSETSPATHURL') . 'admin-assets/assets/css/toastr/toastr.min.css') }}">
<!-- Toastr CSS -->
<link rel="stylesheet"
href="{{ url(env('ASSETSPATHURL') . 'admin-assets/assets/css/sweetalert/sweetalert2.min.css') }}">
<!-- Sweetalert CSS -->
<link rel="stylesheet" href="{{ url(env('ASSETSPATHURL') . 'web-assets/css/style.css') }}"><!-- Custom CSS -->
<link rel="stylesheet" href="{{ url(env('ASSETSPATHURL') . 'web-assets/css/responsive.css') }}">
<!-- Media Query Resposive CSS -->
<meta name="csrf-token" content="{{ csrf_token() }}" />
<!-- pwa -->
@if (@helper::checkaddons('pwa'))
@if (helper::appdata()->pwa == 1)
@include('web.pwa.pwa')
@endif
@endif
<!-- pwa -->
<!-- pixel -->
@if (@helper::checkaddons('pixel'))
@include('web.pixel.pixel')
@endif
<!-- pixel -->
<style>
:root {
--bs-primary: {{ helper::appdata()->web_primary_color }};
--bs-secondary: {{ helper::appdata()->web_secondary_color }};
}
</style>
@yield('styles')
</head>
<body>
<main id="main-content">
<div class="wrapper">
<input type="hidden" name="hdnsession" id="hdnsession" value="{{ session()->get('direction') }}">
@include('web.layout.header')
<div class="content-wrapper">
@yield('content')
@include('web.layout.footer')
@if (@helper::checkaddons('sales_notification'))
@include('web.sales_notification')
@endif
<!-- whatsapp chat -->
@if (@helper::checkaddons('whatsapp_message'))
@if (@whatsapp_helper::whatsapp_message_config()->whatsapp_chat_on_off == 1)
<div
class="{{ whatsapp_helper::whatsapp_message_config()->whatsapp_mobile_view_on_off == 1 ? 'd-block' : 'd-lg-block d-none' }}">
@include('web.whatsapp_chat')
</div>
@endif
@endif
<!-- Quick call -->
@if (@helper::checkaddons('quick_call'))
@if (@helper::appdata()->quick_call == 1)
<div
class="{{ helper::appdata()->quick_call_mobile_view_on_off == 1 ? 'd-block' : 'd-lg-block d-none' }}">
@include('web.quick_call')
</div>
@endif
@endif
</div>
</div>
</main>
<!-- Modal Item Details -->
<div class="modal modalitemdetails" id="modalitemdetails" tabindex="-1" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-md modal-dialog-centered">
<div class="modal-content" id="viewproduct_body">
</div>
</div>
</div>
<div class="modal" id="modal_selected_addons" tabindex="-1" aria-labelledby="selected_addons_Label"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header justify-content-between">
<h5 class="modal-title color-changer fw-500" id="selected_addons_Label"></h5>
<button type="button" class="bg-transparent border-0 m-0" data-bs-dismiss="modal"
aria-label="Close">
<i class="fa-regular fa-xmark fs-5 color-changer"></i>
</button>
</div>
<div class="modal-body p-0 extra-variation-modal">
<ul
class="list-group list-group-flush p-0 {{ session()->get('direction') == 2 ? 'text-right' : 'text-left' }}">
</ul>
<!-- Variants -->
<div class="p-3">
<div id="item-variations" class="">
</div>
<!-- Extras -->
<div id="item-extras" class="mt-2">
<div class="p-3">
<h5 class="fw-normal m-0 d-none" id="extras_title">{{ trans('labels.extras') }} </h5>
<ul class="m-0 ps-2">
</ul>
</div>
</div>
<!-- Addons -->
<div id="item-addons" class="mt-2">
<div class="p-3">
<h5 class="fw-normal m-0 d-none" id="addons_title">{{ trans('labels.addons') }} </h5>
<ul class="m-0 ps-2">
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal" id="reviewModal" aria-labelledby="reviewModalLabel" tabindex="-1" style="display: none;"
aria-hidden="true">
<form action="{{ URL::to('postreview') }}" method="post" enctype="multipart/form-data" id="post_review_form">
@csrf
<div class="modal-dialog modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header justify-content-between">
<h5 class="modal-title fw-500 color-changer" id="reviewModalLabel">
{{ trans('labels.write_review') }}</h5>
<button type="button" class="bg-transparent border-0 m-0" data-bs-dismiss="modal"
aria-label="Close">
<i class="fa-regular fa-xmark fs-5 color-changer"></i>
</button>
</div>
<div class="modal-body">
<div class="d-flex align-items-center gap-3">
<div class="review-modal-img">
<img src="{{ @$firstimage->image_url }}"
class="w-100 h-100 border rounded-2 object-fit-cover" alt="">
</div>
<input type="hidden" id="review_item" name="review_item"
value="{{ @$getitemdata->id }}">
<p class="fw-600">{{ @$getitemdata->item_name }}</p>
</div>
<div class="rating mt-2">
<input type="radio" name="ratting" value="5" id="star5"><label
for="star5">☆</label>
<input type="radio" name="ratting" value="4" id="star4"><label
for="star4">☆</label>
<input type="radio" name="ratting" value="3" id="star3"><label
for="star3">☆</label>
<input type="radio" name="ratting" value="2" id="star2"><label
for="star2">☆</label>
<input type="radio" name="ratting" value="1" id="star1"><label
for="star1">☆</label>
</div>
<div class="mt-3">
<label for="form-label"><span
class="fs-7">{{ trans('labels.write_review') }}</span></label>
<textarea class="form-control mt-1" type="text" name="review" placeholder="{{ trans('labels.review') }}"></textarea>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary fs-7">{{ trans('labels.submit') }}</button>
</div>
</div>
</div>
</form>
</div>
<!-- MODAL_USER_TYPE_SELECTION--START -->
<div class="modal" id="useroption" tabindex="-1" aria-labelledby="useroptionLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header justify-content-between">
<h5 class="modal-title fw-500 color-changer" id="useroptionLabel">
{{ trans('labels.proceed_as_guest_or_login') }}
</h5>
<button type="button" class="bg-transparent border-0 m-0" data-bs-dismiss="modal"
aria-label="Close">
<i class="fa-regular fa-xmark fs-5 color-changer"></i>
</button>
</div>
<div class="modal-body">
<p class="fs-7 twoline color-changer">
{{ trans('labels.dont_have_account_guest') }}
</p>
<div class="row g-3 justify-content-start social-share-icon mt-3">
<div class="col-md-6 col-12">
<a class="btn btn-outline-primary w-100 p-2" href="javascript:void(0)"
onclick="showlogin()" type="button">
<i class="fa-solid fa-user-plus"></i>
<span class="px-2">{{ trans('labels.create_account') }}</span>
</a>
</div>
<div class="col-md-6 col-12">
<a class="btn btn-primary w-100 p-2" target="_blank" onclick="checkout()">
<i class="fa-solid fa-address-card"></i>
<span class="px-2">{{ trans('labels.continue_as_guest') }}</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- MODAL-ORDER-TYPE-SELECTION--END -->
{{-- offer offcanvas start --}}
@if (@helper::checkaddons('coupon'))
@if (count(@helper::getcoupons()) > 0)
<div class="{{ session()->get('direction') == '2' ? 'rtl-buttons' : 'ltr-buttons' }}">
<button class="btn btn-primary offer-button" type="button" data-bs-toggle="offcanvas"
data-bs-target="#offcanvasOffer" aria-controls="offcanvasOffer">
<i class="fa-sharp fa-solid fa-badge-percent"></i> {{ trans('labels.offers') }}
</button>
</div>
<div class="offer">
<div class="offcanvas {{ session()->get('direction') == '2' ? 'offcanvas-start' : 'offcanvas-end' }}"
tabindex="-1" id="offcanvasOffer" aria-labelledby="offcanvasOfferLabel">
<div class="offcanvas-header justify-content-between border-bottom">
<div class="d-flex color-changer d-grid gap-2 align-items-center">
<i class="fa-sharp fa-solid fa-badge-percent fs-5"></i>
<h5 class="offcanvas-title fw-bold" id="offcanvasOfferLabel">{{ trans('labels.offers') }}
</h5>
</div>
<button type="button" class="bg-transparent border-0 p-0 m-0" data-bs-dismiss="offcanvas"
aria-label="Close">
<i class="fa-regular fa-xmark color-changer fs-4"></i>
</button>
</div>
<div class="offcanvas-body">
<div class="row g-3">
@foreach (helper::getcoupons() as $promocode)
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="d-flex justify-content-between">
<span class="coupons-label color-changer">{{ trans('labels.get') }}
{{ $promocode->offer_type == 1 ? helper::currency_format($promocode->offer_amount) : $promocode->offer_amount . '%' }}</span>
@if (request()->is('checkout*'))
<p class="fw-500 cursor-pointer copy_coupon_code mb-0 fs-7"
onclick="getoffercode('{{ $promocode->offer_code }}')"
data-bs-dismiss="offcanvas">
{{ trans('labels.copy_code') }}
</p>
@endif
</div>
<h6 class="pt-2 mb-0 color-changer offer-text fw-600">
{{ $promocode->offer_name }}</h6>
<p class="text-muted fw-500 fs-8 pt-2 mb-0">{{ $promocode->description }}
</p>
</div>
</div>
</div>
@endforeach
</div>
</div>
</div>
</div>
@endif
@endif
{{-- offer offcanvas end --}}
<div class="modal fade" id="modalbankdetails" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="modalbankdetailsLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header justify-content-between">
<h5 class="modal-title fw-500 color-changer" id="modalbankdetailsLabel">
{{ trans('labels.banktransfer') }}</h5>
<button type="button" class="bg-transparent border-0 m-0" data-bs-dismiss="modal"
aria-label="Close">
<i class="fa-regular fa-xmark fs-5 color-changer"></i>
</button>
</div>
<form enctype="multipart/form-data" action="{{ URL::to('placeorder') }}" method="POST">
<div class="modal-body">
@csrf
<input type="hidden" name="transaction_type" id="transaction_type" value="">
<input type="hidden" name="modal_customer_name" id="modal_customer_name" value="">
<input type="hidden" name="modal_customer_email" id="modal_customer_email" value="">
<input type="hidden" name="modal_customer_mobile" id="modal_customer_mobile"
value="">
<input type="hidden" name="modal_delivery_date" id="modal_delivery_date" value="">
<input type="hidden" name="modal_delivery_time" id="modal_delivery_time" value="">
<input type="hidden" name="modal_delivery_charge" id="modal_delivery_charge"
value="">
<input type="hidden" name="modal_address" id="modal_address" value="">
<input type="hidden" name="modal_address_type" id="modal_address_type" value="">
<input type="hidden" name="modal_city" id="modal_city" value="">
<input type="hidden" name="modal_state" id="modal_state" value="">
<input type="hidden" name="modal_country" id="modal_country" value="">
<input type="hidden" name="modal_landmark" id="modal_landmark" value="">
<input type="hidden" name="modal_pincode" id="modal_pincode" value="">
<input type="hidden" name="modal_message" id="modal_message" value="">
<input type="hidden" name="modal_subtotal" id="modal_subtotal" value="">
<input type="hidden" name="modal_discount_amount" id="modal_discount_amount"
value="">
<input type="hidden" name="modal_couponcode" id="modal_couponcode" value="">
<input type="hidden" name="modal_vendor_id" id="modal_vendor_id" value="">
<input type="hidden" name="modal_grand_total" id="modal_grand_total" value="">
<input type="hidden" name="modal_tax" id="modal_tax" value="">
<input type="hidden" name="modal_tax_name" id="modal_tax_name" value="">
<input type="hidden" name="modal_order_type" id="modal_order_type" value="">
<input type="hidden" name="modal_shipping_area" id="modal_shipping_area" value="">
<input type="hidden" name="modal_tips" id="modal_tips" value="">
<input type="hidden" name="modal_buynow" id="modal_buynow" value="">
<p class="color-changer pb-3 border-bottom mb-3">{{ trans('labels.payment_description') }}</p>
<p class="payment_description color-changer pb-3 border-bottom mb-3" id="payment_description">
</p>
<div class="form-group col-md-12">
<label for="screenshot"> {{ trans('labels.screenshot') }} </label>
<div class="controls">
<input type="file" name="screenshot" id="screenshot"
class="form-control @error('screenshot') is-invalid @enderror" required>
@error('screenshot')
<span class="text-danger"> {{ $message }} </span>
@enderror
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger px-4"
data-bs-dismiss="modal">{{ trans('labels.close') }}</button>
<button type="submit" class="btn btn-primary px-4"> {{ trans('labels.save') }} </button>
</div>
</form>
</div>
</div>
</div>
<!-- MODAL_working_hours--START -->
<div class="modal" id="modal_working_hours" tabindex="-1" aria-labelledby="working_hours_Label"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header justify-content-between">
<h5 class="modal-title fw-500 color-changer" id="working_hours_Label">
{{ trans('labels.working_hours') }}</h5>
<button type="button" class="bg-transparent border-0 m-0" data-bs-dismiss="modal"
aria-label="Close">
<i class="fa-regular fa-xmark fs-5 color-changer"></i>
</button>
</div>
<div class="modal-body py-0 px-3">
<ul class="list-group list-group-flush">
@foreach (helper::gettiming() as $time)
<li
class="list-group-item color-changer d-flex align-items-center justify-content-between px-0 py-2">
{{ ucfirst($time->day) }}
<span class="fs-7">{{ $time->open_time }} {{ trans('labels.to') }}
{{ $time->break_start }} <br>
{{ $time->break_end }} {{ trans('labels.to') }} {{ $time->close_time }}</span>
</li>
@endforeach
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger px-4 py-1 fs-7"
data-bs-dismiss="modal">{{ trans('labels.close') }}</button>
</div>
</div>
</div>
</div>
<!-- MODAL_working_hours--END -->
<div class="modal" id="subsciptionmodal" tabindex="-1" aria-labelledby="subsciptionmodal" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content rounded-3 overflow-hidden">
<div class="modal-body p-0 position-relative">
<button type="button"
class="bg-transparent border-0 m-0 subsciption_button {{ session()->get('direction') == '2' ? 'rtl' : '' }}"
data-bs-dismiss="modal" aria-label="Close">
<i class="fa-regular fa-xmark fs-5 color-changer"></i>
</button>
<div class="row g-0 align-items-center justify-content-between">
<div class="col-6 d-none d-lg-block">
<img src="{{ helper::image_path(@helper::appdata()->subscribe_image) }}" alt=""
class="w-100 object-fit-cover newslatter-img">
</div>
<div class="col-lg-6 col-12">
<div class="py-5 px-sm-5 px-4">
<span class="fs-7 fs-500 color-changer">{{ trans('labels.newslatter') }}</span>
<h2 class="subscribe-title mt-1 color-changer">
{{ trans('labels.subscribe') }}
</h2>
<p class="text-dark color-changer fw-500 fs-7 mb-4">
{{ trans('labels.newslatter_subtitle') }}
</p>
<form action="{{ URL::to('postsubscribe') }}" method="post" class="mb-0">
<label class="text-black form-label fs-7 mb-1">{{ trans('labels.email') }}</label>
@csrf
<div class="input-group mb-4">
<input type="text" class="form-control border text-dark fw-500 bg-light"
name="email" placeholder="{{ trans('labels.email') }}" required="">
</div>
<button type="submit"
class="btn btn-sm btn-secondary rounded-3 px-4 w-100 newsletter-btn"
id="basic-addon2">{{ trans('labels.subscribe') }}</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- question answer Modal -->
<div class="modal fade" id="qustions_answer" tabindex="-1" aria-labelledby="qustions_answerLabel"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header justify-content-between">
<h1 class="modal-title fs-5 fw-600 m-0 color-changer" id="qustions_answer">
{{ trans('labels.ask_a_question') }}</h1>
<button type="button" class="bg-transparent border-0 m-0" data-bs-dismiss="modal"
aria-label="Close">
<i class="fa-regular fa-xmark fs-4 color-changer"></i>
</button>
</div>
<form action="{{ URL::to('product_question_answer') }}" method="post" class="border-top ">
@csrf
<input type="hidden" name="question_answer_item_id" value="{{ @$getitemdata->id }}">
<div class="modal-body">
<div class="d-flex align-items-center gap-2">
<div>
@if (!empty($getitemdata['item_images']) && count($getitemdata['item_images']) > 0)
<a href="{{ $getitemdata['item_images'][0]->image_url }}">
<img src="{{ $getitemdata['item_images'][0]->image_url }}" alt=""
class="rounded" height="110px" width="110px">
</a>
@endif
</div>
<div class="w-100">
<h6 class="line-2 fs-15 fw-500 color-changer">
{{ @$getitemdata->item_name }}
</h6>
<div class="d-flex flex-wrap gap-1 align-items-center">
<p class="fs-6 fw-500 m-0 color-changer">{{ @helper::currency_format($price) }}
</p>
<del
class="fw-500 text-muted fs-13">{{ @helper::currency_format($original_price) }}</del>
</div>
</div>
</div>
<div>
<label for="exampleFormControlTextarea1" class="form-label d-flex gap-1 mt-2">
{{ trans('labels.your_question') }}
<div aria-hidden="true" class="text-danger">*</div>
</label>
<textarea class="form-control m-0 fs-7" id="question" name="question" placeholder="Your Questions" rows="3"
required=""></textarea>
</div>
</div>
<div class="modal-footer">
<div class="modal-footer">
<button type="button" class="btn btn-danger fs-7 fw-500"
data-bs-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary fs-7 fw-500">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- tawk chat -->
@if (@helper::checkaddons('tawk_addons'))
@if (@helper::appdata()->tawk_on_off == 1)
{!! @helper::appdata()->tawk_widget_id !!}
@endif
@endif
<!-- wizz chat -->
@if (@helper::checkaddons('wizz_chat'))
@if (@helper::appdata()->wizz_chat_on_off == 1)
{!! @helper::appdata()->wizz_chat_settings !!}
@endif
@endif
@if (@helper::checkaddons('age_verification'))
@include('web.age_modal')
@endif
<input type="hidden" value="{{ URL::to('/changeqty') }}" id="changeqtyurl" name="chamgeqtyurl">
<input type="hidden" value="{{ URL::to('/isopenclose') }}" id="isopenclose" name="isopenclose">
<input type="hidden" name="request_url" id="request_url" value="{{ @request()->segments()[0] }}">
@if (@helper::checkaddons('cookie_consent'))
@include('cookie-consent::index')
@endif
<script src="{{ url(env('ASSETSPATHURL') . 'web-assets/js/jquery/jquery-3.6.0.js') }}"></script><!-- jQuery JS -->
<script src="{{ url(env('ASSETSPATHURL') . 'web-assets/js/owl_carousel/owl.carousel.js') }}"></script><!-- owl carousel js -->
<script src="{{ url(env('ASSETSPATHURL') . 'web-assets/js/bootstrap/bootstrap.bundle.min.js') }}"></script><!-- Bootstrap CSS -->
<!-- COMMON-FOR-TOASTER-&-SWEETALERT -->
<script src="{{ url(env('ASSETSPATHURL') . 'admin-assets/assets/js/toastr/toastr.min.js') }}"></script><!-- Toastr JS -->
<script src="{{ url(env('ASSETSPATHURL') . 'admin-assets/assets/js/sweetalert/sweetalert2.min.js') }}"></script><!-- Sweetalert JS -->
<script src="{{ url(env('ASSETSPATHURL') . 'web-assets/js/jquery.number.min.js') }}"></script>
@if (@helper::checkaddons('age_verification'))
@if (@helper::getagedetails($vendordata->id)->age_verification_on_off == 1)
<script src="{{ url('resources/js/age.js') }}"></script>
@endif
@else
<script>
$('#main-content').removeClass('blur');
</script>
@endif
<script>
var darklogo = "{{ helper::image_path(helper::appdata('')->dark_logo) }}";
var lightlogo = "{{ helper::image_path(helper::appdata('')->logo) }}";
function setLightMode() {
document.documentElement.classList.remove('dark');
document.documentElement.classList.add('light');
localStorage.setItem('theme', 'light');
$('#logoimage').attr('src', lightlogo);
$('#footerlogoimage').attr('src', lightlogo);
}
function setDarkMode() {
document.documentElement.classList.remove('light');
document.documentElement.classList.add('dark');
localStorage.setItem('theme', 'dark');
$('#logoimage').attr('src', darklogo);
$('#footerlogoimage').attr('src', darklogo);
}
</script>
<script>
// top deals parameter
var start_date = "{{ @helper::top_deals()->start_date }}";
var start_time = "{{ @helper::top_deals()->start_time }}";
var end_date = "{{ @helper::top_deals()->end_date }}";
var end_time = "{{ @helper::top_deals()->end_time }}";
@if (@helper::checkaddons('top_deals'))
var enddate = "{{ App\Models\TopDeals::first()->end_date }}";
var endtime = "{{ App\Models\TopDeals::first()->end_time }}";
@else
var enddate = null;
var endtime = null;
@endif
var topdeals = "{{ !empty(@helper::topdealitemlist()) ? 1 : 0 }}";
var time_zone = "{{ helper::appdata()->timezone }}";
var current_date = "{{ \Carbon\Carbon::now()->toDateString() }}";
var deal_type = "{{ @helper::top_deals()->deal_type }}";
var siteurl = "{{ URL::to('/') }}";
</script>
<script>
// COMMON-SCRIPTS
// to-display-success-error-message
toastr.options = {
"closeButton": true,
}
@if (Session::has('success'))
toastr.success("{{ session('success') }}");
@endif
@if (Session::has('error'))
toastr.error("{{ session('error') }}");
@endif
// to-display-error-message
@if ($errors->any())
@foreach ($errors->all() as $error)
toastr.error('{{ $error }}');
@endforeach
@endif
// for-sweetalert
let are_you_sure = "{{ trans('messages.are_you_sure') }}";
let yes = "{{ trans('messages.yes') }}";
let no = "{{ trans('messages.no') }}";
let wrong = "{{ trans('messages.wrong') }}";
let record_safe = "{{ trans('messages.record_safe') }}";
let okay = "{{ trans('labels.okay') }}";
let track_order = "{{ trans('labels.track_order') }}";
let continue_shopping = "{{ trans('labels.continue_shopping') }}";
let order_placed = "{{ trans('labels.order_placed') }}";
let order_placed_note = "{{ trans('messages.order_placed_note') }}";
let restaurant_closed = "{{ trans('messages.restaurant_closed') }}";
let out_of_stock = "{{ trans('labels.out_of_stock') }}";
let add_to_cart = "{{ trans('labels.add_to_cart') }}";
let product_out_of_stock = "{{ trans('messages.product_out_of_stock') }}";
var not_available = "{{ trans('labels.not_available') }}";
var variation_route = "{{ URL::to('get-products-variant-quantity') }}";
var in_stock = "{{ trans('labels.in_stock') }}";
var out_stock = "{{ trans('labels.out_of_stock') }}";
var not_available = "{{ trans('labels.not_available') }}";
var variation_title = "{{ trans('labels.variants') }}";
var extras_title = "{{ trans('labels.extras') }}";
var addons_title = "{{ trans('labels.addons') }}";
// others
function currency_format(price) {
"use strict";
var price = price * {{ @helper::currencyinfo($storeinfo->id)->exchange_rate }};
if ("{{ @helper::currencyinfo()->currency_position }}" == "1") {
if ("{{ helper::currencyinfo()->decimal_separator }}" == 1) {
if ("{{ helper::currencyinfo()->currency_space }}" == 1) {
var newprice = "{{ @helper::currencyinfo()->currency }}" + " " + parseFloat(price).toFixed(
"{{ helper::currencyinfo()->currency_formate }}");
} else {
var newprice = "{{ @helper::currencyinfo()->currency }}" + parseFloat(price).toFixed(
"{{ helper::currencyinfo()->currency_formate }}");
}
newprice = newprice.replace(',', '.');
return newprice;
} else {
if ("{{ helper::currencyinfo()->currency_space }}" == 1) {
var newprice = "{{ @helper::currencyinfo()->currency }}" + " " + (parseFloat(price).toFixed(
"{{ helper::currencyinfo()->currency_formate }}"));
} else {
var newprice = "{{ @helper::currencyinfo()->currency }}" + (parseFloat(price).toFixed(
"{{ helper::currencyinfo()->currency_formate }}"));
}
newprice = newprice.replace('.', ',');
return newprice;
}
} else {
if ("{{ helper::currencyinfo()->decimal_separator }}" == 1) {
if ("{{ helper::currencyinfo()->currency_space }}" == 1) {
var newprice = parseFloat(price).toFixed("{{ helper::currencyinfo()->currency_formate }}") + " " +
"{{ @helper::currencyinfo()->currency }}";
} else {
var newprice = parseFloat(price).toFixed("{{ helper::currencyinfo()->currency_formate }}") +
"{{ @helper::currencyinfo()->currency }}";
}
newprice = newprice.replace(',', '.');
return newprice;
} else {
if ("{{ helper::currencyinfo()->currency_space }}" == 1) {
var newprice = (parseFloat(price).toFixed("{{ helper::currencyinfo()->currency_formate }}")) +
" " +
"{{ @helper::currencyinfo()->currency }}";
} else {
var newprice = (parseFloat(price).toFixed("{{ helper::currencyinfo()->currency_formate }}")) +
"{{ @helper::currencyinfo()->currency }}";
}
newprice = newprice.replace('.', ',');
return newprice;
}
}
}
</script>
<script src="{{ url(env('ASSETSPATHURL') . 'web-assets/js/common.js') }}"></script><!-- web-common-js -->
@if (@helper::checkaddons('top_deals'))
<script src="{{ url(env('ASSETSPATHURL') . 'web-assets/js/custom/top_deals.js') }}"></script>
@endif
@if (@helper::checkaddons('pwa'))
<script src="{{ url('storage/app/public/sw.js') }}"></script>
<script>
if (!navigator.serviceWorker.controller) {
navigator.serviceWorker.register("{{ url('storage/app/public/sw.js') }}").then(function(reg) {
console.log("Service worker has been registered for scope: " + reg.scope);
});
}
</script>
@endif
@if (@helper::checkaddons('sales_notification'))
@if (helper::appdata()->fake_sales_notification == 1)
<script>
if ("{{ @helper::appdata()->fake_sales_notification }}" == "1") {
// Select the element with the ID 'sales-booster-popup'
const popup = document.getElementById('sales-booster-popup');
if (popup) {
// Define a function to add and remove the 'loaded' class
let isMouseOver = false;
const toggleLoadedClass = () => {
// Add the 'loaded' class
popup.classList.add('loaded');
// Remove the 'loaded' class after 5 seconds, unless the mouse is over the popup
setTimeout(() => {
if (!isMouseOver) {
popup.classList.remove('loaded');
}
},
"{{ helper::appdata()->notification_display_time }}"
); // 4000 milliseconds = 4 seconds for demo purposes
};
// Function to handle mouseover event
const handleMouseOver = () => {
isMouseOver = true;
// You can perform actions here when mouse is over the popup
};
// Function to handle mouseout event
const handleMouseOut = () => {
isMouseOver = false;
};
// Call the function initially
toggleLoadedClass();
setInterval(function() {
$.ajax({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
url: "{{ URL::to('get_notification_data') }}",
method: 'POST',
success: function(response) {
toggleLoadedClass();
$('#sales-booster-popup').show();
$('#notification_body').html(response.output);
},
});
},
"{{ helper::appdata()->notification_display_time + helper::appdata()->next_time_popup }}"
); // 8000 milliseconds = 8 seconds
// Add mouseover and mouseout event listeners to the popup
popup.addEventListener('mouseover', handleMouseOver);
popup.addEventListener('mouseout', handleMouseOut);
// Select the close button within the popup
const closeButton = popup.querySelector('.close'); // Close button selector
if (closeButton) {
// Add an event listener to the close button
closeButton.addEventListener('click', () => {
// Remove the 'loaded' class immediately
popup.classList.remove('loaded');
});
}
}
}
</script>
@endif
@endif
@yield('scripts')
</body>
</html>