Viewing file: 593b92aced6bc5a0fb062e80b263950c.php (2.33 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script src="<?php echo e(asset('backend/plugins/jquery/jquery.min.js')); ?>"></script> <script src="<?php echo e(asset('backend/plugins/toastr/toastr.min.js')); ?>"></script> <script src="<?php echo e(asset('frontend/js/sweet-alert.min.js')); ?>"></script> <script src="<?php echo e(asset('frontend')); ?>/js/axios.min.js"></script>
<script> // Toast config <?php if(Session::has('success')): ?> toastr.success("<?php echo e(Session::get('success')); ?>", 'Success!') <?php elseif(Session::has('warning')): ?> toastr.warning("<?php echo e(Session::get('warning')); ?>", 'Warning!') <?php elseif(Session::has('error')): ?> toastr.error("<?php echo e(Session::get('error')); ?>", 'Error!') <?php endif; ?> toastr.options = { "closeButton": true, "debug": false, "newestOnTop": true, "progressBar": true, "positionClass": "toast-top-right", "preventDuplicates": true, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "hideMethod": "fadeOut" }
// Sweetalert config $('.login_required').click(function(event) { event.preventDefault(); swal({ title: '<?php echo e(__("do_you_want_to_login")); ?>', text: '<?php echo e(__("if_you_do_this_action_you_need_to_login_your_account_first")); ?>', type: "warning", showCancelButton: true, confirmButtonColor: '#3daf29', cancelButtonColor: '#d33', confirmButtonText: 'Login', closeOnConfirm: false, // closeOnCancel: false }, function() { // window.location.href = "<?php echo e(route('users.login')); ?>"; var url = "<?php echo e(route('users.login')); ?>"; var returnUrl = encodeURIComponent(event.target.baseURI); window.location.href = url + "?returnUrl=" + returnUrl; }); });
$.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); </script> <?php /**PATH /home/picotech/domains/classify.picotech.app/public_html/resources/views/frontend/layouts/partials/scripts.blade.php ENDPATH**/ ?>
|