File: //home/armgroup/libs/resources/views/layouts/app.blade.php
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#f5a11b" />
{!! SEO::generate() !!}
<meta name="og:site_name" content="{{ settings('title') }}"/>
<meta name="robots" content="index,follow" />
<meta name="geo.region" content="IR-07" />
<meta name="twitter:card" content="summary_large_image" />
<meta property="og:locale" content=fa_IR />
<meta name="og:url" content="{{ url()->current() }}">
<meta name="og:type" content="website">
@yield('meta')
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('apple-touch-icon.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('favicon-32x32.png') }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('favicon-16x16.png') }}">
<link rel="manifest" href="{{ asset('site.webmanifest') }}">
<link rel="stylesheet" href="{{ asset('css/frontend-fonts.css') }}" />
<link rel="stylesheet" href="{{ mix('css/app.css') }}" />
<link rel="stylesheet" href="{{ asset('css/main.min.css') }}" />
<link rel="stylesheet" href="{{ asset('css/style.css?v=1.1') }}" />
<link rel="stylesheet" href="{{ asset('css/style2.css') }}" />
<script src="https://kit.fontawesome.com/f595c78486.js" crossorigin="anonymous"></script>
<style>.iziToast-rtl, .iziToast { font-family: {{ config('frontend.font_family') }} !important;}</style>
<livewire:styles />
@yield('header')
{!! settings('header-tags') !!}
</head>
<body>
<div class="page container-fluid p-0">
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>
@include('layouts.header')
@yield('content')
@include('layouts.footer')
</div>
<script src="{{ asset('js/main-min.js') }}"></script>
<script src="{{ mix('js/app.js') }}"></script>
<script src="{{ asset('js/script.js') }}"></script>
<script src="{{ asset('js/main.js') }}"></script>
@include('layouts.iziToast')
<livewire:scripts />
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script>
Livewire.on('updateTotalCartPrice', function(total_price, count) {
if(document.getElementById("total-price")) {
$('#total-price').html(total_price);
}
$('.header-shop-count').html(count);
});
Livewire.on('favoritesChanged', function(count) {
$('.header-fav-count').html(count);
});
window.addEventListener('showIziToast', event => {
iziToast[event.detail.status]({
message: event.detail.message,
title: event.detail.title,
position: event.detail.position,
zindex: 9999999999999
});
});
// const showSwalListener = (event) => {
// const swalWithBootstrapButtons = Swal.mixin({
// customClass: {
// confirmButton: 'btn btn-success',
// cancelButton: 'btn btn-danger'
// },
// buttonsStyling: false
// });
// swalWithBootstrapButtons.fire({
// icon: event.detail.status,
// title: event.detail.title,
// text: event.detail.message,
// showCancelButton: true,
// confirmButtonText: event.detail.confrirmText,
// cancelButtonText: event.detail.cancleText,
// reverseButtons: false
// }).then((result) => {
// if (result.value) {
// window.location.href = event.detail.confirmLink;
// }
// });
// };
// window.addEventListener('showSwal', showSwalListener);
window.addEventListener('showSwal', function(event) {
Swal.fire({
title: event.detail.title,
html: event.detail.html,
showCancelButton: true,
confirmButtonText: 'ادامه',
cancelButtonText: 'بعداً',
focusConfirm: false,
preConfirm: () => {
const checkbox = document.getElementById('go_complete');
return checkbox ? checkbox.checked : false;
}
}).then((result) => {
if (result.isConfirmed) {
const checked = result.value;
if (checked) {
window.location.href = event.detail.confirmUrlChecked;
} else {
window.location.href = event.detail.confirmUrlUnchecked;
}
} else if (result.dismiss === Swal.DismissReason.cancel) {
window.location.href = event.detail.cancelUrl;
}
});
});
const observer = lozad(); // lazy loads elements with default selector as '.lozad'
observer.observe();
</script>
<script>
document.addEventListener('contextmenu', function (e) {
e.preventDefault();
});
</script>
@yield('footer')
@stack('scripts')
</body>
</html>