Push Notification in php and laravel

A. Without ajax load with page loading <a class="bell_notification_clicker" href="#"> <img src="{{ asset('/assets/') }}/img/icon/bell.svg" alt=""> <?php $purchase_plan_count = DB::table('purchase_plan')->where('notification', 0)->count(); if($purchase_plan_count > 3){ $purchase_plan_count = 3; } ?> <span>{{$purchase_plan_count}}</span> </a>…

0 Comments

Drag and drop and clone

A. Drag, drop and clone <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Drag, Drop & Clone</title> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script> <style> .draggable { width: 100px; padding:…

0 Comments

Get input type file value using jquery

  $(document).ready(function(){ $('#fileInput').change(function(){ var fileName = $(this).val().split('\\').pop(); // Get only the file name alert("Selected file: " + fileName); }); }); $(document).ready(function(){ $('#fileInput').change(function(){ var file = $(this).prop('files')[0]; // Get the first…

0 Comments

Galley image for ecommorce product single page with crop features

  <script> $(document).ready(function(){ $('#add_more_galleries1').click(function(){ $(".add_more_gallery_images2").show(); $(this).hide(); $("#add_more_galleries2").show(); }); $('#add_more_galleries2').click(function(){ $(".add_more_gallery_images3").show(); $(this).hide(); $("#add_more_galleries3").show(); }); $('#add_more_galleries2').click(function(){ $(".add_more_gallery_images3").show(); $(this).hide(); $("#add_more_galleries3").show(); }); $('#add_more_galleries3').click(function(){ $(".add_more_gallery_images4").show(); $(this).hide(); $("#add_more_galleries4").show(); }); $('#add_more_galleries4').click(function(){ $(".add_more_gallery_images5").show(); $(this).hide(); $("#add_more_galleries5").show(); }); $('#add_more_galleries5').click(function(){ $(".add_more_gallery_images6").show();…

0 Comments