<!-- BEGIN: Vendor JS-->
<script src="<?php echo e(asset(mix('vendors/js/vendors.min.js'))); ?>"></script>
<!-- BEGIN Vendor JS-->
<!-- BEGIN: Page Vendor JS-->
<script src="<?php echo e(asset(mix('vendors/js/ui/jquery.sticky.js'))); ?>"></script>
<?php echo $__env->yieldContent('vendor-script'); ?>
<!-- END: Page Vendor JS-->
<!-- BEGIN: Theme JS-->
<script src="<?php echo e(asset(mix('js/core/app-menu.js'))); ?>"></script>
<script src="<?php echo e(asset(mix('js/core/app.js'))); ?>"></script>
<!-- custom scripts file for user -->
<script src="<?php echo e(asset(mix('js/core/scripts.js'))); ?>"></script>
<!-- END: Theme JS-->
<script src="<?php echo e(asset(mix('vendors/js/extensions/toastr.min.js'))); ?>"></script>
<script>
let isRtl = $('html').attr('data-textdirection') === 'rtl';
</script>
<?php if(Auth::check() && Auth::user()->active_portal == 'customer' && Auth::user()->is_customer == 1): ?>
<?php if(Auth::user()->customer->activeSubscription() == null): ?>
<script>
toastr['warning']("<?php echo __('locale.customer.no_active_subscription'); ?>", 'Warning!', {
closeButton: true,
positionClass: 'toast-bottom-right',
containerId: 'toast-bottom-right',
timeout: 0,
rtl: isRtl
});
</script>
<?php endif; ?>
<?php endif; ?>
<?php echo $__env->yieldContent('page-script'); ?>
<script>
$(document).on('select2:open', () => {
document.querySelector('.select2-search__field').focus();
});
</script>
<?php if(Session::has('message')): ?>
<script>
let type = "<?php echo e(Session::get('status', 'success')); ?>";
switch (type) {
case 'info':
toastr['info']("<?php echo Session::get('message'); ?>", '<?php echo e(__('locale.labels.information')); ?>!', {
closeButton: true,
positionClass: 'toast-top-right',
progressBar: true,
newestOnTop: true,
rtl: isRtl
});
break;
case 'warning':
toastr['warning']("<?php echo Session::get('message'); ?>", '<?php echo e(__('locale.labels.warning')); ?>!', {
closeButton: true,
positionClass: 'toast-top-right',
progressBar: true,
newestOnTop: true,
rtl: isRtl
});
break;
case 'success':
toastr['success']("<?php echo Session::get('message'); ?>", '<?php echo e(__('locale.labels.success')); ?>!!', {
closeButton: true,
positionClass: 'toast-top-right',
progressBar: true,
newestOnTop: true,
rtl: isRtl
});
break;
case 'error':
toastr['error']("<?php echo Session::get('message'); ?>", '<?php echo e(__('locale.labels.ops')); ?>..!!', {
closeButton: true,
positionClass: 'toast-top-right',
progressBar: true,
newestOnTop: true,
rtl: isRtl
});
break;
}
</script>
<?php endif; ?>
<?php /**PATH /home/bouloter/sms/resources/views/panels/scripts.blade.php ENDPATH**/ ?>